app_ble.h 498 B

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