Zephyr API Documentation  3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
MPSC (Multi producer, single consumer) packet header

Multi producer, single consumer packet header. More...

Data Structures

struct  mpsc_pbuf_hdr
 Generic packet header. More...
 
struct  mpsc_pbuf_skip
 Skip packet used internally by the packet buffer. More...
 
union  mpsc_pbuf_generic
 Generic packet header. More...
 

Macros

#define MPSC_PBUF_HDR_BITS   2
 Number of bits in the first word which are used by the buffer.
 
#define MPSC_PBUF_HDR
 Header that must be added to the first word in each packet.
 

Detailed Description

Multi producer, single consumer packet header.

Macro Definition Documentation

◆ MPSC_PBUF_HDR

#define MPSC_PBUF_HDR

#include <zephyr/sys/mpsc_packet.h>

Value:
uint32_t valid: 1; \
uint32_t busy: 1
__UINT32_TYPE__ uint32_t
Definition: stdint.h:90

Header that must be added to the first word in each packet.

This fields are controlled by the packet buffer and unless specified must not be used. Fields must be added at the top of the packet header structure.

◆ MPSC_PBUF_HDR_BITS

#define MPSC_PBUF_HDR_BITS   2

#include <zephyr/sys/mpsc_packet.h>

Number of bits in the first word which are used by the buffer.