1 #ifndef CIRCULARBUFFER_H
2 #define CIRCULARBUFFER_H
5 #define CIRCULARBUFFER_MSGS 10
6 #define CIRCULARBUFFER_SIZE CIRCULARBUFFER_MSGS*_msgSize
20 bool put(byte *buffer);
21 bool get(byte *buffer);
22 int getPos(){
return pos;};
24 byte _buf[CIRCULARBUFFER_SIZE];
32 #endif // CIRCULARBUFFER_H
CircularBuffer()
Constructor Basically set the initial values of the internal variables.
Definition: CircularBuffer.cpp:7
bool put(byte *buffer)
Add a message of the _msgSize size to the buffer.
Definition: CircularBuffer.cpp:29
Definition: CircularBuffer.h:14
virtual ~CircularBuffer()
Destructor.
Definition: CircularBuffer.cpp:18