A chunked ringbuffer. More...
A chunked ringbuffer.
Definition at line 46 of file chunked_ringbuffer.h.
#include <chunked_ringbuffer.h>
Data Fields | |
uint8_t * | buffer |
pointer to the memory to hold the data | |
uint8_t * | buffer_end |
last data element | |
uint8_t * | cur |
current write pointer | |
uint8_t * | cur_start |
start of the currently written chunk | |
uint8_t * | protect |
start of the first valid chunk | |
uint8_t * | chunk_start [CONFIG_CHUNK_NUM_MAX] |
Array to hold start of done chunks. | |
uint16_t | chunk_len [CONFIG_CHUNK_NUM_MAX] |
Length of valid chunks. | |
uint8_t | chunk_cur |
Index of the first valid chunk. | |