LPCOpen Platform for LPC18XX/43XX microcontrollers: C:/w/lpcopen_docs/software/lpc_core/lpc_chip/chip_common/ring_buffer.c File Reference

| LPCOpen Platform for LPC18XX/43XX microcontrollers 18XX43XX LPCOpen Platform for the NXP LPC18XX/43XX family of Microcontrollers

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

Macros | Functions
ring_buffer.c File Reference
`#include <string.h>`
`#include "ring_buffer.h"`

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...

## Macro Definition Documentation

#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.