Zephyr API Documentation  2.7.0-rc2
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...
 

Detailed Description

Macro Definition Documentation

◆ MPSC_PBUF_MODE_OVERWRITE

#define MPSC_PBUF_MODE_OVERWRITE   BIT(1)

#include <include/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/sys/mpsc_pbuf.h>

Flag indicating that buffer size is power of 2.

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