|
Zephyr Project API 4.4.99
A Scalable Open Source RTOS
|
Single Edge Nibble Transmission (SENT) driver API. More...
Go to the source code of this file.
Data Structures | |
| struct | sent_frame |
| SENT frame structure. More... | |
| struct | sent_rx_callback_config |
| Configuration structure for RX callback. More... | |
| struct | sent_rx_callback_configs |
| Composite configuration structure for RX callback registration. More... | |
| struct | sent_driver_api |
| @driver_ops{SENT} More... | |
Macros | |
| #define | SENT_MAX_DATA_NIBBLES 8 |
| Maximum number of data nibbles. | |
Typedefs | |
| typedef void(* | sent_rx_frame_callback_t) (const struct device *dev, uint8_t channel, uint32_t num_frame, void *user_data) |
| Defines the application callback handler function signature for receiving frame. | |
| typedef int(* | sent_start_listening_t) (const struct device *dev, uint8_t channel) |
| @def_driverbackendgroup{SENT,sent_interface} | |
| typedef int(* | sent_stop_listening_t) (const struct device *dev, uint8_t channel) |
| Callback API upon stopping receive frame See sent_stop_listening() for argument description. | |
| typedef int(* | sent_register_callback_t) (const struct device *dev, uint8_t channel, struct sent_rx_callback_configs callback_configs) |
| Callback API upon adding RX callback See sent_register_callback() for argument description. | |
Enumerations | |
| enum | sent_frame_type { SENT_SHORT_SERIAL_FRAME , SENT_ENHANCED_SERIAL_FRAME_4_BIT_ID , SENT_ENHANCED_SERIAL_FRAME_8_BIT_ID , SENT_FAST_FRAME } |
| SENT frame type. More... | |
Functions | |
| int | sent_start_listening (const struct device *dev, uint8_t channel) |
| Enable a specific channel to start receiving from the bus. | |
| int | sent_stop_listening (const struct device *dev, uint8_t channel) |
| Disable a specific channel to stop receiving from the bus. | |
| int | sent_register_callback (const struct device *dev, uint8_t channel, struct sent_rx_callback_configs callback_configs) |
| Add a callback function to handle messages received for a specific channel. | |
Single Edge Nibble Transmission (SENT) driver API.