Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
 4.2.99
sent.h File Reference

Single Edge Nibble Transmission (SENT) driver API. More...

#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/syscalls/sent.h>

Go to the source code of this file.

Data Structures

struct  sent_frame
 SENT frame structure. 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.

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.

Detailed Description

Single Edge Nibble Transmission (SENT) driver API.