33 #ifndef ti_drivers_utils_StructRingBuf__include 34 #define ti_drivers_utils_StructRingBuf__include size_t maxCount
Definition: StructRingBuf.h:52
void StructRingBuf_construct(StructRingBuf_Handle object, void *bufPtr, size_t bufSize, size_t structSize)
Initialize circular buffer.
int StructRingBuf_put(StructRingBuf_Handle object, const void *data)
Put an unsigned char into the end of the circular buffer.
bool StructRingBuf_isFull(StructRingBuf_Handle object)
Function to determine if the circular buffer is full or not.
int StructRingBuf_getCount(StructRingBuf_Handle object)
Get the number of unsigned chars currently stored on the circular buffer.
size_t length
Definition: StructRingBuf.h:48
uint8_t * buffer
Definition: StructRingBuf.h:47
Definition: StructRingBuf.h:45
int StructRingBuf_peek(StructRingBuf_Handle object, void **data)
Get an unsigned char from the end of the circular buffer without remove it.
size_t structSize
Definition: StructRingBuf.h:53
size_t head
Definition: StructRingBuf.h:50
struct StructRingBuf_Object * StructRingBuf_Handle
int StructRingBuf_getMaxCount(StructRingBuf_Handle object)
A high-water mark indicating the largest number of unsigned chars stored on the circular buffer since...
size_t tail
Definition: StructRingBuf.h:51
int StructRingBuf_get(StructRingBuf_Handle object, void *data)
Get an unsigned char from the end of the circular buffer and remove it.
size_t count
Definition: StructRingBuf.h:49