2023-10-08 08:10:23 +00:00
|
|
|
#ifndef _MCU_TASK_BLUETOOTH_H_
|
|
|
|
|
#define _MCU_TASK_BLUETOOTH_H_
|
|
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
|
|
#define PLAT_ACK_MESSAGE_ID 0x8000
|
|
|
|
|
#define PLAT_ASK_TERMINAL_DATA_MESSAGE_ID 0x800b
|
|
|
|
|
#define PLAT_ASK_TERMINAL_UPDATA_MESSAGE_ID 0x800d
|
|
|
|
|
#define PLAT_ASK_TERMINAL_RESTART_MESSAGE_ID 0x8011
|
|
|
|
|
#define PLAT_ASK_TERMINAL_SELF_DESTROYING_MESSAGE_ID 0x8012
|
|
|
|
|
#define PLAT_ASK_CHANGE_BEIDOU_SEND_MODE 0x8101
|
|
|
|
|
#define PLAT_ASK_CHANGE_WORK_MODE 0x8102
|
|
|
|
|
#define PLAT_ASK_ASK_FLASH_DATA 0x8103
|
|
|
|
|
#define PLAT_ASK_UPDATE_FILE_DATA 0x8104
|
2024-07-31 00:52:45 +00:00
|
|
|
#define PLAT_ASK_MODIFY_IP 0x8105
|
2023-10-08 08:10:23 +00:00
|
|
|
|
|
|
|
|
#define DEVICE_NOTICE_PLAT_BLUETOOTH_JOIN_LOWPOWER 0x0105
|
|
|
|
|
|
|
|
|
|
#define TASK_ACK_OK 0x00
|
|
|
|
|
#define TASK_ACK_NO_EXSIT 0x01
|
|
|
|
|
#define TASK_ACK_ERR 0x02
|
|
|
|
|
#define TASK_ACK_NO_SUP 0x03
|
|
|
|
|
|
|
|
|
|
int McuTaskBlueToothInit(void);
|
|
|
|
|
int McuTaskBlueTooth(void);
|
|
|
|
|
uint32_t TaskBlueToothSendMessage(uint16_t MessageId, uint16_t *Serial, uint8_t *SendBuf, uint32_t SendBufLen);
|
|
|
|
|
unsigned char TaskBlueToothGetAppMode(void);
|
|
|
|
|
unsigned char TaskBlueToothGetBluetoothMode(void);
|
|
|
|
|
/* 睡眠 */
|
|
|
|
|
void McuTaskBlueToothSleep(void);
|
|
|
|
|
/* 唤醒 */
|
|
|
|
|
void McuTaskBlueToothWakeUp(void);
|
|
|
|
|
/* 新增定时器 */
|
|
|
|
|
void TaskBlueToothNewTimer(void);
|
|
|
|
|
/* 删除一个定时器 */
|
|
|
|
|
void TaskBlueToothDelTimer(void);
|
|
|
|
|
/* 发送通知 */
|
|
|
|
|
void TaskBlueToothJoinLowPowerNoticePlat(void);
|
2024-07-31 00:52:45 +00:00
|
|
|
void TaskBlueToothRestart(void);
|
2023-10-08 08:10:23 +00:00
|
|
|
|
|
|
|
|
#endif
|