39#ifndef NRF_802154_QUEUE_H__
40#define NRF_802154_QUEUE_H__
void nrf_802154_queue_push_commit(nrf_802154_queue_t *p_queue)
Increments write pointer of the queue.
void nrf_802154_queue_pop_commit(nrf_802154_queue_t *p_queue)
Increments read pointer of the queue.
void * nrf_802154_queue_pop_begin(const nrf_802154_queue_t *p_queue)
Returns pointer to the next item to be read from the queue.
bool nrf_802154_queue_is_full(const nrf_802154_queue_t *p_queue)
Checks if the queue is full.
void nrf_802154_queue_init(nrf_802154_queue_t *p_queue, void *p_memory, size_t memory_size, size_t item_size)
Initializes a queue.
void * nrf_802154_queue_push_begin(const nrf_802154_queue_t *p_queue)
Returns pointer to the next item to be written to the queue.
static bool nrf_802154_queue_is_empty(const nrf_802154_queue_t *p_queue)
Checks if the queue is empty.
Definition nrf_802154_queue.h:146
volatile uint8_t wridx
Index in the items memory of the queue where next item is written.
Definition nrf_802154_queue.h:60
uint8_t capacity
Maximum number of items that can be stored in the memory of the queue.
Definition nrf_802154_queue.h:57
void * p_memory
Pointer to items memory of the queue.
Definition nrf_802154_queue.h:51
uint8_t item_size
Size of an item in the queue.
Definition nrf_802154_queue.h:54
volatile uint8_t rdidx
Index in the items memory of the queue where next item is read.
Definition nrf_802154_queue.h:63
Module implementing simple FIFO queue.
Definition nrf_802154_queue.h:48