nrf-softdevice-s122

Crates

git

Versions

default

Flavors

pub unsafe fn sd_ble_user_mem_reply(
conn_handle: u16,
p_block: *const ble_user_mem_block_t
) -> u32
Expand description

@brief Provide a user memory block.

@note This call can only be used as a response to a @ref BLE_EVT_USER_MEM_REQUEST event issued to the application.

@param[in] conn_handle Connection handle. @param[in] p_block Pointer to a user memory block structure or NULL if memory is managed by the application.

@mscs @mmsc{@ref BLE_GATTS_QUEUED_WRITE_PEER_CANCEL_MSC} @mmsc{@ref BLE_GATTS_QUEUED_WRITE_NOBUF_AUTH_MSC} @mmsc{@ref BLE_GATTS_QUEUED_WRITE_NOBUF_NOAUTH_MSC} @mmsc{@ref BLE_GATTS_QUEUED_WRITE_BUF_AUTH_MSC} @mmsc{@ref BLE_GATTS_QUEUED_WRITE_BUF_NOAUTH_MSC} @mmsc{@ref BLE_GATTS_QUEUED_WRITE_QUEUE_FULL_MSC} @endmscs

@retval ::NRF_SUCCESS Successfully queued a response to the peer. @retval ::NRF_ERROR_INVALID_ADDR Invalid pointer supplied. @retval ::NRF_ERROR_BUSY The stack is busy, process pending events and retry. @retval ::BLE_ERROR_INVALID_CONN_HANDLE Invalid Connection Handle. @retval ::NRF_ERROR_INVALID_LENGTH Invalid user memory block length supplied. @retval ::NRF_ERROR_INVALID_STATE Invalid Connection state or no user memory request pending.