DisplaySch_user.h 1.99 KB
Newer Older
hu's avatar
hu committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#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


hu's avatar
hu committed
16
#define DisplayAnimationTime 4500u
hu's avatar
hu committed
17 18 19 20 21
#define DisplayMenuTime      5000u / 10u
#define MAX_DriveInfoPage    6u
#define FUNC_ENABLE          1u
#define FUNC_DISABLE         0u

hu's avatar
hu committed
22 23
#define FRAMECNTFLAG         64u

hu's avatar
hu committed
24 25 26 27 28 29 30
typedef struct
{
    uint8_t u8KEY_UP;
    uint8_t u8KEY_DOWN;
    uint8_t u8KEY_CONFIRM;
    uint8_t u8KEY_CANCEL;
    uint8_t u8KEY_MENU;
31
    uint8_t u8KEY_ODOTRIP;
hu's avatar
hu committed
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52

} 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,
53
    Display_Nothing,
hu's avatar
hu committed
54 55 56 57 58 59 60 61 62 63

    Display_MAX,
} DisplayName;

extern UE_CtrlInfo_Struct_t UE_CtrlInfo;

void DispSch_TotalInit(void);
void DisplayServices(void);

void Display_StartAnimationEnter(void);
64
void Display_StartAnimationService(void);
hu's avatar
hu committed
65 66
void Display_StartAnimationExit(void);

67 68 69 70 71 72
void Display_MenuEnter(void);
void Display_MenuService(void);

void Display_AlarmEnter(void);
void Display_AlarmService(void);

73 74 75
void Display_NothingEnter(void);
void Display_NothingService(void);

hu's avatar
hu committed
76 77 78 79 80 81 82
void GUI_DisplayServices(void);

void HMI_Set_KEY_UP(uint8_t u8KeyVal);
void HMI_Set_KEY_DOWN(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);
83
void HMI_Set_KEY_ODOTRIP(uint8_t u8KeyVal);
hu's avatar
hu committed
84 85 86 87 88 89

void HMI_Clear_KEY_UP(void);
void HMI_Clear_KEY_DOWN(void);
void HMI_Clear_KEY_CONFIRM(void);
void HMI_Clear_KEY_CANCEL(void);
void HMI_Clear_KEY_MENU(void);
90
void HMI_Clear_KEY_ODOTRIP(void);
hu's avatar
hu committed
91
void Meter_Mode_conversion(void);
hu's avatar
hu committed
92

hu's avatar
hu committed
93
uint16_t Common_GetHMI_StartAnimationFrameCnt(void);
hu's avatar
hu committed
94 95

#endif