nrfxlib API 0.1.0
Loading...
Searching...
No Matches
nrf_802154_queue.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>

Go to the source code of this file.

Data Structures

struct  nrf_802154_queue_t
 Module implementing simple FIFO queue. More...
 

Functions

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.
 
void nrf_802154_queue_push_commit (nrf_802154_queue_t *p_queue)
 Increments write 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.
 
void nrf_802154_queue_pop_commit (nrf_802154_queue_t *p_queue)
 Increments read pointer of the queue.
 
static bool nrf_802154_queue_is_empty (const nrf_802154_queue_t *p_queue)
 Checks if the queue is empty.
 
bool nrf_802154_queue_is_full (const nrf_802154_queue_t *p_queue)
 Checks if the queue is full.