Embassy
nrf-softdevice-s122

Crates

git

Versions

default

Flavors

pub unsafe fn sd_ble_gap_evt_trigger_stop(role: u8, handle: u16) -> u32
Expand description

@brief Stop triggering the task configured using @ref sd_ble_gap_evt_trigger_start.

@param[in] role The role to stop the event trigger for. The following roles are supported on this SoftDevice: - @ref BLE_GAP_LL_ROLE_CONN - @ref BLE_GAP_LL_ROLE_SCAN - @ref BLE_GAP_LL_ROLE_INIT @param[in] handle The handle parameter is interpreted depending on role: - If role is @ref BLE_GAP_LL_ROLE_CONN, this value is the specific connection handle. - For all other roles, handle is ignored.

@retval ::NRF_SUCCESS Success. @retval ::BLE_ERROR_INVALID_CONN_HANDLE Invalid connection handle supplied. @retval ::NRF_ERROR_INVALID_STATE Trying to stop event triggering when it is not started.