|
Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
|
Public API for binary relay output drivers. More...
#include <errno.h>#include <stdbool.h>#include <zephyr/device.h>#include <zephyr/syscalls/relay.h>Go to the source code of this file.
Data Structures | |
| struct | relay_driver_api |
| Relay driver class API. More... | |
Typedefs | |
| typedef int(* | relay_set_state_t) (const struct device *dev, bool on) |
| Set the on/off state of the relay. | |
| typedef int(* | relay_get_state_t) (const struct device *dev, bool *on) |
| Read back the on/off state of the relay. | |
Functions | |
| int | relay_set_state (const struct device *dev, bool on) |
| Set the on/off state of the relay. | |
| int | relay_get_state (const struct device *dev, bool *on) |
| Read back the last requested on/off state of the relay. | |
Public API for binary relay output drivers.