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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#ifndef DISPLAY_USER__H
#define DISPLAY_USER__H
#include "TYW_stdint.h"
#include "stddef.h"
#include "Common_Interface.h"
#define UE_IGN_ON_OFF 255U
#define UE_IGN_ON 1U
#define UE_IGN_OFF 0U
#define UE_Disable 0U
#define UE_Enable 1U
#define DisplayAnimationTime 3500u
#define DisplayMenuTime 5000u / 10u
#define MAX_DriveInfoPage 6u
#define FUNC_ENABLE 1u
#define FUNC_DISABLE 0u
typedef struct
{
uint8_t u8KEY_UP;
uint8_t u8KEY_DOWN;
uint8_t u8KEY_CONFIRM;
uint8_t u8KEY_CANCEL;
uint8_t u8KEY_MENU;
} HMI_KEY_Struct_t;
typedef struct
{
uint32_t u32MENU_Timer; //已使用
uint32_t u32KEY_MENU;
} HMI_Timing_Struct_t;
typedef struct
{
HMI_KEY_Struct_t HMI_KEYInfo;
HMI_Timing_Struct_t HMI_TIMER;
uint16_t HMI_Type;
} UE_CtrlInfo_Struct_t;
typedef enum
{
Display_StartAnimation,
Display_Menu,
Display_Alarm,
Display_MAX,
} DisplayName;
extern UE_CtrlInfo_Struct_t UE_CtrlInfo;
void DispSch_TotalInit(void);
void DisplayServices(void);
void Display_AlarmService(void);
void Display_MenuService(void);
void Display_StartAnimationService(void);
void Display_StartAnimationEnter(void);
void Display_StartAnimationExit(void);
void GUI_DisplayServices(void);
void HMI_Set_KEY_CtrlRight(uint8_t u8KeyVal);
void HMI_Set_KEY_UP(uint8_t u8KeyVal);
void HMI_Set_KEY_DOWN(uint8_t u8KeyVal);
void HMI_Set_KEY_LEFT(uint8_t u8KeyVal);
void HMI_Set_KEY_RIGHT(uint8_t u8KeyVal);
void HMI_Set_KEY_CONFIRM(uint8_t u8KeyVal);
void HMI_Set_KEY_CANCEL(uint8_t u8KeyVal);
void HMI_Set_KEY_MENU(uint8_t u8KeyVal);
void HMI_Clear_KEY_UP(void);
void HMI_Clear_KEY_DOWN(void);
void HMI_Clear_KEY_LEFT(void);
void HMI_Clear_KEY_RIGHT(void);
void HMI_Clear_KEY_CONFIRM(void);
void HMI_Clear_KEY_CANCEL(void);
void HMI_Clear_KEY_MENU(void);
void HMI_Clear_KEY_CtrlRight(void);
#endif