sentry_chassis_hzz/modules/referee/referee_UI.h

45 lines
915 B
C
Raw Normal View History

2023-01-09 16:17:03 +08:00
#ifndef REFEREE_UI_H
#define REFEREE_UI_H
#include "stdarg.h"
#include "usart.h"
#include "stdint.h"
#include "referee_def.h"
#include "referee.h"
2023-01-09 16:17:03 +08:00
#pragma pack(1) //按1字节对齐
2023-01-09 16:17:03 +08:00
/* 此处的定义只与UI绘制有关 */
2023-01-09 16:17:03 +08:00
typedef struct
{
xFrameHeader FrameHeader;
uint16_t CmdID;
ext_student_interactive_header_data_t datahead;
2023-01-09 16:17:03 +08:00
uint8_t Delete_Operate; //删除操作
uint8_t Layer;
uint16_t frametail;
} UI_delete_t;
2023-01-09 16:17:03 +08:00
typedef struct
{
xFrameHeader FrameHeader;
uint16_t CmdID;
ext_student_interactive_header_data_t datahead;
uint16_t frametail;
} UI_GraphReFresh_t;
2023-01-09 16:17:03 +08:00
typedef struct
{
xFrameHeader FrameHeader;
uint16_t CmdID;
ext_student_interactive_header_data_t datahead;
String_Data_t String_Data;
uint16_t frametail;
} UI_CharReFresh_t; //打印字符串数据
2023-01-09 16:17:03 +08:00
#pragma pack()
void Interactive_init(referee_info_t *_referee_info);
2023-01-09 16:17:03 +08:00
#endif