Controlling the PGA in SDADC.
More...
Controlling the PGA in SDADC.
◆ hw_sdadc_get_cic_offset()
| __STATIC_INLINE uint32_t hw_sdadc_get_cic_offset |
( |
void |
| ) |
|
Get the audio filter register status.
Constant CIC offset
- Returns
- cic offset
◆ hw_sdadc_pga_enabled_channels_status()
Get the PGA enabled input-channel status.
- Returns
- PGA current gain
◆ hw_sdadc_pga_get_bias()
Get the PGA bias status.
- Returns
- PGA current bias
◆ hw_sdadc_pga_get_gain()
Get the PGA gain status.
- Returns
- PGA current gain
◆ hw_sdadc_pga_get_mode()
Get the PGA branch mode status.
- Returns
- PGA current mode of the positive and negative branches
◆ hw_sdadc_pga_inputs_are_shorted()
| __STATIC_INLINE bool hw_sdadc_pga_inputs_are_shorted |
( |
void |
| ) |
|
Get the PGA short-input status.
- Returns
- true if input channels are shorted, false otherwise
◆ hw_sdadc_pga_is_mute()
| __STATIC_INLINE bool hw_sdadc_pga_is_mute |
( |
void |
| ) |
|
Get the PGA mute status.
- Returns
- PGA is in mute or unmute state
◆ hw_sdadc_pga_mute()
| __STATIC_INLINE void hw_sdadc_pga_mute |
( |
void |
| ) |
|
◆ hw_sdadc_pga_select_enabled_channels()
| __STATIC_INLINE void hw_sdadc_pga_select_enabled_channels |
( |
HW_SDADC_PGA_EN |
channels | ) |
|
Select the enabled PGA input channel(s)
- Parameters
-
| [in] | channels | selection of channel to enable |
◆ hw_sdadc_pga_set_bias()
Set the PGA bias.
- Parameters
-
| [in] | bias | PGA bias control value |
◆ hw_sdadc_pga_set_gain()
Set the PGA gain.
- Parameters
-
◆ hw_sdadc_pga_set_mode()
Set the PGA branch mode. Use PGA in single ended/differential mode.
- Parameters
-
| [in] | mode | mode of the PGA positive and negative branches |
◆ hw_sdadc_pga_short_inputs()
| __STATIC_INLINE void hw_sdadc_pga_short_inputs |
( |
void |
| ) |
|
Short the PGA input channels.
◆ hw_sdadc_pga_unmute()
| __STATIC_INLINE void hw_sdadc_pga_unmute |
( |
void |
| ) |
|
◆ hw_sdadc_pga_unshort_inputs()
| __STATIC_INLINE void hw_sdadc_pga_unshort_inputs |
( |
void |
| ) |
|
Disconnect the short-circuited PGA input channels.
◆ hw_sdadc_set_cic_offset()
| __STATIC_INLINE void hw_sdadc_set_cic_offset |
( |
uint32_t |
val | ) |
|
Set the audio filter register.
Constant CIC offset
- Parameters
-