C Microkernel Realtime eXecutive
Realtime Operating System for Cortex-M based microcontrollers
 
Loading...
Searching...
No Matches
Queue Struct Reference

Generic queue structure. More...

Data Fields

volatile uint16_t write_cursor
 
volatile uint16_t read_cursor
 
volatile bool empty
 
uint8_t depth
 
uint8_t item_size
 
unsigned char content []
 

Detailed Description

Generic queue structure.

This structure provides a header for queue that can be used with routines provided by the queue library. Note that this structure does not allocate any storage space for the queue data itself. It is up on the developer to allocate that space.

If your use case requires roughly 256 bytes of queue storage, you can use BasicQueue structure to allocate storage for the queue automatically.

Field Documentation

◆ content

unsigned char Queue::content[]

◆ depth

uint8_t Queue::depth

◆ empty

volatile bool Queue::empty

◆ item_size

uint8_t Queue::item_size

◆ read_cursor

volatile uint16_t Queue::read_cursor

◆ write_cursor

volatile uint16_t Queue::write_cursor