1.14.1.7 1.15.1.7 1.16.1.7 1.17.1.7 1.18.1.7 1.19.1.7 1.20.1.7 1.21.1.7 ADC_InputScanSelect Function
C
void ADC_InputScanSelect(ADC_INPUTS_SCAN scanInputs);
Summary
Selects input for scanning ADC channels.
Description
This function updates input channels which will be scanned for MUX A. Previous scanning list will be removed, if any.
Precondition
-
ADC_Initialize() must have been called.
-
ADC module should be disabled.
Parameters
Param | Description |
---|---|
scanInputs | Selects any of the possible positive input from enum ADC_INPUTS_SCAN. User can OR multiple enum elements to select multiple scan channels at one go. |
Returns
None.
Example
ADC_InputScanSelect(ADC_INPUT_SCAN_AN2 | ADC_INPUT_SCAN_AN12 | ADC_INPUT_SCAN_AN5);
Remarks
None.