![]() |
LPCOpen Platform for LPC112X microcontrollers
112X
LPCOpen Platform for the NXP LPC112X family of Microcontrollers
|
Go to the source code of this file.
Macros | |
#define | RB_INDH(rb) ((rb)->head & ((rb)->count - 1)) |
#define | RB_INDT(rb) ((rb)->tail & ((rb)->count - 1)) |
Functions | |
int | RingBuffer_Init (RINGBUFF_T *RingBuff, void *buffer, int itemSize, int count) |
Initialize ring buffer. More... | |
int | RingBuffer_Insert (RINGBUFF_T *RingBuff, const void *data) |
Insert a single item into ring buffer. More... | |
int | RingBuffer_InsertMult (RINGBUFF_T *RingBuff, const void *data, int num) |
Insert an array of items into ring buffer. More... | |
int | RingBuffer_Pop (RINGBUFF_T *RingBuff, void *data) |
Pop an item from the ring buffer. More... | |
int | RingBuffer_PopMult (RINGBUFF_T *RingBuff, void *data, int num) |
Pop an array of items from the ring buffer. More... | |
#define RB_INDH | ( | rb | ) | ((rb)->head & ((rb)->count - 1)) |
Definition at line 39 of file ring_buffer.c.
#define RB_INDT | ( | rb | ) | ((rb)->tail & ((rb)->count - 1)) |
Definition at line 40 of file ring_buffer.c.