MTB CAT1 Peripheral driver library

General Description

This set of functions is for analog microphone resources control.

Functions

cy_en_adcmic_status_t Cy_ADCMic_SetPgaGain (MXS40ADCMIC_Type *base, cy_en_adcmic_pga_gain_t gain)
 Configures the PGA gain (0dB to 42dB in steps of 1dB) More...
 

Function Documentation

◆ Cy_ADCMic_SetPgaGain()

cy_en_adcmic_status_t Cy_ADCMic_SetPgaGain ( MXS40ADCMIC_Type base,
cy_en_adcmic_pga_gain_t  gain 
)

Configures the PGA gain (0dB to 42dB in steps of 1dB)

Parameters
baseThe pointer to the hardware ADCMic block.
gainThe gain value cy_en_adcmic_pga_gain_t.
Returns
The status cy_en_adcmic_status_t.
Function Usage
/* Scenario: There is a need to increase the PGA gain to 12 db: */
{
/* Something went wrong, insert error handling here */
}