#include <interface.h>
|
void(* | send )(const struct device *dev, struct net_buf *buf) |
| Send a packet over the interface.
|
|
void(* | decrypt_result )(const struct device *dev, struct net_buf *buf, int decrypt_result) |
| Callback for packet decryption result.
|
|
int(* | receive_ctrl )(const struct device *dev, bool enable) |
| Control receiving on the interface.
|
|
uint16_t(* | max_packet_size )(const struct device *dev) |
| Get current maximum packet size.
|
|
◆ decrypt_result
void(* epacket_interface_api::decrypt_result) (const struct device *dev, struct net_buf *buf, int decrypt_result) |
Callback for packet decryption result.
Can be used for downlink tracking in backend drivers.
- Parameters
-
dev | Interface device |
buf | Packet buffer |
decrypt_result | 0 if successfully decrypted, -1 otherwise |
◆ max_packet_size
uint16_t(* epacket_interface_api::max_packet_size) (const struct device *dev) |
◆ receive_ctrl
int(* epacket_interface_api::receive_ctrl) (const struct device *dev, bool enable) |
Control receiving on the interface.
- Parameters
-
dev | Interface device |
enable | True to enable receiving, false to disable |
- Return values
-
0 | on success |
-errno | on failure |
◆ send
void(* epacket_interface_api::send) (const struct device *dev, struct net_buf *buf) |
Send a packet over the interface.
- Note
- Transmission errors can be detected through epacket_interface_cb
- Parameters
-
dev | Interface device |
buf | Packet to send |
The documentation for this struct was generated from the following file: