19 #define MOZZI_BUFFER_SIZE 256
26 template <
class ITEM_TYPE>
39 return end == start && e_msb != s_msb;
44 return end == start && e_msb == s_msb;
48 void write(ITEM_TYPE in) {
56 ITEM_TYPE out = items[start];
62 unsigned long count() {
63 return (num_buffers_read << 8) + start;
66 ITEM_TYPE * address() {
71 ITEM_TYPE items[MOZZI_BUFFER_SIZE];
76 unsigned long num_buffers_read;
91 if (end == 0) e_msb ^= 1;
CircularBuffer()
Constructor.