SmartSnippets DA1459x SDK
Functions
Programmable Gain Amplifier

Controlling the PGA in SDADC. More...

Functions

__STATIC_INLINE void hw_sdadc_pga_set_gain (HW_SDADC_PGA_GAIN gain)
 Set the PGA gain. More...
 
__STATIC_INLINE HW_SDADC_PGA_GAIN hw_sdadc_pga_get_gain (void)
 Get the PGA gain status. More...
 
__STATIC_INLINE void hw_sdadc_pga_set_mode (HW_SDADC_PGA_MODE mode)
 Set the PGA branch mode. Use PGA in single ended/differential mode. More...
 
__STATIC_INLINE HW_SDADC_PGA_MODE hw_sdadc_pga_get_mode (void)
 Get the PGA branch mode status. More...
 
__STATIC_INLINE void hw_sdadc_pga_mute (void)
 Mute the PGA. More...
 
__STATIC_INLINE void hw_sdadc_pga_unmute (void)
 Un-mute the PGA. More...
 
__STATIC_INLINE bool hw_sdadc_pga_is_mute (void)
 Get the PGA mute status. More...
 
__STATIC_INLINE void hw_sdadc_pga_set_bias (HW_SDADC_PGA_BIAS bias)
 Set the PGA bias. More...
 
__STATIC_INLINE HW_SDADC_PGA_BIAS hw_sdadc_pga_get_bias (void)
 Get the PGA bias status. More...
 
__STATIC_INLINE void hw_sdadc_pga_short_inputs (void)
 Short the PGA input channels. More...
 
__STATIC_INLINE void hw_sdadc_pga_unshort_inputs (void)
 Disconnect the short-circuited PGA input channels. More...
 
__STATIC_INLINE bool hw_sdadc_pga_inputs_are_shorted (void)
 Get the PGA short-input status. More...
 
__STATIC_INLINE void hw_sdadc_pga_select_enabled_channels (HW_SDADC_PGA_EN channels)
 Select the enabled PGA input channel(s) More...
 
__STATIC_INLINE HW_SDADC_PGA_GAIN hw_sdadc_pga_enabled_channels_status (void)
 Get the PGA enabled input-channel status. More...
 
__STATIC_INLINE void hw_sdadc_set_cic_offset (uint32_t val)
 Set the audio filter register. More...
 
__STATIC_INLINE uint32_t hw_sdadc_get_cic_offset (void)
 Get the audio filter register status. More...
 

Detailed Description

Controlling the PGA in SDADC.

Function Documentation

◆ 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()

__STATIC_INLINE HW_SDADC_PGA_GAIN hw_sdadc_pga_enabled_channels_status ( void  )

Get the PGA enabled input-channel status.

Returns
PGA current gain

◆ hw_sdadc_pga_get_bias()

__STATIC_INLINE HW_SDADC_PGA_BIAS hw_sdadc_pga_get_bias ( void  )

Get the PGA bias status.

Returns
PGA current bias

◆ hw_sdadc_pga_get_gain()

__STATIC_INLINE HW_SDADC_PGA_GAIN hw_sdadc_pga_get_gain ( void  )

Get the PGA gain status.

Returns
PGA current gain

◆ hw_sdadc_pga_get_mode()

__STATIC_INLINE HW_SDADC_PGA_MODE hw_sdadc_pga_get_mode ( void  )

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  )

Mute the PGA.

◆ 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]channelsselection of channel to enable

◆ hw_sdadc_pga_set_bias()

__STATIC_INLINE void hw_sdadc_pga_set_bias ( HW_SDADC_PGA_BIAS  bias)

Set the PGA bias.

Parameters
[in]biasPGA bias control value

◆ hw_sdadc_pga_set_gain()

__STATIC_INLINE void hw_sdadc_pga_set_gain ( HW_SDADC_PGA_GAIN  gain)

Set the PGA gain.

Parameters
[in]gaingain of the PGA

◆ hw_sdadc_pga_set_mode()

__STATIC_INLINE void hw_sdadc_pga_set_mode ( HW_SDADC_PGA_MODE  mode)

Set the PGA branch mode. Use PGA in single ended/differential mode.

Parameters
[in]modemode 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  )

Un-mute the PGA.

◆ 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
[in]val