|
avr-classes
|
#include <synchronizedringbuffer.h>
Public Member Functions | |
| bool | enqueue (BASETYPE item) |
| bool | dequeue (BASETYPE *item) |
| bool | isEmpty (void) |
| bool | isFull (void) |
Public Member Functions inherited from RingBuffer< BASETYPE, COUNT > | |
| bool | enqueue (BASETYPE item) |
| bool | dequeue (BASETYPE *item) |
| bool | isEmpty (void) |
| bool | isFull (void) |
Template class that extends the RingBuffer by locking interrupts globally for each action.
| BASETYPE | Type of elements in ring buffer |
| COUNT | Maximum count of elements that can be placed in ring buffer |
|
inline |
Gets an element from the ring buffer.
| item | Pointer to buffer to receive the element. |
|
inline |
Adds an element into the ringer buffer.
| item | Item to add. |
|
inline |
Returns if buffer is empty.
|
inline |
Returns if buffer is full.
1.8.13