Lines Matching refs:ble_state
68 } ble_state; variable
241 if (ble_state == BLE_ADVERTISING) { in connected()
255 ble_state = BLE_CONNECTED; in connected()
271 if (ble_state == BLE_CONNECTED) { in disconnected()
272 ble_state = BLE_DISCONNECTED; in disconnected()
284 if (ble_state != BLE_DISCONNECTED) { in ble_connect()
289 ble_state = BLE_SCAN_START; in ble_connect()
297 switch (ble_state) { in ble_cancel_connect()
299 ble_state = BLE_DISCONNECTED; in ble_cancel_connect()
312 ble_state = BLE_DISCONNECTED; in ble_cancel_connect()
319 ble_state = BLE_CONNECT_CANCEL; in ble_cancel_connect()
361 ble_state = BLE_CONNECT_CREATE; in create_conn()
415 switch (ble_state) { in cancel_connect()
432 if (ble_state != BLE_CONNECTED) { in cancel_connect()
433 ble_state = BLE_DISCONNECTED; in cancel_connect()
446 switch (ble_state) { in ble_timeout()
456 ble_state = BLE_SCAN; in ble_timeout()
463 ble_state = BLE_ADV_START; in ble_timeout()
469 ble_state = BLE_ADV_START; in ble_timeout()
481 ble_state = BLE_ADVERTISING; in ble_timeout()
487 ble_state = BLE_SCAN_START; in ble_timeout()