5.2.4.10 adc_dma_set_inputs
Set ADC input source of a channel.
int32_t adc_dma_set_inputs(
struct adc_dma_descriptor *const descr,
const adc_pos_input_t pos_input,
const adc_neg_input_t neg_input,
const uint8_t channel
)
This function sets ADC positive and negative input sources.
Parameters
- descr
-
Type: struct adc_dma_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.