cQueue 2.0
Queue handling library (written in plain c)
Loading...
Searching...
No Matches
Data Fields
Queue_t Struct Reference

Queue type structure holding all variables to handle the queue. More...

#include <src/cQueue.h>

Data Fields

QueueType impl
 Queue implementation: FIFO LIFO.
 
bool ovw
 Overwrite previous records when queue is full allowed.
 
bool dynamic
 Set to true when queue is dynamically allocated.
 
size_t queue_sz
 Size of the full queue.
 
size_t rec_sz
 Size of a record.
 
uint16_t rec_nb
 number of records in the queue
 
uint8_t * queue
 Queue start pointer (when allocated)
 
uint16_t in
 number of records pushed into the queue
 
uint16_t out
 number of records pulled from the queue (only for FIFO)
 
uint16_t cnt
 number of records not retrieved from the queue
 
uint16_t init
 set to QUEUE_INITIALIZED after successful init of the queue and reset when killing queue
 

Detailed Description

Queue type structure holding all variables to handle the queue.

Field Documentation

◆ cnt

uint16_t Queue_t::cnt

number of records not retrieved from the queue

◆ dynamic

bool Queue_t::dynamic

Set to true when queue is dynamically allocated.

◆ impl

QueueType Queue_t::impl

Queue implementation: FIFO LIFO.

◆ in

uint16_t Queue_t::in

number of records pushed into the queue

◆ init

uint16_t Queue_t::init

set to QUEUE_INITIALIZED after successful init of the queue and reset when killing queue

◆ out

uint16_t Queue_t::out

number of records pulled from the queue (only for FIFO)

◆ ovw

bool Queue_t::ovw

Overwrite previous records when queue is full allowed.

◆ queue

uint8_t* Queue_t::queue

Queue start pointer (when allocated)

◆ queue_sz

size_t Queue_t::queue_sz

Size of the full queue.

◆ rec_nb

uint16_t Queue_t::rec_nb

number of records in the queue

◆ rec_sz

size_t Queue_t::rec_sz

Size of a record.


The documentation for this struct was generated from the following file: