nRF5 SDK for Mesh v5.0.0
Functions
Element configuration

Configuration of element parameters. More...

Functions

uint32_t access_element_location_set (uint16_t element_index, uint16_t location)
 Sets the location descriptor for an element. More...
 
uint32_t access_element_location_get (uint16_t element_index, uint16_t *p_location)
 Gets the location descriptor for an element. More...
 
uint32_t access_element_sig_model_count_get (uint16_t element_index, uint8_t *p_sig_model_count)
 Gets the number of Bluetooth SIG models for an element. More...
 
uint32_t access_element_vendor_model_count_get (uint16_t element_index, uint8_t *p_vendor_model_count)
 Gets the number of vendor specific models for an element. More...
 
uint32_t access_element_models_get (uint16_t element_index, access_model_handle_t *p_models, uint16_t *p_count)
 Gets the array of handles corresponding to an element. More...
 

Detailed Description

Configuration of element parameters.

Function Documentation

◆ access_element_location_set()

uint32_t access_element_location_set ( uint16_t  element_index,
uint16_t  location 
)

Sets the location descriptor for an element.

Note
See the list of Bluetooth SIG location descriptors: https://www.bluetooth.com/specifications/assigned-numbers/gatt-namespace-descriptors
Parameters
[in]element_indexElement index.
[in]locationLocation descriptor.
Return values
NRF_SUCCESSSuccessfully set location descriptor.
NRF_ERROR_NOT_FOUNDInvalid element index.

◆ access_element_location_get()

uint32_t access_element_location_get ( uint16_t  element_index,
uint16_t *  p_location 
)

Gets the location descriptor for an element.

Note
See the list of Bluetooth SIG location descriptors: https://www.bluetooth.com/specifications/assigned-numbers/gatt-namespace-descriptors
Parameters
[in]element_indexElement index.
[out]p_locationPointer to store location descriptor.
Return values
NRF_SUCCESSSuccessfully got the location descriptor.
NRF_ERROR_NULLNULL pointer given to function.
NRF_ERROR_NOT_FOUNDInvalid element index.

◆ access_element_sig_model_count_get()

uint32_t access_element_sig_model_count_get ( uint16_t  element_index,
uint8_t *  p_sig_model_count 
)

Gets the number of Bluetooth SIG models for an element.

Parameters
[in]element_indexElement index.
[out]p_sig_model_countPointer to store number of SIG models.
Return values
NRF_SUCCESSSuccessfully got the number of SIG models.
NRF_ERROR_NULLNULL pointer given to function.
NRF_ERROR_NOT_FOUNDInvalid element index.

◆ access_element_vendor_model_count_get()

uint32_t access_element_vendor_model_count_get ( uint16_t  element_index,
uint8_t *  p_vendor_model_count 
)

Gets the number of vendor specific models for an element.

Parameters
[in]element_indexElement index.
[out]p_vendor_model_countPointer to store number of vendor specific models.
Return values
NRF_SUCCESSSuccessfully got the number of vendor specific models.
NRF_ERROR_NULLNULL pointer given to function.
NRF_ERROR_NOT_FOUNDInvalid element index.

◆ access_element_models_get()

uint32_t access_element_models_get ( uint16_t  element_index,
access_model_handle_t p_models,
uint16_t *  p_count 
)

Gets the array of handles corresponding to an element.

Parameters
[in]element_indexElement index.
[out]p_modelsModel handle array
[in,out]p_countIn: Maximum number of model handles that can fit in p_models array. Out: The number of model handles written to p_models array.
Return values
NRF_SUCCESSSuccessfully stored all model handles for this element index.
NRF_ERROR_NULLNULL pointer given to function.
NRF_ERROR_INVALID_LENGTHThe input array was too small for the number of handles.

Documentation feedback | Developer Zone | Subscribe | Updated