nrf-softdevice-s113

Crates

git

Versions

default

Flavors

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

@brief Get a BLE option.

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

@param[in] opt_id Option ID, see @ref BLE_COMMON_OPTS and @ref BLE_GAP_OPTS. @param[out] p_opt Pointer to a ble_opt_t structure to be filled in.

@retval ::NRF_SUCCESS Option retrieved 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 retrieve the parameter at this time. @retval ::NRF_ERROR_BUSY The BLE stack is busy or the previous procedure has not completed. @retval ::NRF_ERROR_NOT_SUPPORTED This option is not supported.