Zephyr Project API 4.0.0
A Scalable Open Source RTOS
|
MPSC packet buffer structure. More...
#include <mpsc_pbuf.h>
Data Fields | |
uint32_t | tmp_wr_idx |
Temporary write index. | |
uint32_t | wr_idx |
Write index. | |
uint32_t | tmp_rd_idx |
Temporary read index. | |
uint32_t | rd_idx |
Read index. | |
uint32_t | flags |
Flags. | |
struct k_spinlock | lock |
Lock. | |
mpsc_pbuf_notify_drop | notify_drop |
User callback called whenever packet is dropped. | |
mpsc_pbuf_get_wlen | get_wlen |
Callback for getting packet length. | |
uint32_t * | buf |
uint32_t | size |
uint32_t | max_usage |
struct k_sem | sem |
MPSC packet buffer structure.
uint32_t* mpsc_pbuf_buffer::buf |
uint32_t mpsc_pbuf_buffer::flags |
Flags.
mpsc_pbuf_get_wlen mpsc_pbuf_buffer::get_wlen |
Callback for getting packet length.
struct k_spinlock mpsc_pbuf_buffer::lock |
Lock.
uint32_t mpsc_pbuf_buffer::max_usage |
mpsc_pbuf_notify_drop mpsc_pbuf_buffer::notify_drop |
User callback called whenever packet is dropped.
May be NULL if unneeded.
uint32_t mpsc_pbuf_buffer::rd_idx |
Read index.
struct k_sem mpsc_pbuf_buffer::sem |
uint32_t mpsc_pbuf_buffer::size |
uint32_t mpsc_pbuf_buffer::tmp_rd_idx |
Temporary read index.
uint32_t mpsc_pbuf_buffer::tmp_wr_idx |
Temporary write index.
uint32_t mpsc_pbuf_buffer::wr_idx |
Write index.