Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
comparator_driver_api Struct Reference

Driver Operations Comparator driver operations More...

#include <zephyr/drivers/comparator.h>

Data Fields

comparator_api_get_output get_output
  REQ Get comparator's output state.
comparator_api_set_trigger set_trigger
  REQ Set comparator's trigger.
comparator_api_set_trigger_callback set_trigger_callback
  REQ Set comparator's trigger callback.
comparator_api_trigger_is_pending trigger_is_pending
  REQ Check if comparator's trigger is pending and clear it.

Detailed Description

Driver Operations Comparator driver operations

This is the driver API structure any Comparator driver needs to define. It contains function pointers to the operations the driver implements, as well as any other driver-specific constant data.

Members marked with REQ MUST be set by the driver, whereas those marked with OPT are optional.

See also
DEVICE_DT_INST_DEFINE()
DEVICE_DT_DEFINE()
DEVICE_API()

Field Documentation

◆ get_output

comparator_api_get_output comparator_driver_api::get_output

REQ Get comparator's output state.

◆ set_trigger

comparator_api_set_trigger comparator_driver_api::set_trigger

REQ Set comparator's trigger.

◆ set_trigger_callback

comparator_api_set_trigger_callback comparator_driver_api::set_trigger_callback

REQ Set comparator's trigger callback.

◆ trigger_is_pending

comparator_api_trigger_is_pending comparator_driver_api::trigger_is_pending

REQ Check if comparator's trigger is pending and clear it.


The documentation for this struct was generated from the following file: