Zephyr Project API  3.3.0
A Scalable Open Source RTOS

Macros

#define MPSC_PBUF_SIZE_POW2   BIT(0)
 Flag indicating that buffer size is power of 2. More...
 
#define MPSC_PBUF_MODE_OVERWRITE   BIT(1)
 Flag indicating buffer full policy. More...
 
#define MPSC_PBUF_MAX_UTILIZATION   BIT(2)
 Flag indicating that maximum buffer usage is tracked. More...
 
#define MPSC_PBUF_FULL   BIT(3)
 Flag indicated that buffer is currently full. More...
 

Detailed Description

Macro Definition Documentation

◆ MPSC_PBUF_FULL

#define MPSC_PBUF_FULL   BIT(3)

#include <include/zephyr/sys/mpsc_pbuf.h>

Flag indicated that buffer is currently full.

◆ MPSC_PBUF_MAX_UTILIZATION

#define MPSC_PBUF_MAX_UTILIZATION   BIT(2)

#include <include/zephyr/sys/mpsc_pbuf.h>

Flag indicating that maximum buffer usage is tracked.

◆ MPSC_PBUF_MODE_OVERWRITE

#define MPSC_PBUF_MODE_OVERWRITE   BIT(1)

#include <include/zephyr/sys/mpsc_pbuf.h>

Flag indicating buffer full policy.

If flag is set then when allocating from a full buffer oldest packets are dropped. When flag is not set then allocation returns null.

◆ MPSC_PBUF_SIZE_POW2

#define MPSC_PBUF_SIZE_POW2   BIT(0)

#include <include/zephyr/sys/mpsc_pbuf.h>

Flag indicating that buffer size is power of 2.

When buffer size is power of 2 then optimizations are applied.