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

◆ nrf_802154_bsmap_init()

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.

Parameters
[out]p_bsmapPointer to the BSMAP object to initialize.
[in]key_sizeThe size of the key in bytes. Must be greater than 0 and no more than UINT16_MAX .
[in]value_sizeThe size of the value associated with the key in bytes. If 0, the BSMAP will store only keys. Must not be more than UINT16_MAX . Sum of the key size and value size must also not be more than UINT16_MAX .
[in]capacityThe capacity (maximum number of keys) of the BSMAP. Must not be more than UINT16_MAX .
[in]p_memoryPointer to a memory storage for the BSMAP. Must be able to store NRF_802154_BSMAP_MEMORY_SIZE bytes.