nRF51 SDK v9.0.0
Connectivity auxiliary functions for providing static memory required by Soft Device. More...
Data Structures |
|
| struct | ser_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) |
|
release 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 instance identified by a connection handle in m_user_mem_table[].
More...
|
|
Detailed Description
Connectivity auxiliary functions for providing static memory required by Soft Device.
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_index pointer to the index of allocated instance
- Return values
-
NRF_SUCCESS great success. NRF_ERROR_NO_MEM no free instance available.
| uint32_t conn_ble_user_mem_context_destroy | ( | uint16_t | conn_handle | ) |
release instance identified by a connection handle.
- Parameters
-
[in] conn_handle conn_handle
- Return values
-
NRF_SUCCESS Context released. NRF_ERROR_NOT_FOUND instance with conn_handle not found
| uint32_t conn_ble_user_mem_context_find | ( | uint16_t | conn_handle , |
| uint32_t * | p_index | ||
| ) |
finds index of instance identified by a connection handle in m_user_mem_table[].
- Parameters
-
[in] conn_handle conn_handle [out] p_index Pointer to the index of entry in the context table corresponding to the given conn_handle
- Return values
-
NRF_SUCCESS Context table entry found NRF_ERROR_NOT_FOUND instance with conn_handle not found