Struct Ringbuffer_Index

Struct Documentation

struct Ringbuffer_Index

Buffer index for Ringbuffer keeping track of start and end pointer.

Public Members

uint16_t begin
uint16_t end
uint16_t capacity

maximum number of storable items

bool isFull
bool isEmpty
uint8_t itemSizeBytes

size of one item in bytes

uint16_t itemsCount

statistic: currently stored items

uint16_t maxCapacityUsed

statistic: maximum stored items since reset

uint16_t putCount

statistic: total amount of successfully stored items since reset

uint16_t takeCount

statistic: total amount of successfully taken items since reset