|
Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
|
ADC comparator driver. More...
Files | |
| file | adc_comp.h |
| ADC comparator driver API. | |
Functions | |
| int | comp_adc_comp_set_threshold (const struct device *dev, int32_t ref_mv) |
| Set the voltage threshold for an ADC comparator. | |
ADC comparator driver.
#include <zephyr/drivers/comparator/adc_comp.h>
Set the voltage threshold for an ADC comparator.
| dev | ADC comparator device instance. |
| ref_mv | Threshold voltage in millivolts above which output is high. |
| 0 | On success. |