app_ble.h 519 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #ifdef __cplusplus
  3. extern "C" {
  4. #endif
  5. #include <stdbool.h>
  6. #include "hci_tl.h"
  7. typedef enum {
  8. APP_BLE_IDLE,
  9. APP_BLE_FAST_ADV,
  10. APP_BLE_LP_ADV,
  11. APP_BLE_SCAN,
  12. APP_BLE_LP_CONNECTING,
  13. APP_BLE_CONNECTED_SERVER,
  14. APP_BLE_CONNECTED_CLIENT
  15. } APP_BLE_ConnStatus_t;
  16. bool APP_BLE_Init();
  17. APP_BLE_ConnStatus_t APP_BLE_Get_Server_Connection_Status();
  18. void APP_BLE_Key_Button1_Action();
  19. void APP_BLE_Key_Button2_Action();
  20. void APP_BLE_Key_Button3_Action();
  21. #ifdef __cplusplus
  22. }
  23. #endif