Chris BAYLEY / Mbed 2 deprecated UARTSnoop

Dependencies:   MODSERIAL Terminal mbed

Embed: (wiki syntax)

« Back to documentation index

tinyQ_t Struct Reference

tinyQ_t Struct Reference
[Tiny Queue]

a tinyQ tracks a 8 * queue with just 1 byte overhead More...

#include <TinyQueue.h>

Data Fields

unsigned char head:8
 the bit depth MUST be that power of 2 that is the Q_SIZE
unsigned char tail:8
 the bit depth MUST be that power of 2 that is the Q_SIZE
unsigned char fill:9
 Must be 1 bit bigger than the head and tail pointers.
void * data [Q_SIZE]
 NOTE: Q_SIZE MUST be == 2 ^ widthof( tinyQ_t.head )

Detailed Description

a tinyQ tracks a 8 * queue with just 1 byte overhead

Definition at line 15 of file TinyQueue.h.


Field Documentation

unsigned char head

the bit depth MUST be that power of 2 that is the Q_SIZE

Definition at line 17 of file TinyQueue.h.