This set of functions is for initialization and basic usage.
◆ Cy_ADCMic_Init()
Initializes the ADCMic block from a pre-initialized configuration structure.
- Parameters
-
base | The pointer to the hardware ADCMic block. |
config | The pointer to the configuration structure cy_stc_adcmic_config_t. |
mode | The ADCMic operation mode /ref cy_en_adcmic_mode_t. |
- Returns
- The status cy_en_adcmic_status_t.
- Function Usage
◆ Cy_ADCMic_InitBiquad()
Initializes the biquad filter coefficients.
Usually is called from the Cy_ADCMic_Init.
- Parameters
-
base | The pointer to the hardware ADCMic block. |
biQuadConfig | The pointer to the biquad filter configuration structure cy_stc_adcmic_biquad_config_t. |
- Function Usage
config.micConfig->biQuadConfig = &biquadCfg;
{
}
◆ Cy_ADCMic_BiquadBypass()
__STATIC_INLINE void Cy_ADCMic_BiquadBypass |
( |
MXS40ADCMIC_Type * |
base, |
|
|
bool |
bypass |
|
) |
| |
Bypasses/unbypasses the biquad filter.
Usually is called from the Cy_ADCMic_Init.
- Parameters
-
base | The pointer to the hardware ADCMic block. |
bypass | The boolean specifier to bypass(true) or unbypass(false) the biquad filter. |
◆ Cy_ADCMic_Enable()
Enables the ADCMic block operation.
- Parameters
-
base | The pointer to the hardware ADCMic block. |
- Function Usage
◆ Cy_ADCMic_Disable()
Disables the ADCMic block operation.
- Parameters
-
base | The pointer to the hardware ADCMic block. |
- Function Usage
◆ Cy_ADCMic_SetSampleRate()
Sets the specified ADC sample rate.
Applicable for MIC/PDM modes only.
- Parameters
-
- Returns
- The status cy_en_adcmic_status_t.
- Function Usage
◆ Cy_ADCMic_ClearTrigger()
__STATIC_INLINE void Cy_ADCMic_ClearTrigger |
( |
MXS40ADCMIC_Type * |
base, |
|
|
uint32_t |
trigMask |
|
) |
| |
Clears the specified trigger signal.
- Parameters
-
base | The pointer to the hardware ADC block. |
trigMask | The mask of triggers to clear. Select one or more masks from Triggers and "OR" them together:
|