nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ DATA_FIFO_DEFINE

#define DATA_FIFO_DEFINE ( name,
elements_max_in,
block_size_max_in )

#include <include/data_fifo.h>

Value:
char __aligned(WB_UP( \
1)) _msgq_buffer_##name[(elements_max_in) * sizeof(struct data_fifo_msgq)] = {0}; \
char __aligned(WB_UP(1)) _slab_buffer_##name[(elements_max_in) * (block_size_max_in)] = { \
0}; \
struct data_fifo name = {.msgq_buffer = _msgq_buffer_##name, \
.slab_buffer = _slab_buffer_##name, \
.block_size_max = block_size_max_in, \
.elements_max = elements_max_in, \
.initialized = false}