DeviceMessage.h
1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/**
********************************************************************
* @file DeviceMessage.h
* DeviceMessage.h 的头文件
*
*********************************************************************
*/
/* Define to prevent recursive inclusion 避免重定义 -------------------------------------*/
#ifndef DEVICE_MESSAGE_H
#define DEVICE_MESSAGE_H
/* Includes ------------------------------------------------------------------*/
#include "JZsdk_Base/JZsdk_Code/JZsdk_Code.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Exported constants --------------------------------------------------------*/
/* 常亮定义*/
/* Exported types ------------------------------------------------------------*/
typedef enum DeviceMessageMode
{
DEVICE_MESSAGE_DEFAULT = 0x0000, //默认打印信息
DEVICE_MESSAGE_DEBUG = 0x0001, //调试模式下打印的信息
DEVICE_MESSAGE_ALL = 0x0002, //全内容打印,用于串口调试使用
}DeviceMessageMode;
typedef enum DeviceMessageLanguage
{
DEVICE_MESSAGE_CHINESE = 0x0000, //中文
DEVICE_MESSAGE_ENGLISH = 0x0001, //英文
}DeviceMessageLanguage;
/* Exported functions --------------------------------------------------------*/
T_JZsdkReturnCode DeviceMessage_GetMessage(unsigned char *str, int MaxReadLen);
T_JZsdkReturnCode DeviceMessage_Mode(DeviceMessageMode mode);
T_JZsdkReturnCode DeviceMessage_SetMessageLanguage(DeviceMessageLanguage value);
T_JZsdkReturnCode DeviceMessage_Init();
#ifdef __cplusplus
}
#endif
#endif