Zephyr API Documentation 4.0.0-rc3
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

Macros

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

Detailed Description

Macro Definition Documentation

◆ MPSC_PBUF_FULL

#define MPSC_PBUF_FULL   BIT(3)

#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 <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 <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 <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.