33 #ifndef ti_drivers_uart_RingBuf__include    34 #define ti_drivers_uart_RingBuf__include    81 int RingBuf_get(RingBuf_Handle 
object, 
unsigned char *data);
   129 int RingBuf_peek(RingBuf_Handle 
object, 
unsigned char *data);
   143 int RingBuf_put(RingBuf_Handle 
object, 
unsigned char data);
 struct RingBuf_Object * RingBuf_Handle
void RingBuf_construct(RingBuf_Handle object, unsigned char *bufPtr, size_t bufSize)
Initialize circular buffer. 
unsigned char * buffer
Definition: RingBuf.h:45
int RingBuf_put(RingBuf_Handle object, unsigned char data)
Put an unsigned char into the end of the circular buffer. 
size_t tail
Definition: RingBuf.h:49
int RingBuf_peek(RingBuf_Handle object, unsigned char *data)
Get an unsigned char from the end of the circular buffer without removing it. 
int RingBuf_getMaxCount(RingBuf_Handle object)
A high-water mark indicating the largest number of unsigned chars stored on the circular buffer since...
int RingBuf_get(RingBuf_Handle object, unsigned char *data)
Get an unsigned char from the end of the circular buffer and remove it. 
size_t count
Definition: RingBuf.h:47
int RingBuf_getCount(RingBuf_Handle object)
Get the number of unsigned chars currently stored on the circular buffer. 
bool RingBuf_isFull(RingBuf_Handle object)
Function to determine if the circular buffer is full or not. 
struct RingBuf_Object RingBuf_Object
size_t head
Definition: RingBuf.h:48
size_t maxCount
Definition: RingBuf.h:50
size_t length
Definition: RingBuf.h:46