5.2.4.15 adc_dma_set_thresholds
Set ADC thresholds.
int32_t adc_dma_set_thresholds(
struct adc_dma_descriptor *const descr,
const adc_threshold_t low_threshold,
const adc_threshold_t up_threshold
)
This function sets ADC positive and negative thresholds.
Parameters
- descr
-
Type: struct adc_dma_descriptor Struct *const
The pointer to the ADC descriptor
- low_threshold
-
Type: const adc_threshold_t
A lower thresholds to set
- up_threshold
-
Type: const adc_threshold_t
An upper thresholds to set
Returns
Type: int32_t
Status of the ADC thresholds setting.