|
Zephyr Project API 4.4.99
A Scalable Open Source RTOS
|
Digital Addressable Lighting Interface (DALI) driver API. More...
#include <zephyr/device.h>#include <zephyr/sys_clock.h>#include <zephyr/sys/__assert.h>#include <errno.h>#include <stdbool.h>#include <zephyr/syscalls/dali.h>Go to the source code of this file.
Data Structures | |
| struct | dali_frame |
| DALI frame structure. More... | |
| struct | dali_driver_api |
| @driver_ops{DALI} More... | |
Typedefs | |
| typedef void(* | dali_receive_callback_t) (const struct device *dev, struct dali_frame frame, void *user_data) |
| Defines the application callback handler function signature for receiving a DALI frame. | |
| typedef void(* | dali_transmit_callback_t) (const struct device *dev, int error, void *user_data) |
| Defines the application callback handler function signature for transmitting a DALI frame. | |
| typedef int(* | dali_api_set_receive_callback_t) (const struct device *dev, dali_receive_callback_t callback, void *user_data) |
| @def_driverbackendgroup{DALI,dali_interface} | |
| typedef int(* | dali_api_transmit_t) (const struct device *dev, const struct dali_frame *frame, dali_transmit_callback_t callback, void *user_data) |
| API for transmitting DALI frames. | |
Enumerations | |
| enum | dali_event_type { DALI_FRAME_CORRUPT , DALI_FRAME_BACKWARD , DALI_FRAME_GEAR , DALI_FRAME_DEVICE , DALI_FRAME_FIRMWARE , DALI_EVENT_BUS_FAILURE , DALI_EVENT_BUS_IDLE } |
| DALI frame types. More... | |
Functions | |
| int | dali_set_receive_callback (const struct device *dev, dali_receive_callback_t callback, void *user_data) |
| Set a callback function that receives frames from the DALI bus. | |
| int | dali_transmit (const struct device *dev, const struct dali_frame *frame, dali_transmit_callback_t callback, void *user_data) |
| Transmit a frame on the DALI bus. | |
Digital Addressable Lighting Interface (DALI) driver API.