DisplaySch_user.h 1.58 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
17
#define DisplayMenuTime      5500u / 10u
hu's avatar
hu committed
18 19 20 21
#define MAX_DriveInfoPage    6u
#define FUNC_ENABLE          1u
#define FUNC_DISABLE         0u

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

24 25
#define DISPSPEEDNULLMAX 50

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

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

    Display_MAX,
} DisplayName;

extern UE_CtrlInfo_Struct_t UE_CtrlInfo;

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

void Display_StartAnimationEnter(void);
66
void Display_StartAnimationService(void);
hu's avatar
hu committed
67 68
void Display_StartAnimationExit(void);

69 70 71 72 73 74
void Display_MenuEnter(void);
void Display_MenuService(void);

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

75 76 77
void Display_NothingEnter(void);
void Display_NothingService(void);

hu's avatar
hu committed
78 79
void GUI_DisplayServices(void);

hu's avatar
hu committed
80
void Meter_Mode_conversion(void);
hu's avatar
hu committed
81
uint16_t Common_GetHMI_StartAnimationFrameCnt(void);
hu's avatar
hu committed
82 83

#endif