nrfxlib API 3.3.99
Loading...
Searching...
No Matches

◆ nrf_802154_bsmap_rec_get()

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.

This function is optimized for high priority execution and is thread-safe with respect to low priority modifications of the BSMAP performed by nrf_802154_bsmap_rec_write and nrf_802154_bsmap_rec_delete functions.

Parameters
[in]p_bsmapPointer to the BSMAP object to search in.
[in]p_keyPointer to the key to search for. Must not be NULL.
[out]p_valuePointer to a variable where the value associated with the key will be stored if the key is found. If NULL or the map does not store values, just a search is performed without retrieving the value. If not NULL, must point to a storage large enough to store value_size bytes as passed to the nrf_802154_bsmap_init function.
Return values
trueIf the key was found in the BSMAP. If p_value is not NULL, the value associated with the key is stored in it.
falseIf the key was not found in the BSMAP.