nRF5 SDK for Mesh v1.0.1
Functions
Packed index list

Provides support for writing lists of packed 12-bit key indexes. More...

Functions

uint32_t packed_index_list_size (uint16_t index_count)
 Calculates the size of a packed index list. More...
 
void packed_index_list_create (const uint16_t *restrict p_index_list, uint8_t *restrict p_packed_list, uint16_t index_count)
 Creates a packed index list. More...
 

Detailed Description

Provides support for writing lists of packed 12-bit key indexes.

Function Documentation

◆ packed_index_list_size()

uint32_t packed_index_list_size ( uint16_t  index_count)

Calculates the size of a packed index list.

Parameters
[in]index_countNumber of indexes that the list will contain.
Returns
The size in bytes of the packed index list with the specified number of indexes.

◆ packed_index_list_create()

void packed_index_list_create ( const uint16_t *restrict  p_index_list,
uint8_t *restrict  p_packed_list,
uint16_t  index_count 
)

Creates a packed index list.

Parameters
[in]p_index_listList of indexes to pack into the output list.
[out]p_packed_listPointer to the start of a buffer where the packed index list is written. The size that this buffer must have can be obtained by calling packed_index_list_size().
[in]index_countNumber of indexes to store in the packed index list.

Documentation feedback | Developer Zone | Subscribe | Updated