adc_dma_set_channel_differential_mode

Set ADC differential mode.

int32_t adc_dma_set_channel_differential_mode(
    struct adc_dma_descriptor *const descr,
    const uint8_t channel,
    const enum adc_differential_mode mode
)

This function sets the ADC differential mode.

Parameters

descr

Type: struct adc_dma_descriptor Struct *const

The pointer to the ADC descriptor

channel

Type: const uint8_t

Channel number

mode

Type: const enum adc_differential_mode

A differential mode to set

Returns

Type: int32_t

Status of the ADC differential mode setting.