nrfxlib API 3.3.99
Loading...
Searching...
No Matches
nrf_802154_bsmap.h File Reference
#include <nrfx.h>
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>

Go to the source code of this file.

Data Structures

struct  nrf_802154_bsmap_iterator_t
 Type of an iterator used to iterate over the BSMAP. More...
 
struct  nrf_802154_bsmap_t
 Type of a structure holding the BSMAP object. More...
 

Macros

#define NRF_802154_BSMAP_ENTRY_SIZE(key_size, value_size)
 Calculate the size of a single entry (key + value) in the BSMAP.
 
#define NRF_802154_BSMAP_MEMORY_SIZE(key_size, value_size, capacity)
 Calculate the size of the memory needed to store keys in the BSMAP.
 
#define NRF_802154_BSMAP_AUX_MEMORY_SIZE(key_size, value_size)
 Calculate the size of the auxiliary memory needed for the BSMAP.
 

Functions

void nrf_802154_bsmap_init (nrf_802154_bsmap_t *p_bsmap, size_t key_size, size_t value_size, size_t capacity, void *p_memory)
 Initialize the BSMAP object.
 
bool nrf_802154_bsmap_rec_get (const nrf_802154_bsmap_t *p_bsmap, const void *p_key, void *p_value)
 Search for a record associated with the key in the BSMAP and copy the associated value into p_value if found.
 
bool nrf_802154_bsmap_rec_write (nrf_802154_bsmap_t *p_bsmap, const void *p_key, const void *p_value, void *p_aux_memory)
 Write a record associated with a key into the BSMAP.
 
bool nrf_802154_bsmap_rec_delete (nrf_802154_bsmap_t *p_bsmap, const void *p_key, void *p_aux_memory)
 Delete a record associated with a key from the BSMAP.
 
void nrf_802154_bsmap_clear (nrf_802154_bsmap_t *p_bsmap)
 Remove all entries from the BSMAP.
 
void nrf_802154_bsmap_iterator_begin (nrf_802154_bsmap_t *p_bsmap, nrf_802154_bsmap_iterator_t *p_iter, bool forward)
 Start iteration over the BSMAP.
 
bool nrf_802154_bsmap_iterator_is_valid (const nrf_802154_bsmap_iterator_t *p_iter)
 Check if iterator points to an existing item in the BSMAP.
 
void nrf_802154_bsmap_iterator_rec_key_get (const nrf_802154_bsmap_iterator_t *p_iter, void *p_key)
 Get the key part of record at given iterator.
 
void nrf_802154_bsmap_iterator_rec_value_get (const nrf_802154_bsmap_iterator_t *p_iter, void *p_value)
 Get the value part of record at given iterator.
 
void nrf_802154_bsmap_iterator_rec_value_write (const nrf_802154_bsmap_iterator_t *p_iter, const void *p_value, void *p_aux_memory)
 Write the value part of record at given iterator.
 
void nrf_802154_bsmap_iterator_rec_delete (nrf_802154_bsmap_iterator_t *p_iter, void *p_aux_memory)
 Delete a record at given iterator.
 
void nrf_802154_bsmap_iterator_next (nrf_802154_bsmap_iterator_t *p_iter)
 Move the BSMAP iterator to the next position.
 
void nrf_802154_bsmap_iterator_finish (nrf_802154_bsmap_iterator_t *p_iter)
 Finish the iteration over a BSMAP the iterator is bound to.