ble.h 666 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #ifndef __BLE_H_
  2. #define __BLE_H_
  3. typedef enum{
  4. UNVAIL,
  5. BLE_BASE_CONNECT,
  6. BLE_AUD_CONNECT,
  7. }BLE_STATUE;
  8. typedef struct{
  9. //BLE_STATUE Ble_Statue;
  10. unsigned char BleRingInit:1; //硌遠ラ壺蹈桶
  11. //unsigned char BleIswork:1; //
  12. unsigned char Base_Conected:1;
  13. unsigned char Audio_Conected:1;
  14. }Sut_BLE;
  15. extern Sut_BLE Sut_ble;
  16. extern const char Ble_IO2AT[5];//植IO諷秶耀宒ピ遙善AT耀宒
  17. void gpioBleConfigOutput(void);
  18. void BLE_at_process(char *r_buffer,int read_size);
  19. void bleCb(void *param);
  20. void Ble_Match_IOCTR(bool ctr);
  21. void BT_Match_IOctr(bool ctr);
  22. void Ble_handler(unsigned int interval);
  23. void BLE_Open();
  24. void BLE_Close();
  25. #endif