123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- #ifndef __BLE_H_
- #define __BLE_H_
- typedef enum{
- UNVAIL,
- BLE_BASE_CONNECT,
- BLE_AUD_CONNECT,
- }BLE_STATUE;
- typedef struct{
- //BLE_STATUE Ble_Statue;
- unsigned char BleRingInit:1; //指环清除列表
- //unsigned char BleIswork:1; //
- unsigned char Base_Conected:1;
- unsigned char Audio_Conected:1;
- }Sut_BLE;
- extern Sut_BLE Sut_ble;
- typedef enum
- {
- BLE_PTT_PRESS=0x01,
- BLE_PTT_FREE=0x02,
- BLE_CONNECT_SUC=0x03,
- BLE_CONNECT_FAIL=0x04,
- BLE_AUDCONNECT_SUC=0x05,
- BLE_BREAK_AUDCONNECT_SUC=0x06,
- BLE_SETSPK_SUC=0XE0,
- BLE_SETMIC_SUC=0XE1,
- BLE_CLEAR_LIST=0XA3,
- }BLE_Result;
- extern const char BLE_BASE_01[4];
- extern const char BLE_BASE_02[4];
- extern const char Ble_IO2AT[5];//从IO控制模式切换到AT模式
- extern const char Ble_CLEAR_LIST[5];
- void gpioBleConfigOutput(void);
- void BLE_at_process(char *r_buffer,int read_size);
- void bleCb(void *param);
- void Ble_Match_IOCTR(bool ctr);
- void BT_Match_IOctr(bool ctr);
- void Ble_handler(unsigned int interval);
- void BLE_Open();
- void BLE_Close();
- void start_ringClearList();
- void Send_BLE_EVEN();
- #endif
|