adc_async_set_channel_gain

Set ADC channel gain.

int32_t adc_async_set_channel_gain(
    struct adc_async_descriptor *const descr,
    const uint8_t channel,
    const adc_gain_t gain
)

This function sets ADC channel gain.

Parameters

descr

Type: struct adc_async_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.