nrf-softdevice-s122

Crates

git

Versions

default

Flavors

pub unsafe fn sd_ble_opt_set(opt_id: u32, p_opt: *const ble_opt_t) -> u32
Expand description

@brief Set a BLE option.

@details This call allows the application to set the value of an option.

@param[in] opt_id Option ID, see @ref BLE_COMMON_OPTS and @ref BLE_GAP_OPTS. @param[in] p_opt Pointer to a @ref ble_opt_t structure containing the option value.

@retval ::NRF_SUCCESS Option set successfully. @retval ::NRF_ERROR_INVALID_ADDR Invalid pointer supplied. @retval ::BLE_ERROR_INVALID_CONN_HANDLE Invalid Connection Handle. @retval ::NRF_ERROR_INVALID_PARAM Invalid parameter(s) supplied, check parameter limits and constraints. @retval ::NRF_ERROR_INVALID_STATE Unable to set the parameter at this time. @retval ::NRF_ERROR_BUSY The BLE stack is busy or the previous procedure has not completed.

@note For a complete set of return values see @ref ble_opt_t.