nRF5 SDK v13.0.0
Data Structures | Functions
Functions for managing memory for user memory request on connectivity device.

Connectivity auxiliary functions for providing static memory required by the SoftDevice. More...

Data Structures

struct  sercon_ble_user_mem_t
 Connection - user memory mapping structure. More...
 

Functions

uint32_t conn_ble_user_mem_context_create (uint32_t *p_index)
 Allocates instance in m_user_mem_table[] for storage. More...
 
uint32_t conn_ble_user_mem_context_destroy (uint16_t conn_handle)
 Releases the instance identified by a connection handle. More...
 
uint32_t conn_ble_user_mem_context_find (uint16_t conn_handle, uint32_t *p_index)
 Finds index of the instance identified by a connection handle in m_user_mem_table[]. More...
 

Detailed Description

Connectivity auxiliary functions for providing static memory required by the SoftDevice.

Function Documentation

uint32_t conn_ble_user_mem_context_create ( uint32_t *  p_index)

Allocates instance in m_user_mem_table[] for storage.

Parameters
[out]p_indexPointer to the index of allocated instance.
Return values
NRF_SUCCESSSuccess.
NRF_ERROR_NO_MEMNo free instance available.
uint32_t conn_ble_user_mem_context_destroy ( uint16_t  conn_handle)

Releases the instance identified by a connection handle.

Parameters
[in]conn_handleconn_handle
Return values
NRF_SUCCESSContext released.
NRF_ERROR_NOT_FOUNDInstance with the conn_handle not found.
uint32_t conn_ble_user_mem_context_find ( uint16_t  conn_handle,
uint32_t *  p_index 
)

Finds index of the instance identified by a connection handle in m_user_mem_table[].

Parameters
[in]conn_handleconn_handle
[out]p_indexPointer to the index of entry in the context table corresponding to the given conn_handle.
Return values
NRF_SUCCESSContext table entry found.
NRF_ERROR_NOT_FOUNDInstance with the conn_handle not found.

Documentation feedback | Developer Zone | Subscribe | Updated