#include "fsl_codec_common.h"
Go to the source code of this file.
Macros | |
| #define | GET_PLAY_CHANNEL_CAPABILITY(capability) (capability & 0xFFU) |
| codec play and record capability More... | |
| #define | GET_PLAY_SOURCE_CAPABILITY(capability) (capability >> 8U) |
| #define | GET_RECORD_CHANNEL_CAPABILITY(capability) (capability >> 6U) |
| #define | GET_RECORD_SOURCE_CAPABILITY(capability) (capability & 0x3FU) |
Functions | |
| status_t | CODEC_Deinit (codec_handle_t *handle) |
| Codec de-initilization. More... | |
| status_t | CODEC_Init (codec_handle_t *handle, codec_config_t *config) |
| Codec initilization. More... | |
| status_t | CODEC_ModuleControl (codec_handle_t *handle, codec_module_ctrl_cmd_t cmd, uint32_t data) |
| codec module control. More... | |
| status_t | CODEC_SetFormat (codec_handle_t *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bitWidth) |
| set audio data format. More... | |
| status_t | CODEC_SetMute (codec_handle_t *handle, uint32_t playChannel, bool mute) |
| set audio codec module mute. More... | |
| status_t | CODEC_SetPlay (codec_handle_t *handle, uint32_t playSource) |
| codec set play source. More... | |
| status_t | CODEC_SetPower (codec_handle_t *handle, codec_module_t module, bool powerOn) |
| set audio codec power. More... | |
| status_t | CODEC_SetRecord (codec_handle_t *handle, uint32_t recordSource) |
| codec set record source. More... | |
| status_t | CODEC_SetRecordChannel (codec_handle_t *handle, uint32_t leftRecordChannel, uint32_t rightRecordChannel) |
| codec set record channel. More... | |
| status_t | CODEC_SetVolume (codec_handle_t *handle, uint32_t playChannel, uint32_t volume) |
| set audio codec pl volume. More... | |
| #define GET_PLAY_CHANNEL_CAPABILITY | ( | capability | ) | (capability & 0xFFU) |
codec play and record capability
Definition at line 14 of file fsl_codec_common.c.
| #define GET_PLAY_SOURCE_CAPABILITY | ( | capability | ) | (capability >> 8U) |
Definition at line 15 of file fsl_codec_common.c.
| #define GET_RECORD_CHANNEL_CAPABILITY | ( | capability | ) | (capability >> 6U) |
Definition at line 17 of file fsl_codec_common.c.
| #define GET_RECORD_SOURCE_CAPABILITY | ( | capability | ) | (capability & 0x3FU) |
Definition at line 16 of file fsl_codec_common.c.