5.2.4.13 adc_dma_set_channel_gain
Set ADC channel gain.
int32_t adc_dma_set_channel_gain(
struct adc_dma_descriptor *const descr,
const uint8_t channel,
const adc_gain_t gain
)
This function sets ADC channel gain.
Parameters
- descr
-
Type: struct adc_dma_descriptor Struct *const
The pointer to the ADC descriptor
- channel
-
Type: const uint8_t
Channel number
- gain
-
Type: const adc_gain_t
A gain to set
Returns
Type: int32_t
Status of the ADC gain setting.