|
Zephyr API Documentation 4.3.0-rc1
A Scalable Open Source RTOS
|
Main header file for comparator driver API. More...
Go to the source code of this file.
Typedefs | |
| typedef void(* | comparator_callback_t) (const struct device *dev, void *user_data) |
| Comparator callback template. | |
Enumerations | |
| enum | comparator_trigger { COMPARATOR_TRIGGER_NONE = 0 , COMPARATOR_TRIGGER_RISING_EDGE , COMPARATOR_TRIGGER_FALLING_EDGE , COMPARATOR_TRIGGER_BOTH_EDGES } |
| Comparator trigger enumerations. More... | |
Functions | |
| int | comparator_get_output (const struct device *dev) |
| Get comparator's output state. | |
| int | comparator_set_trigger (const struct device *dev, enum comparator_trigger trigger) |
| Set comparator's trigger. | |
| static int | comparator_set_trigger_callback (const struct device *dev, comparator_callback_t callback, void *user_data) |
| Set comparator's trigger callback. | |
| int | comparator_trigger_is_pending (const struct device *dev) |
| Check if comparator's trigger is pending and clear it. | |
Main header file for comparator driver API.