DeviceMessage.h 1.5 KB
/**
 ********************************************************************
 * @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