mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-23 19:23:09 +00:00
0af6c9882e
* api-hal-bt: separate bt init to core init and app start * bt: add continuous TX and RX tests * bt: finish rx test on Back button click * api-hal-bt: check core 2 started, same f4 and f5 implementation * bt: refactoring, move hopping test logic to main thread Co-authored-by: あく <alleteam@gmail.com>
31 lines
541 B
C
31 lines
541 B
C
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdbool.h>
|
|
#include "hci_tl.h"
|
|
|
|
typedef enum {
|
|
APP_BLE_IDLE,
|
|
APP_BLE_FAST_ADV,
|
|
APP_BLE_LP_ADV,
|
|
APP_BLE_SCAN,
|
|
APP_BLE_LP_CONNECTING,
|
|
APP_BLE_CONNECTED_SERVER,
|
|
APP_BLE_CONNECTED_CLIENT
|
|
} APP_BLE_ConnStatus_t;
|
|
|
|
bool APP_BLE_Init();
|
|
bool APP_BLE_Start();
|
|
|
|
APP_BLE_ConnStatus_t APP_BLE_Get_Server_Connection_Status();
|
|
|
|
void APP_BLE_Key_Button1_Action();
|
|
void APP_BLE_Key_Button2_Action();
|
|
void APP_BLE_Key_Button3_Action();
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|