adc_os_set_channel_gain

Set ADC gain.

int32_t adc_os_set_channel_gain(
    struct adc_os_descriptor *const descr,
    const uint8_t channel,
    const adc_gain_t gain
)

This function sets ADC gain.

Parameters

descr

Type: struct adc_os_descriptor Struct *const

The pointer to ADC descriptor

channel

Type: const uint8_t

Channel number

gain

Type: const adc_gain_t

A gain to set

Returns

Type: int32_t

ERR_NONE