Chris BAYLEY / Mbed 2 deprecated SPI-2-USB

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

tinyQ_t Struct Reference

tinyQ_t Struct Reference
[Tiny Queue]

a tinyQ tracks a 4 byte queue with just 1 byte overhead More...

#include <tinyQ.h>

Data Fields

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

Detailed Description

a tinyQ tracks a 4 byte queue with just 1 byte overhead

Definition at line 14 of file tinyQ.h.


Field Documentation

unsigned int head

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

Definition at line 16 of file tinyQ.h.