![]() |
LPCOpen Platform
v1.03
LPCOpen Platform for NXP LPC 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. | |
| int | RingBuffer_Insert (RINGBUFF_T *RingBuff, const void *data) |
| Insert a single item into ring buffer. | |
| int | RingBuffer_InsertMult (RINGBUFF_T *RingBuff, const void *data, int num) |
| Insert an array of items into ring buffer. | |
| int | RingBuffer_Pop (RINGBUFF_T *RingBuff, void *data) |
| Pop an item from the ring buffer. | |
| int | RingBuffer_PopMult (RINGBUFF_T *RingBuff, void *data, int num) |
| Pop an array of items from the ring buffer. | |
Definition at line 38 of file ring_buffer.c.
Definition at line 39 of file ring_buffer.c.