[−][src]Function openthread_sys::otPlatBleGapScanStart
pub unsafe extern "C" fn otPlatBleGapScanStart(
aInstance: *mut otInstance,
aInterval: u16,
aWindow: u16
) -> otError
Starts BLE Scanning procedure.
@note This function shall be used only for BLE Central role.
@param[in] aInstance The OpenThread instance structure. @param[in] aInterval The scanning interval in OT_BLE_SCAN_INTERVAL_UNIT units. Shall be in OT_BLE_SCAN_INTERVAL_MIN and OT_BLE_SCAN_INTERVAL_MAX range. @param[in] aWindow The scanning window in OT_BLE_SCAN_WINDOW_UNIT units. Shall be in OT_BLE_SCAN_WINDOW_MIN and OT_BLE_SCAN_WINDOW_MAX range.
@retval ::OT_ERROR_NONE Scanning procedure has been started. @retval ::OT_ERROR_INVALID_STATE BLE Device is in invalid state. @retval ::OT_ERROR_INVALID_ARGS Invalid interval or window value has been supplied.