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_bsmap | Pointer to the BSMAP object to search in. |
| [in] | p_key | Pointer to the key to search for. Must not be NULL. |
| [out] | p_value | Pointer 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
-
| true | If the key was found in the BSMAP. If p_value is not NULL, the value associated with the key is stored in it. |
| false | If the key was not found in the BSMAP. |