app_ble.h 541 B

12345678910111213141516171819202122232425262728293031
  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. bool APP_BLE_Start();
  18. APP_BLE_ConnStatus_t APP_BLE_Get_Server_Connection_Status();
  19. void APP_BLE_Key_Button1_Action();
  20. void APP_BLE_Key_Button2_Action();
  21. void APP_BLE_Key_Button3_Action();
  22. #ifdef __cplusplus
  23. }
  24. #endif