changed low freq. clock source to IRC

Dependents:   BLE_ANCS_SDAPI_IRC

Fork of nRF51822 by Nordic Semiconductor

Embed: (wiki syntax)

« Back to documentation index

app_fifo_t Struct Reference

app_fifo_t Struct Reference
[FIFO implementation]

A FIFO instance structure. More...

#include <app_fifo.h>

Data Fields

uint8_t * p_buf
 Pointer to FIFO buffer memory.
uint16_t buf_size_mask
 Read/write index mask.
volatile uint32_t read_pos
 Next read position in the FIFO buffer.
volatile uint32_t write_pos
 Next write position in the FIFO buffer.

Detailed Description

A FIFO instance structure.

Keeps track of which bytes to read and write next. Also it keeps the information about which memory is allocated for the buffer and its size. This needs to be initialized by app_fifo_init() before use.

Definition at line 34 of file app_fifo.h.


Field Documentation

uint16_t buf_size_mask

Read/write index mask.

Also used for size checking.

Definition at line 37 of file app_fifo.h.

uint8_t* p_buf

Pointer to FIFO buffer memory.

Definition at line 36 of file app_fifo.h.

volatile uint32_t read_pos

Next read position in the FIFO buffer.

Definition at line 38 of file app_fifo.h.

volatile uint32_t write_pos

Next write position in the FIFO buffer.

Definition at line 39 of file app_fifo.h.