20230731_XiaoFuZi_emb/ZheDaXiaoFuZiBoot/Src/Usr/Task/McuTaskBlueTooth.h
Rjh913828050 a8560d741e 类型:重构
内容:重新整理项目文件分类
人员:任家豪
2023-10-08 16:10:23 +08:00

41 lines
1.4 KiB
C

#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
#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);
#endif