|
enum | operation_mode_t {
kDMIC_OperationModePoll = 0U,
kDMIC_OperationModeInterrupt = 1U,
kDMIC_OperationModeDma = 2U
} |
| DMIC different operation modes. More...
|
|
enum | stereo_side_t {
kDMIC_Left = 0U,
kDMIC_Right = 1U
} |
| DMIC left/right values. More...
|
|
enum | pdm_div_t {
kDMIC_PdmDiv1 = 0U,
kDMIC_PdmDiv2 = 1U,
kDMIC_PdmDiv3 = 2U,
kDMIC_PdmDiv4 = 3U,
kDMIC_PdmDiv6 = 4U,
kDMIC_PdmDiv8 = 5U,
kDMIC_PdmDiv12 = 6U,
kDMIC_PdmDiv16 = 7U,
kDMIC_PdmDiv24 = 8U,
kDMIC_PdmDiv32 = 9U,
kDMIC_PdmDiv48 = 10U,
kDMIC_PdmDiv64 = 11U,
kDMIC_PdmDiv96 = 12U,
kDMIC_PdmDiv128 = 13U
} |
| DMIC Clock pre-divider values. More...
|
|
enum | compensation_t {
kDMIC_CompValueZero = 0U,
kDMIC_CompValueNegativePoint16 = 1U,
kDMIC_CompValueNegativePoint15 = 2U,
kDMIC_CompValueNegativePoint13 = 3U
} |
| Pre-emphasis Filter coefficient value for 2FS and 4FS modes. More...
|
|
enum | dc_removal_t {
kDMIC_DcNoRemove = 0U,
kDMIC_DcCut155 = 1U,
kDMIC_DcCut78 = 2U,
kDMIC_DcCut39 = 3U
} |
| DMIC DC filter control values. More...
|
|
enum | dmic_io_t {
kDMIC_PdmDual = 0U,
kDMIC_PdmStereo = 4U,
kDMIC_PdmBypass = 3U,
kDMIC_PdmBypassClk0 = 1U,
kDMIC_PdmBypassClk1 = 2U
} |
| DMIC IO configiration. More...
|
|
enum | dmic_channel_t {
kDMIC_Channel0 = 0U,
kDMIC_Channel1 = 1U
} |
| DMIC Channel number. More...
|
|
enum | dmic_phy_sample_rate_t {
kDMIC_PhyFullSpeed = 0U,
kDMIC_PhyHalfSpeed = 1U
} |
| DMIC and decimator sample rates. More...
|
|
enum | _dmic_status {
kStatus_DMIC_Busy = MAKE_STATUS(kStatusGroup_DMIC, 0),
kStatus_DMIC_Idle = MAKE_STATUS(kStatusGroup_DMIC, 1),
kStatus_DMIC_OverRunError = MAKE_STATUS(kStatusGroup_DMIC, 2),
kStatus_DMIC_UnderRunError = MAKE_STATUS(kStatusGroup_DMIC, 3)
} |
| DMIC transfer status. More...
|
|
|
uint32_t | DMIC_GetInstance (DMIC_Type *base) |
| Get the DMIC instance from peripheral base address. More...
|
|
void | DMIC_Init (DMIC_Type *base) |
| Turns DMIC Clock on. More...
|
|
void | DMIC_DeInit (DMIC_Type *base) |
| Turns DMIC Clock off. More...
|
|
void | DMIC_ConfigIO (DMIC_Type *base, dmic_io_t config) |
| Configure DMIC io. More...
|
|
void | DMIC_SetOperationMode (DMIC_Type *base, operation_mode_t mode) |
| Set DMIC operating mode. More...
|
|
void | DMIC_ConfigChannel (DMIC_Type *base, dmic_channel_t channel, stereo_side_t side, dmic_channel_config_t *channel_config) |
| Configure DMIC channel. More...
|
|
void | DMIC_Use2fs (DMIC_Type *base, bool use2fs) |
| Configure Clock scaling. More...
|
|
void | DMIC_EnableChannnel (DMIC_Type *base, uint32_t channelmask) |
| Enable a particualr channel. More...
|
|
void | DMIC_FifoChannel (DMIC_Type *base, uint32_t channel, uint32_t trig_level, uint32_t enable, uint32_t resetn) |
| Configure fifo settings for DMIC channel. More...
|
|
static uint32_t | DMIC_FifoGetStatus (DMIC_Type *base, uint32_t channel) |
| Get FIFO status. More...
|
|
static void | DMIC_FifoClearStatus (DMIC_Type *base, uint32_t channel, uint32_t mask) |
| Clear FIFO status. More...
|
|
static uint32_t | DMIC_FifoGetData (DMIC_Type *base, uint32_t channel) |
| Get FIFO data. More...
|
|
void | DMIC_EnableIntCallback (DMIC_Type *base, dmic_callback_t cb) |
| Enable callback. More...
|
|
void | DMIC_DisableIntCallback (DMIC_Type *base, dmic_callback_t cb) |
| Disable callback. More...
|
|