adc_async_set_inputs

Set ADC input source of a channel.

int32_t adc_async_set_inputs(
    struct adc_async_descriptor *const descr,
    const adc_pos_input_t pos_input,
    const adc_neg_input_t neg_input,
    const uint8_t channel
)

This function sets the ADC positive and negative input sources.

Parameters

descr

Type: struct adc_async_descriptor Struct *const

The pointer to the ADC descriptor

pos_input

Type: const adc_pos_input_t

A positive input source to set

neg_input

Type: const adc_neg_input_t

A negative input source to set

channel

Type: const uint8_t

Channel number

Returns

Type: int32_t

Status of the ADC channels setting.