Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
MPSC packet buffer structure. More...
#include <mpsc_pbuf.h>
Data Fields | |
uint32_t | tmp_wr_idx |
uint32_t | wr_idx |
uint32_t | tmp_rd_idx |
uint32_t | rd_idx |
uint32_t | flags |
struct k_spinlock | lock |
mpsc_pbuf_notify_drop | notify_drop |
mpsc_pbuf_get_wlen | get_wlen |
uint32_t * | buf |
uint32_t | size |
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.
mpsc_pbuf_notify_drop mpsc_pbuf_buffer::notify_drop |
User callback called whenever packet is dropped.
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.