Menu_user.c 49.9 KB
Newer Older
hu's avatar
hu committed
1

hu's avatar
hu committed
2
#define   GLOBALS_MEU_PROCESS
hu's avatar
hu committed
3 4 5 6 7 8
#include "Menu.h"
#include "GUI.h"
#include "Services_Mileage.h"
#include "Data_FuelConsump.h"
#include "CAN_Communication_Matrix.h"
#include "Common_Interface.h"
hu's avatar
hu committed
9
#include "RTE_TIME.h"
hu's avatar
hu committed
10

hu's avatar
hu committed
11 12 13 14 15 16 17
uint8_t     bMenuSwFlag;
uint8_t     g_ClearWin1;
uint8_t     bNextMenuIDX;
uint8_t     bCurMenuIDX;
uint8_t     bMainMenuIDX;
uint8_t     bOldMenuIDX;

18 19
_MenuFlag    MenuFlag   ;

hu's avatar
hu committed
20 21 22 23
const _MenuOptTab   MenuOptTab[] =
{
    /*---------ENTER---------------------UP-----------------------DOWN----------------------EXIT------------------ENTER------------------DO-----------------EXIT------------*/
    /*主循环界面*/
hu's avatar
hu committed
24 25 26 27 28 29 30
    /*00*/{ _MN_DSP_LEVEL2MENU_2,     _MN_DSP_LEVEL1MENU_6,     _MN_DSP_LEVEL1MENU_2,     _MN_IDX_NULL,             Level1Menu_1Enter,       Level1Menu_1Do,       Level1Menu_1Exit},
    /*01*/{ _MN_DSP_LEVEL2MENU_2,     _MN_DSP_LEVEL1MENU_1,     _MN_DSP_LEVEL1MENU_3,     _MN_IDX_NULL,             Level1Menu_2Enter,       Level1Menu_2Do,       Level1Menu_2Exit},
    /*02*/{ _MN_DSP_LEVEL2MENU_2,     _MN_DSP_LEVEL1MENU_2,     _MN_DSP_LEVEL1MENU_4,     _MN_IDX_NULL,             Level1Menu_3Enter,       Level1Menu_3Do,       Level1Menu_3Exit},
    /*03*/{ _MN_DSP_LEVEL2MENU_2,     _MN_DSP_LEVEL1MENU_3,     _MN_DSP_LEVEL1MENU_5,     _MN_IDX_NULL,             Level1Menu_4Enter,       Level1Menu_4Do,       Level1Menu_4Exit},
    /*04*/{ _MN_DSP_LEVEL2MENU_2,     _MN_DSP_LEVEL1MENU_4,     _MN_DSP_LEVEL1MENU_6,     _MN_IDX_NULL,             Level1Menu_5Enter,       Level1Menu_5Do,       Level1Menu_5Exit},
    /*05*/{ _MN_DSP_LEVEL2MENU_2,     _MN_DSP_LEVEL1MENU_5,     _MN_DSP_LEVEL1MENU_1,     _MN_IDX_NULL,             Level1Menu_6Enter,       Level1Menu_6Do,       Level1Menu_6Exit},
    /*06*/{ _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_IDX_NULL,             LevelPopup_Enter,        LevelPopup_Do,        LevelPopup_Exit },
hu's avatar
hu committed
31

hu's avatar
hu committed
32
    /*一级菜单 */
hu's avatar
hu committed
33 34 35 36 37 38
    /*07*/{ _MN_DSP_LEVEL2_1_MENU_1,  _MN_IDX_NULL,             _MN_DSP_LEVEL2MENU_2,     _MN_IDX_NULL,             Level2Menu_1Enter,       Level2Menu_1Do,       Level2Menu_1Exit},
    /*08*/{ _MN_DSP_LEVEL2_2_MENU_1,  _MN_IDX_NULL,             _MN_DSP_LEVEL2MENU_3,     _MN_IDX_NULL,             Level2Menu_2Enter,       Level2Menu_2Do,       Level2Menu_2Exit},
    /*09*/{ _MN_DSP_LEVEL2_3_MENU_1,  _MN_DSP_LEVEL2MENU_2,     _MN_DSP_LEVEL2MENU_4,     _MN_IDX_NULL,             Level2Menu_3Enter,       Level2Menu_3Do,       Level2Menu_3Exit},
    /*10*/{ _MN_DSP_LEVEL2_4_MENU_1,  _MN_DSP_LEVEL2MENU_3,     _MN_DSP_LEVEL2MENU_5,     _MN_IDX_NULL,             Level2Menu_4Enter,       Level2Menu_4Do,       Level2Menu_4Exit},
    /*11*/{ _MN_DSP_LEVEL2_5_MENU_1,  _MN_DSP_LEVEL2MENU_4,     _MN_DSP_LEVEL2MENU_6,     _MN_IDX_NULL,             Level2Menu_5Enter,       Level2Menu_5Do,       Level2Menu_5Exit},
    /*12*/{ _MN_DSP_LEVEL2_6_MENU_1,  _MN_DSP_LEVEL2MENU_5,     _MN_IDX_NULL,             _MN_IDX_NULL,             Level2Menu_6Enter,       Level2Menu_6Do,       Level2Menu_6Exit},
hu's avatar
hu committed
39

hu's avatar
hu committed
40
    /*二级菜单 */
hu's avatar
hu committed
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
    /*13*/{ _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL2MENU_1,     Level2_1Menu_1Enter,     Level2_1Menu_1Do,     Level2_1Menu_1Exit},

    /*14*/{ _MN_DSP_LEVEL3_2_MENU_1,  _MN_IDX_NULL,             _MN_DSP_LEVEL2_2_MENU_2,  _MN_DSP_LEVEL2MENU_2,     Level2_2Menu_1Enter,     Level2_2Menu_1Do,     Level2_2Menu_1Exit},
    /*15*/{ _MN_DSP_LEVEL3_2_MENU_2,  _MN_DSP_LEVEL2_2_MENU_1,  _MN_DSP_LEVEL2_2_MENU_3,  _MN_DSP_LEVEL2MENU_2,     Level2_2Menu_2Enter,     Level2_2Menu_2Do,     Level2_2Menu_2Exit},
    /*16*/{ _MN_DSP_LEVEL3_2_MENU_3,  _MN_DSP_LEVEL2_2_MENU_2,  _MN_DSP_LEVEL2_2_MENU_4,  _MN_DSP_LEVEL2MENU_2,     Level2_2Menu_3Enter,     Level2_2Menu_3Do,     Level2_2Menu_3Exit},
    /*17*/{ _MN_DSP_LEVEL3_2_MENU_4,  _MN_DSP_LEVEL2_2_MENU_3,  _MN_DSP_LEVEL2_2_MENU_7,  _MN_DSP_LEVEL2MENU_2,     Level2_2Menu_4Enter,     Level2_2Menu_4Do,     Level2_2Menu_4Exit},
    /*18*/{ _MN_DSP_LEVEL3_2_MENU_7,  _MN_DSP_LEVEL2_2_MENU_4,  _MN_DSP_LEVEL2_2_MENU_8,  _MN_DSP_LEVEL2MENU_2,     Level2_2Menu_7Enter,     Level2_2Menu_7Do,     Level2_2Menu_7Exit},
    /*19*/{ _MN_DSP_LEVEL3_2_MENU_8,  _MN_DSP_LEVEL2_2_MENU_7,  _MN_IDX_NULL,             _MN_DSP_LEVEL2MENU_2,     Level2_2Menu_8Enter,     Level2_2Menu_8Do,     Level2_2Menu_8Exit},

    /*20*/{ _MN_DSP_LEVEL3_3_MENU_1,  _MN_IDX_NULL,             _MN_DSP_LEVEL2_3_MENU_2,  _MN_DSP_LEVEL2MENU_3,     Level2_3Menu_1Enter,     Level2_3Menu_1Do,     Level2_3Menu_1Exit},
    /*21*/{ _MN_DSP_LEVEL3_3_MENU_2,  _MN_DSP_LEVEL2_3_MENU_1,  _MN_DSP_LEVEL2_3_MENU_3,  _MN_DSP_LEVEL2MENU_3,     Level2_3Menu_2Enter,     Level2_3Menu_2Do,     Level2_3Menu_2Exit},
    /*22*/{ _MN_DSP_LEVEL3_3_MENU_3,  _MN_DSP_LEVEL2_3_MENU_2,  _MN_DSP_LEVEL2_3_MENU_4,  _MN_DSP_LEVEL2MENU_3,     Level2_3Menu_3Enter,     Level2_3Menu_3Do,     Level2_3Menu_3Exit},
    /*23*/{ _MN_DSP_LEVEL3_3_MENU_4,  _MN_DSP_LEVEL2_3_MENU_3,  _MN_DSP_LEVEL2_3_MENU_6,  _MN_DSP_LEVEL2MENU_3,     Level2_3Menu_4Enter,     Level2_3Menu_4Do,     Level2_3Menu_4Exit},
    /*24*/{ _MN_DSP_LEVEL3_3_MENU_6,  _MN_DSP_LEVEL2_3_MENU_4,  _MN_DSP_LEVEL2_3_MENU_7,  _MN_DSP_LEVEL2MENU_3,     Level2_3Menu_6Enter,     Level2_3Menu_6Do,     Level2_3Menu_6Exit},
    /*25*/{ _MN_DSP_LEVEL3_3_MENU_7,  _MN_DSP_LEVEL2_3_MENU_6,  _MN_IDX_NULL,             _MN_DSP_LEVEL2MENU_3,     Level2_3Menu_7Enter,     Level2_3Menu_7Do,     Level2_3Menu_7Exit},

    /*26*/{ _MN_DSP_LEVEL3_4_MENU_11, _MN_IDX_NULL,             _MN_DSP_LEVEL2_4_MENU_2,  _MN_DSP_LEVEL2MENU_4,     Level2_4Menu_1Enter,     Level2_4Menu_1Do,     Level2_4Menu_1Exit},
58
    /*27*/{ _MN_DSP_LEVEL3_4_MENU_21, _MN_DSP_LEVEL2_4_MENU_1,  _MN_DSP_LEVEL2_4_MENU_7,  _MN_DSP_LEVEL2MENU_4,     Level2_4Menu_2Enter,     Level2_4Menu_2Do,     Level2_4Menu_2Exit},
59 60 61 62 63
    /*28*/{ _MN_DSP_LEVEL3_7_MENU_1,  _MN_DSP_LEVEL2_4_MENU_2,  _MN_DSP_LEVEL2_4_MENU_3,  _MN_DSP_LEVEL2MENU_4,     Level2_4Menu_7Enter,     Level2_4Menu_7Do,     Level2_4Menu_7Exit},
    /*29*/{ _MN_DSP_LEVEL3_4_MENU_3,  _MN_DSP_LEVEL2_4_MENU_7,  _MN_DSP_LEVEL2_4_MENU_4,  _MN_DSP_LEVEL2MENU_4,     Level2_4Menu_3Enter,     Level2_4Menu_3Do,     Level2_4Menu_3Exit},
    /*30*/{ _MN_DSP_LEVEL3_4_MENU_41, _MN_DSP_LEVEL2_4_MENU_3,  _MN_DSP_LEVEL2_4_MENU_5,  _MN_DSP_LEVEL2MENU_4,     Level2_4Menu_4Enter,     Level2_4Menu_4Do,     Level2_4Menu_4Exit},
    /*31*/{ _MN_DSP_LEVEL3_4_MENU_5,  _MN_DSP_LEVEL2_4_MENU_4,  _MN_DSP_LEVEL2_4_MENU_6,  _MN_DSP_LEVEL2MENU_4,     Level2_4Menu_5Enter,     Level2_4Menu_5Do,     Level2_4Menu_5Exit},
    /*32*/{ _MN_IDX_NULL           ,  _MN_DSP_LEVEL2_4_MENU_5,  _MN_IDX_NULL,             _MN_DSP_LEVEL2MENU_4,     Level2_4Menu_6Enter,     Level2_4Menu_6Do,     Level2_4Menu_6Exit},
hu's avatar
hu committed
64

65 66 67 68
    /*33*/{ _MN_DSP_LEVEL3_5_MENU_1,  _MN_IDX_NULL,             _MN_DSP_LEVEL2_5_MENU_2,  _MN_DSP_LEVEL2MENU_5,     Level2_5Menu_1Enter,     Level2_5Menu_1Do,     Level2_5Menu_1Exit},
    /*34*/{ _MN_DSP_LEVEL3_5_MENU_2,  _MN_DSP_LEVEL2_5_MENU_1,  _MN_DSP_LEVEL2_5_MENU_3,  _MN_DSP_LEVEL2MENU_5,     Level2_5Menu_2Enter,     Level2_5Menu_2Do,     Level2_5Menu_2Exit},
    /*35*/{ _MN_DSP_LEVEL3_5_MENU_3,  _MN_DSP_LEVEL2_5_MENU_2,  _MN_DSP_LEVEL2_5_MENU_4,  _MN_DSP_LEVEL2MENU_5,     Level2_5Menu_3Enter,     Level2_5Menu_3Do,     Level2_5Menu_3Exit},
    /*36*/{ _MN_DSP_LEVEL3_5_MENU_4,  _MN_DSP_LEVEL2_5_MENU_3,  _MN_IDX_NULL,             _MN_DSP_LEVEL2MENU_5,     Level2_5Menu_4Enter,     Level2_5Menu_4Do,     Level2_5Menu_4Exit},
hu's avatar
hu committed
69

70 71
    /*37*/{ _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL2_6_MENU_2,  _MN_DSP_LEVEL2MENU_6,     Level2_6Menu_1Enter,     Level2_6Menu_1Do,     Level2_6Menu_1Exit},
    /*38*/{ _MN_IDX_NULL,             _MN_DSP_LEVEL2_6_MENU_1,  _MN_IDX_NULL,             _MN_DSP_LEVEL2MENU_6,     Level2_6Menu_2Enter,     Level2_6Menu_2Do,     Level2_6Menu_2Exit},
hu's avatar
hu committed
72 73

    /*三级菜单*/
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
    /*39*/{_MN_DSP_ENTER_MENU,        _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL2_2_MENU_1,  Level3_2Menu_1Enter,     Level3_2Menu_1Do,     Level3_2Menu_1Exit},
    /*40*/{_MN_DSP_ENTER_MENU,        _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL2_2_MENU_2,  Level3_2Menu_2Enter,     Level3_2Menu_2Do,     Level3_2Menu_2Exit},
    /*41*/{_MN_DSP_ENTER_MENU,        _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL2_2_MENU_3,  Level3_2Menu_3Enter,     Level3_2Menu_3Do,     Level3_2Menu_3Exit},
    /*42*/{_MN_DSP_ENTER_MENU,        _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL2_2_MENU_4,  Level3_2Menu_4Enter,     Level3_2Menu_4Do,     Level3_2Menu_4Exit},
    /*43*/{_MN_DSP_ENTER_MENU,        _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL2_2_MENU_7,  Level3_2Menu_7Enter,     Level3_2Menu_7Do,     Level3_2Menu_7Exit},
    /*44*/{_MN_DSP_ENTER_MENU,        _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL2_2_MENU_8,  Level3_2Menu_8Enter,     Level3_2Menu_8Do,     Level3_2Menu_8Exit},

    /*45*/{ _MN_DSP_LEVEL2_3_MENU_1,  _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL2_3_MENU_1,  Level3_3Menu_1Enter,     Level3_3Menu_1Do,     Level3_3Menu_1Exit},
    /*46*/{ _MN_DSP_LEVEL2_3_MENU_2,  _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL2_3_MENU_2,  Level3_3Menu_2Enter,     Level3_3Menu_2Do,     Level3_3Menu_2Exit},
    /*47*/{ _MN_DSP_LEVEL2_3_MENU_3,  _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL2_3_MENU_3,  Level3_3Menu_3Enter,     Level3_3Menu_3Do,     Level3_3Menu_3Exit},
    /*48*/{ _MN_DSP_LEVEL2_3_MENU_4,  _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL2_3_MENU_4,  Level3_3Menu_4Enter,     Level3_3Menu_4Do,     Level3_3Menu_4Exit},
    /*49*/{ _MN_DSP_LEVEL2_3_MENU_6,  _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL2_3_MENU_6,  Level3_3Menu_6Enter,     Level3_3Menu_6Do,     Level3_3Menu_6Exit},
    /*50*/{ _MN_DSP_LEVEL2_3_MENU_7,  _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL2_3_MENU_7,  Level3_3Menu_7Enter,     Level3_3Menu_7Do,     Level3_3Menu_7Exit},

    /*51*/{ _MN_DSP_LEVEL3_4_MENU_12, _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL2_4_MENU_1,  Level3_4Menu_1Enter_1,   Level3_4Menu_1Do_1,   Level3_4Menu_1Exit_1},
    /*52*/{ _MN_DSP_LEVEL3_4_MENU_13, _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL2_4_MENU_1,  Level3_4Menu_1Enter_2,   Level3_4Menu_1Do_2,   Level3_4Menu_1Exit_2},
    /*53*/{ _MN_DSP_LEVEL2_4_MENU_1,  _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL2_4_MENU_1,  Level3_4Menu_1Enter_3,   Level3_4Menu_1Do_3,   Level3_4Menu_1Exit_3},
    /*54*/{ _MN_DSP_LEVEL3_4_MENU_22, _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL2_4_MENU_2,  Level3_4Menu_2Enter_1,   Level3_4Menu_2Do_1,   Level3_4Menu_2Exit_1},
    /*55*/{ _MN_DSP_LEVEL2_4_MENU_2,  _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL2_4_MENU_2,  Level3_4Menu_2Enter_2,   Level3_4Menu_2Do_2,   Level3_4Menu_2Exit_2},
    /*56*/{ _MN_DSP_LEVEL2_4_MENU_3,  _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL2_4_MENU_3,  Level3_4Menu_3Enter,     Level3_4Menu_3Do,     Level3_4Menu_3Exit},
    /*57*/{ _MN_DSP_LEVEL4_4_MENU_1,  _MN_IDX_NULL,             _MN_DSP_LEVEL3_4_MENU_42, _MN_DSP_LEVEL2_4_MENU_4,  Level3_4Menu_4Enter_1,   Level3_4Menu_4Do_1,   Level3_4Menu_4Exit_1},
    /*58*/{ _MN_DSP_LEVEL4_4_MENU_2,  _MN_DSP_LEVEL3_4_MENU_41, _MN_DSP_LEVEL3_4_MENU_43, _MN_DSP_LEVEL2_4_MENU_4,  Level3_4Menu_4Enter_2,   Level3_4Menu_4Do_2,   Level3_4Menu_4Exit_2},
    /*59*/{ _MN_DSP_LEVEL4_4_MENU_3,  _MN_DSP_LEVEL3_4_MENU_42, _MN_DSP_LEVEL3_4_MENU_44, _MN_DSP_LEVEL2_4_MENU_4,  Level3_4Menu_4Enter_3,   Level3_4Menu_4Do_3,   Level3_4Menu_4Exit_3},
    /*60*/{ _MN_DSP_LEVEL4_4_MENU_4,  _MN_DSP_LEVEL3_4_MENU_43, _MN_DSP_LEVEL3_4_MENU_45, _MN_DSP_LEVEL2_4_MENU_4,  Level3_4Menu_4Enter_4,   Level3_4Menu_4Do_4,   Level3_4Menu_4Exit_4},
    /*61*/{ _MN_DSP_LEVEL4_4_MENU_5,  _MN_DSP_LEVEL3_4_MENU_44, _MN_DSP_LEVEL3_4_MENU_46, _MN_DSP_LEVEL2_4_MENU_4,  Level3_4Menu_4Enter_5,   Level3_4Menu_4Do_5,   Level3_4Menu_4Exit_5},
    /*62*/{ _MN_DSP_LEVEL4_4_MENU_6,  _MN_DSP_LEVEL3_4_MENU_45, _MN_DSP_LEVEL3_4_MENU_47, _MN_DSP_LEVEL2_4_MENU_4,  Level3_4Menu_4Enter_6,   Level3_4Menu_4Do_6,   Level3_4Menu_4Exit_6},
    /*63*/{ _MN_DSP_LEVEL4_4_MENU_7,  _MN_DSP_LEVEL3_4_MENU_46, _MN_IDX_NULL,             _MN_DSP_LEVEL2_4_MENU_4,  Level3_4Menu_4Enter_7,   Level3_4Menu_4Do_7,   Level3_4Menu_4Exit_7},

    /*64*/{ _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL2_4_MENU_5,  Level3_4Menu_5Enter,     Level3_4Menu_5Do,     Level3_4Menu_5Exit},
    /*65*/{ _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL2_4_MENU_7,  Level3_4Menu_7Enter,     Level3_4Menu_7Do,     Level3_4Menu_7Exit},
hu's avatar
hu committed
104

hu's avatar
hu committed
105
    /*四级菜单*/
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
    /*66*/{ _MN_DSP_LEVEL3_4_MENU_41, _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL3_4_MENU_41, Level4_4Menu_1Enter,     Level4_4Menu_1Do,     Level4_4Menu_1Exit},
    /*67*/{ _MN_DSP_LEVEL3_4_MENU_42, _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL3_4_MENU_42, Level4_4Menu_2Enter,     Level4_4Menu_2Do,     Level4_4Menu_2Exit},
    /*68*/{ _MN_DSP_LEVEL3_4_MENU_43, _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL3_4_MENU_43, Level4_4Menu_3Enter,     Level4_4Menu_3Do,     Level4_4Menu_3Exit},
    /*69*/{ _MN_DSP_LEVEL3_4_MENU_44, _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL3_4_MENU_44, Level4_4Menu_4Enter,     Level4_4Menu_4Do,     Level4_4Menu_4Exit},
    /*70*/{ _MN_DSP_LEVEL3_4_MENU_45, _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL3_4_MENU_45, Level4_4Menu_5Enter,     Level4_4Menu_5Do,     Level4_4Menu_5Exit},
    /*71*/{ _MN_DSP_LEVEL3_4_MENU_46, _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL3_4_MENU_46, Level4_4Menu_6Enter,     Level4_4Menu_6Do,     Level4_4Menu_6Exit},
    /*72*/{ _MN_DSP_LEVEL3_4_MENU_47, _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL3_4_MENU_47, Level4_4Menu_7Enter,     Level4_4Menu_7Do,     Level4_4Menu_7Exit},

    /*73*/{ _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_IDX_NULL,             Level_Enter_Menu_Enter,  Level_Enter_Menu_Do,  Level_Enter_Menu_Exit},
    /*74*/{ _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_IDX_NULL,             Level_Return_Menu_Enter, Level_Return_Menu_Do, Level_Return_Menu_Exit},

    /*75*/{ _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL2_5_MENU_1,  Level3_5Menu_1Enter,     Level3_5Menu_1Do,     Level3_5Menu_1Exit},
    /*76*/{ _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL2_5_MENU_2,  Level3_5Menu_2Enter,     Level3_5Menu_2Do,     Level3_5Menu_2Exit},
    /*77*/{ _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL2_5_MENU_3,  Level3_5Menu_3Enter,     Level3_5Menu_3Do,     Level3_5Menu_3Exit},
    /*78*/{ _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL2_5_MENU_4,  Level3_5Menu_4Enter,     Level3_5Menu_4Do,     Level3_5Menu_4Exit},

    /*工厂模式*/
    /*79*/{ _FAC_DSP_LEVEL1_1MENU_1,  _MN_IDX_NULL,             _FAC_DSP_LEVEL1MENU_2,    _MN_IDX_NULL,             Level3_5Menu_4Enter,     Level3_5Menu_4Do,     Level3_5Menu_4Exit},
    /*80*/{ _FAC_DSP_LEVEL1MENU_2,    _FAC_DSP_LEVEL1MENU_1,    _FAC_DSP_LEVEL1MENU_3,    _MN_IDX_NULL,             Level3_5Menu_4Enter,     Level3_5Menu_4Do,     Level3_5Menu_4Exit},
    /*81*/{ _FAC_DSP_LEVEL1_3MENU_1,  _FAC_DSP_LEVEL1MENU_2,    _FAC_DSP_LEVEL1MENU_4,    _MN_IDX_NULL,             Level3_5Menu_4Enter,     Level3_5Menu_4Do,     Level3_5Menu_4Exit},
    /*82*/{ _MN_IDX_NULL,             _FAC_DSP_LEVEL1MENU_3,    _FAC_DSP_LEVEL1MENU_5,    _MN_IDX_NULL,             Level3_5Menu_4Enter,     Level3_5Menu_4Do,     Level3_5Menu_4Exit},
    /*83*/{ _MN_IDX_NULL,             _FAC_DSP_LEVEL1MENU_4,    _FAC_DSP_LEVEL1MENU_6,    _MN_IDX_NULL,             Level3_5Menu_4Enter,     Level3_5Menu_4Do,     Level3_5Menu_4Exit},
    /*84*/{ _MN_IDX_NULL,             _FAC_DSP_LEVEL1MENU_5,    _MN_IDX_NULL,             _MN_IDX_NULL,             Level3_5Menu_4Enter,     Level3_5Menu_4Do,     Level3_5Menu_4Exit},

    /*85*/{ _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_IDX_NULL,             _FAC_DSP_LEVEL1MENU_1,    Level3_5Menu_4Enter,     Level3_5Menu_4Do,     Level3_5Menu_4Exit},
    /*86*/{ _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_IDX_NULL,             _FAC_DSP_LEVEL1MENU_1,    Level3_5Menu_4Enter,     Level3_5Menu_4Do,     Level3_5Menu_4Exit},
    /*87*/{ _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_IDX_NULL,             _FAC_DSP_LEVEL1MENU_1,    Level3_5Menu_4Enter,     Level3_5Menu_4Do,     Level3_5Menu_4Exit},
    /*88*/{ _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_IDX_NULL,             _FAC_DSP_LEVEL1MENU_1,    Level3_5Menu_4Enter,     Level3_5Menu_4Do,     Level3_5Menu_4Exit},

    /*89*/{ _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_IDX_NULL,             _FAC_DSP_LEVEL1MENU_2,    Level3_5Menu_4Enter,     Level3_5Menu_4Do,     Level3_5Menu_4Exit},
    /*90*/{ _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_IDX_NULL,             _FAC_DSP_LEVEL1MENU_2,    Level3_5Menu_4Enter,     Level3_5Menu_4Do,     Level3_5Menu_4Exit},

    /*91*/{ _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_IDX_NULL,             _FAC_DSP_LEVEL1MENU_3,    Level3_5Menu_4Enter,     Level3_5Menu_4Do,     Level3_5Menu_4Exit},
    /*92*/{ _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_IDX_NULL,             _FAC_DSP_LEVEL1MENU_3,    Level3_5Menu_4Enter,     Level3_5Menu_4Do,     Level3_5Menu_4Exit},
hu's avatar
hu committed
140 141

};
hu's avatar
hu committed
142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160
void NextMenu(_MENU_IDX idx)
{
    if ((idx) != _MN_IDX_NULL)
    {
        bNextMenuIDX = (idx);
    }
    else
    {
    }
    bOldMenuIDX = 0xFF;
}
void MenuInit(void)
{
    bCurMenuIDX = 0;
    bNextMenuIDX = 0;
    bMenuSwFlag = 1;

    if (bCurMenuIDX >= _MN_DSP_LEVEL2MENU_1)
    {
hu's avatar
hu committed
161
        bCurMenuIDX = MenuFlag.Menu_Flag; /*记录上次位置*/
hu's avatar
hu committed
162 163 164 165 166 167
        bNextMenuIDX = bCurMenuIDX;
    }
    else
    {
        ;/*do nothing*/
    }
168 169 170

    /*数据初始化*/
    MenuFlag.Key_Menu_Popup_time = 0u;
hu's avatar
hu committed
171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216
}
void MenuManage(void)
{
    if (bMenuSwFlag)
    {
        if (MenuOptTab[bCurMenuIDX].Enter)
        {
            MenuOptTab[bCurMenuIDX].Enter();
        }
        else
        {
            ;/*do nothing*/
        }
    }
    else
    {
        ;/*do nothing*/
    }

    if (MenuOptTab[bCurMenuIDX].Do)
    {
        MenuOptTab[bCurMenuIDX].Do();
    }
    else
    {
        ;/*do nothing*/
    }

    bMenuSwFlag = (bCurMenuIDX != bNextMenuIDX) ? 1 : 0;
    if (bMenuSwFlag)
    {
        if (MenuOptTab[bCurMenuIDX].Exit && MenuOptTab[bCurMenuIDX].VK_IDX_EXIT)
        {
            MenuOptTab[bCurMenuIDX].Exit();
        }
        else
        {
            ;/*do nothing*/
        }
    }

    bCurMenuIDX = bNextMenuIDX;
}

/*主界面1   平均油耗,平均车速*/
void Level1Menu_1Enter(void)
hu's avatar
hu committed
217
{}
hu's avatar
hu committed
218 219
void Level1Menu_1Do(void)
{
hu's avatar
hu committed
220
    GUI_OftenShow_Display();
221
    GUI_Dynamic_DIsplay();
hu's avatar
hu committed
222
    GUI_AVG_FuelSpeed_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
223 224 225 226 227 228
}
void Level1Menu_1Exit(void)
{}

/*主界面2 电池显示*/
void Level1Menu_2Enter(void)
hu's avatar
hu committed
229
{}
hu's avatar
hu committed
230 231
void Level1Menu_2Do(void)
{
232 233 234
    GUI_OftenShow_Display();
    GUI_Dynamic_DIsplay();
    GUI_Battery_Display_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
235 236 237
}
void Level1Menu_2Exit(void)
{}
hu's avatar
hu committed
238

hu's avatar
hu committed
239 240
/*主界面3 DPD*/
void Level1Menu_3Enter(void)
hu's avatar
hu committed
241
{}
hu's avatar
hu committed
242 243
void Level1Menu_3Do(void)
{
244 245 246
    GUI_OftenShow_Display();
    GUI_Dynamic_DIsplay();
    GUI_DPD_Display_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
247 248 249 250 251 252
}
void Level1Menu_3Exit(void)
{}

/*主界面4 油温时间*/
void Level1Menu_4Enter(void)
hu's avatar
hu committed
253
{}
hu's avatar
hu committed
254 255
void Level1Menu_4Do(void)
{
256 257 258
    GUI_OftenShow_Display();
    GUI_Dynamic_DIsplay();
    GUI_Time_OilTemp_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
259 260 261 262 263 264
}
void Level1Menu_4Exit(void)
{}

/*主界面5 万年历*/
void Level1Menu_5Enter(void)
hu's avatar
hu committed
265
{}
hu's avatar
hu committed
266 267
void Level1Menu_5Do(void)
{
268 269 270
    GUI_OftenShow_Display();
    GUI_Dynamic_DIsplay();
    GUI_Year_Month_Data_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
271 272 273 274 275 276
}
void Level1Menu_5Exit(void)
{}

/*主界面6  空白*/
void Level1Menu_6Enter(void)
hu's avatar
hu committed
277
{}
hu's avatar
hu committed
278 279
void Level1Menu_6Do(void)
{
hu's avatar
hu committed
280 281 282
    GUI_OftenShow_Display();
    GUI_Dynamic_DIsplay();
    GUI_block_NULL_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
283 284 285 286 287 288
}
void Level1Menu_6Exit(void)
{}

/*主界面 报警界面*/
void LevelPopup_Enter(void)
hu's avatar
hu committed
289
{}
hu's avatar
hu committed
290 291
void LevelPopup_Do(void)
{
hu's avatar
hu committed
292 293
    GUI_OftenShow_Display();
    GUI_Dynamic_DIsplay();
hu's avatar
hu committed
294 295
}
void LevelPopup_Exit(void)
296 297
{}

hu's avatar
hu committed
298 299 300
/*----MENU----*/
/*二级菜单 故障码*/
void Level2Menu_1Enter(void)
hu's avatar
hu committed
301
{}
hu's avatar
hu committed
302 303
void Level2Menu_1Do(void)
{
hu's avatar
hu committed
304
    GUI_OftenShow_Display();
hu's avatar
hu committed
305
    GUI_BG_Menu_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
306
    GUI_BG_Menu1_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
307 308 309
}
void Level2Menu_1Exit(void)
{}
hu's avatar
hu committed
310

hu's avatar
hu committed
311 312
/*二级菜单 维修通知*/
void Level2Menu_2Enter(void)
hu's avatar
hu committed
313
{}
hu's avatar
hu committed
314 315
void Level2Menu_2Do(void)
{
hu's avatar
hu committed
316
    GUI_OftenShow_Display();
hu's avatar
hu committed
317
    GUI_BG_Menu_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
318
    GUI_BG_Menu2_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
319 320 321
}
void Level2Menu_2Exit(void)
{}
hu's avatar
hu committed
322

hu's avatar
hu committed
323 324
/*二级菜单 维修通知设定*/
void Level2Menu_3Enter(void)
hu's avatar
hu committed
325
{}
hu's avatar
hu committed
326 327
void Level2Menu_3Do(void)
{
hu's avatar
hu committed
328
    GUI_OftenShow_Display();
hu's avatar
hu committed
329
    GUI_BG_Menu_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
330
    GUI_BG_Menu3_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
331 332 333
}
void Level2Menu_3Exit(void)
{}
hu's avatar
hu committed
334

hu's avatar
hu committed
335 336
/*二级菜单 用户设定*/
void Level2Menu_4Enter(void)
hu's avatar
hu committed
337
{}
hu's avatar
hu committed
338 339
void Level2Menu_4Do(void)
{
hu's avatar
hu committed
340
    GUI_OftenShow_Display();
hu's avatar
hu committed
341
    GUI_BG_Menu_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
342
    GUI_BG_Menu4_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
343 344 345
}
void Level2Menu_4Exit(void)
{}
hu's avatar
hu committed
346

hu's avatar
hu committed
347
/*二级界面 系统演示*/
hu's avatar
hu committed
348
void Level2Menu_5Enter(void)
hu's avatar
hu committed
349
{}
hu's avatar
hu committed
350 351
void Level2Menu_5Do(void)
{
hu's avatar
hu committed
352
    GUI_OftenShow_Display();
hu's avatar
hu committed
353
    GUI_BG_Menu_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
354
    GUI_BG_Menu5_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
355 356 357
}
void Level2Menu_5Exit(void)
{}
hu's avatar
hu committed
358

hu's avatar
hu committed
359
/*二级界面 胎压显示*/
hu's avatar
hu committed
360
void Level2Menu_6Enter(void)
hu's avatar
hu committed
361
{}
hu's avatar
hu committed
362 363
void Level2Menu_6Do(void)
{
hu's avatar
hu committed
364
    GUI_OftenShow_Display();
hu's avatar
hu committed
365
    GUI_BG_Menu_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
366
    GUI_BG_Menu6_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
367 368 369
}
void Level2Menu_6Exit(void)
{}
hu's avatar
hu committed
370 371

/*----二级菜单----故障代码----子菜单系列*/
hu's avatar
hu committed
372 373
/*发动机故障*/
void Level2_1Menu_1Enter(void)
hu's avatar
hu committed
374
{}
hu's avatar
hu committed
375 376
void Level2_1Menu_1Do(void)
{
hu's avatar
hu committed
377
    GUI_OftenShow_Display();
hu's avatar
hu committed
378 379
    GUI_BG_Errot_Display(GUI_DISP_MODE_NORMAL);

hu's avatar
hu committed
380 381 382
}
void Level2_1Menu_1Exit(void)
{}
383

hu's avatar
hu committed
384 385 386
/*----二级菜单----保养通知----子菜单系列*/
/*发动机油滤清器*/
void Level2_2Menu_1Enter(void)
hu's avatar
hu committed
387
{}
hu's avatar
hu committed
388 389 390 391 392 393 394 395
void Level2_2Menu_1Do(void)
{
    GUI_OftenShow_Display();
    GUI_BG_Rep_Menu_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_RepMenu1_Display(GUI_DISP_MODE_NORMAL);
}
void Level2_2Menu_1Exit(void)
{}
hu's avatar
hu committed
396

hu's avatar
hu committed
397
/*----二级菜单----保养通知----子菜单系列*/
hu's avatar
hu committed
398 399
/*燃油滤清器*/
void Level2_2Menu_2Enter(void)
hu's avatar
hu committed
400
{}
hu's avatar
hu committed
401 402 403 404 405 406 407 408
void Level2_2Menu_2Do(void)
{
    GUI_OftenShow_Display();
    GUI_BG_Rep_Menu_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_RepMenu2_Display(GUI_DISP_MODE_NORMAL);
}
void Level2_2Menu_2Exit(void)
{}
hu's avatar
hu committed
409

hu's avatar
hu committed
410
/*----二级菜单----保养通知----子菜单系列*/
hu's avatar
hu committed
411 412
/*变速箱油*/
void Level2_2Menu_3Enter(void)
hu's avatar
hu committed
413
{}
hu's avatar
hu committed
414 415 416 417 418 419 420 421
void Level2_2Menu_3Do(void)
{
    GUI_OftenShow_Display();
    GUI_BG_Rep_Menu_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_RepMenu3_Display(GUI_DISP_MODE_NORMAL);
}
void Level2_2Menu_3Exit(void)
{}
hu's avatar
hu committed
422

hu's avatar
hu committed
423
/*----二级菜单----保养通知----子菜单系列*/
hu's avatar
hu committed
424 425
/*差速器油*/
void Level2_2Menu_4Enter(void)
hu's avatar
hu committed
426
{}
hu's avatar
hu committed
427 428 429 430 431 432 433 434
void Level2_2Menu_4Do(void)
{
    GUI_OftenShow_Display();
    GUI_BG_Rep_Menu_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_RepMenu4_Display(GUI_DISP_MODE_NORMAL);
}
void Level2_2Menu_4Exit(void)
{}
hu's avatar
hu committed
435

hu's avatar
hu committed
436
/*----二级菜单----保养通知----子菜单系列*/
hu's avatar
hu committed
437 438
/*动力转向油*/
void Level2_2Menu_7Enter(void)
hu's avatar
hu committed
439
{}
hu's avatar
hu committed
440 441 442 443 444 445 446 447
void Level2_2Menu_7Do(void)
{
    GUI_OftenShow_Display();
    GUI_BG_Rep_Menu_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_RepMenu7_Display(GUI_DISP_MODE_NORMAL);
}
void Level2_2Menu_7Exit(void)
{}
hu's avatar
hu committed
448

hu's avatar
hu committed
449
/*----二级菜单----保养通知----子菜单系列*/
hu's avatar
hu committed
450 451
/*轮胎*/
void Level2_2Menu_8Enter(void)
hu's avatar
hu committed
452
{}
hu's avatar
hu committed
453 454 455 456 457 458 459 460
void Level2_2Menu_8Do(void)
{
    GUI_OftenShow_Display();
    GUI_BG_Rep_Menu_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_RepMenu8_Display(GUI_DISP_MODE_NORMAL);
}
void Level2_2Menu_8Exit(void)
{}
461

hu's avatar
hu committed
462
/*----二级菜单----保养通知设定----系列子菜单*/
hu's avatar
hu committed
463
/*更换发动机滤清器*/
hu's avatar
hu committed
464
void Level2_3Menu_1Enter(void)
hu's avatar
hu committed
465
{}
hu's avatar
hu committed
466 467 468
void Level2_3Menu_1Do(void)
{
    GUI_OftenShow_Display();
hu's avatar
hu committed
469
    GUI_BG_RepSet_Menu_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
470 471 472 473
    GUI_BG_RepSetMenu1_Display(GUI_DISP_MODE_NORMAL);
}
void Level2_3Menu_1Exit(void)
{}
hu's avatar
hu committed
474

hu's avatar
hu committed
475
/*----二级菜单----保养通知设定----系列子菜单*/
hu's avatar
hu committed
476
/*更换燃油滤清器*/
hu's avatar
hu committed
477
void Level2_3Menu_2Enter(void)
hu's avatar
hu committed
478
{}
hu's avatar
hu committed
479 480 481
void Level2_3Menu_2Do(void)
{
    GUI_OftenShow_Display();
hu's avatar
hu committed
482
    GUI_BG_RepSet_Menu_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
483 484 485 486
    GUI_BG_RepSetMenu2_Display(GUI_DISP_MODE_NORMAL);
}
void Level2_3Menu_2Exit(void)
{}
hu's avatar
hu committed
487

hu's avatar
hu committed
488
/*----二级菜单----保养通知设定----系列子菜单*/
hu's avatar
hu committed
489
/*更换变速箱油*/
hu's avatar
hu committed
490
void Level2_3Menu_3Enter(void)
hu's avatar
hu committed
491
{}
hu's avatar
hu committed
492 493 494
void Level2_3Menu_3Do(void)
{
    GUI_OftenShow_Display();
hu's avatar
hu committed
495
    GUI_BG_RepSet_Menu_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
496 497 498 499
    GUI_BG_RepSetMenu3_Display(GUI_DISP_MODE_NORMAL);
}
void Level2_3Menu_3Exit(void)
{}
hu's avatar
hu committed
500

hu's avatar
hu committed
501
/*----二级菜单----保养通知设定----系列子菜单*/
hu's avatar
hu committed
502
/*更换差速器油*/
hu's avatar
hu committed
503
void Level2_3Menu_4Enter(void)
hu's avatar
hu committed
504
{}
hu's avatar
hu committed
505 506 507
void Level2_3Menu_4Do(void)
{
    GUI_OftenShow_Display();
hu's avatar
hu committed
508
    GUI_BG_RepSet_Menu_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
509 510 511 512
    GUI_BG_RepSetMenu4_Display(GUI_DISP_MODE_NORMAL);
}
void Level2_3Menu_4Exit(void)
{}
hu's avatar
hu committed
513

hu's avatar
hu committed
514
/*----二级菜单----保养通知设定----系列子菜单*/
hu's avatar
hu committed
515
/*更换动力转向油*/
hu's avatar
hu committed
516
void Level2_3Menu_6Enter(void)
hu's avatar
hu committed
517
{}
hu's avatar
hu committed
518 519 520
void Level2_3Menu_6Do(void)
{
    GUI_OftenShow_Display();
hu's avatar
hu committed
521
    GUI_BG_RepSet_Menu_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
522 523 524 525
    GUI_BG_RepSetMenu6_Display(GUI_DISP_MODE_NORMAL);
}
void Level2_3Menu_6Exit(void)
{}
hu's avatar
hu committed
526

hu's avatar
hu committed
527
/*----二级菜单----保养通知设定----系列子菜单*/
hu's avatar
hu committed
528
/*更换轮胎轮胎*/
hu's avatar
hu committed
529
void Level2_3Menu_7Enter(void)
hu's avatar
hu committed
530
{}
hu's avatar
hu committed
531 532 533
void Level2_3Menu_7Do(void)
{
    GUI_OftenShow_Display();
hu's avatar
hu committed
534
    GUI_BG_RepSet_Menu_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
535 536 537 538
    GUI_BG_RepSetMenu7_Display(GUI_DISP_MODE_NORMAL);
}
void Level2_3Menu_7Exit(void)
{}
hu's avatar
hu committed
539

hu's avatar
hu committed
540 541 542
/*----二级菜单----用户设定----系列子菜单*/
/*日期设定*/
void Level2_4Menu_1Enter(void)
hu's avatar
hu committed
543
{}
hu's avatar
hu committed
544 545
void Level2_4Menu_1Do(void)
{
hu's avatar
hu committed
546 547 548
    GUI_OftenShow_Display();
    GUI_BG_UserSet_Menu_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_UserSetMenu1_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
549 550 551
}
void Level2_4Menu_1Exit(void)
{}
hu's avatar
hu committed
552

hu's avatar
hu committed
553
/*----二级菜单----用户设定----系列子菜单*/
hu's avatar
hu committed
554
/*时间设定*/
hu's avatar
hu committed
555
void Level2_4Menu_2Enter(void)
hu's avatar
hu committed
556
{}
hu's avatar
hu committed
557 558
void Level2_4Menu_2Do(void)
{
hu's avatar
hu committed
559 560 561
    GUI_OftenShow_Display();
    GUI_BG_UserSet_Menu_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_UserSetMenu2_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
562 563 564
}
void Level2_4Menu_2Exit(void)
{}
hu's avatar
hu committed
565

hu's avatar
hu committed
566
/*----二级菜单----用户设定----系列子菜单*/
hu's avatar
hu committed
567
/*语言设定*/
hu's avatar
hu committed
568
void Level2_4Menu_3Enter(void)
hu's avatar
hu committed
569
{}
hu's avatar
hu committed
570 571
void Level2_4Menu_3Do(void)
{
hu's avatar
hu committed
572 573
    GUI_OftenShow_Display();
    GUI_BG_UserSet_Menu_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
574
    GUI_BG_UserSetMenu3_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
575 576 577
}
void Level2_4Menu_3Exit(void)
{}
hu's avatar
hu committed
578

579 580 581 582 583 584 585 586 587 588 589 590
/*----二级菜单----用户设定----系列子菜单*/
/*亮度调节*/
void Level2_4Menu_7Enter(void)
{}
void Level2_4Menu_7Do(void)
{
    GUI_OftenShow_Display();
    GUI_BG_UserSet_Menu_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_UserSetMenu8_Display(GUI_DISP_MODE_NORMAL);
}
void Level2_4Menu_7Exit(void)
{}
hu's avatar
hu committed
591
/*----二级菜单----用户设定----系列子菜单*/
hu's avatar
hu committed
592
/*设定节油驾驶建议*/
hu's avatar
hu committed
593
void Level2_4Menu_4Enter(void)
hu's avatar
hu committed
594
{}
hu's avatar
hu committed
595 596
void Level2_4Menu_4Do(void)
{
hu's avatar
hu committed
597 598
    GUI_OftenShow_Display();
    GUI_BG_UserSet_Menu_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
599
    GUI_BG_UserSetMenu4_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
600 601 602
}
void Level2_4Menu_4Exit(void)
{}
hu's avatar
hu committed
603

hu's avatar
hu committed
604
/*----二级菜单----用户设定----系列子菜单*/
hu's avatar
hu committed
605
/*TPMS轮胎设定*/
hu's avatar
hu committed
606
void Level2_4Menu_5Enter(void)
hu's avatar
hu committed
607
{}
hu's avatar
hu committed
608 609
void Level2_4Menu_5Do(void)
{
hu's avatar
hu committed
610 611
    GUI_OftenShow_Display();
    GUI_BG_UserSet_Menu_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
612
    GUI_BG_UserSetMenu5_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
613 614 615
}
void Level2_4Menu_5Exit(void)
{}
hu's avatar
hu committed
616

hu's avatar
hu committed
617
/*----二级菜单----用户设定----系列子菜单*/
hu's avatar
hu committed
618 619 620 621 622 623 624 625 626 627 628 629
/*显示设定*/
void Level2_4Menu_6Enter(void)
{}
void Level2_4Menu_6Do(void)
{
    GUI_OftenShow_Display();
    GUI_BG_UserSet_Menu_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_UserSetMenu6_Display(GUI_DISP_MODE_NORMAL);
}
void Level2_4Menu_6Exit(void)
{}

hu's avatar
hu committed
630
/*----二级菜单----系统演示----系列子菜单*/
hu's avatar
hu committed
631 632
/*LDWS 警报演示*/
void Level2_5Menu_1Enter(void)
hu's avatar
hu committed
633
{}
hu's avatar
hu committed
634
void Level2_5Menu_1Do(void)
hu's avatar
hu committed
635
{
hu's avatar
hu committed
636
    GUI_OftenShow_Display();
hu's avatar
hu committed
637 638
    GUI_BG_Demo_Menu_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_DemoMenu1_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
639
}
hu's avatar
hu committed
640
void Level2_5Menu_1Exit(void)
hu's avatar
hu committed
641
{}
hu's avatar
hu committed
642

hu's avatar
hu committed
643
/*----二级菜单----系统演示----系列子菜单*/
hu's avatar
hu committed
644 645
/*AEBS第1警报演示*/
void Level2_5Menu_2Enter(void)
hu's avatar
hu committed
646
{}
hu's avatar
hu committed
647
void Level2_5Menu_2Do(void)
hu's avatar
hu committed
648
{
hu's avatar
hu committed
649 650 651
    GUI_OftenShow_Display();
    GUI_BG_Demo_Menu_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_DemoMenu2_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
652
}
hu's avatar
hu committed
653
void Level2_5Menu_2Exit(void)
hu's avatar
hu committed
654
{}
hu's avatar
hu committed
655

hu's avatar
hu committed
656
/*----二级菜单----系统演示----系列子菜单*/
hu's avatar
hu committed
657 658
/*AEBS第1警报演示*/
void Level2_5Menu_3Enter(void)
hu's avatar
hu committed
659
{}
hu's avatar
hu committed
660
void Level2_5Menu_3Do(void)
hu's avatar
hu committed
661
{
hu's avatar
hu committed
662 663 664
    GUI_OftenShow_Display();
    GUI_BG_Demo_Menu_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_DemoMenu3_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
665
}
hu's avatar
hu committed
666
void Level2_5Menu_3Exit(void)
hu's avatar
hu committed
667
{}
hu's avatar
hu committed
668

hu's avatar
hu committed
669
/*----二级菜单----系统演示----系列子菜单*/
hu's avatar
hu committed
670 671
/*AEBS全力制动警报演示*/
void Level2_5Menu_4Enter(void)
hu's avatar
hu committed
672
{}
hu's avatar
hu committed
673
void Level2_5Menu_4Do(void)
hu's avatar
hu committed
674
{
hu's avatar
hu committed
675 676 677
    GUI_OftenShow_Display();
    GUI_BG_Demo_Menu_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_DemoMenu4_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
678
}
hu's avatar
hu committed
679
void Level2_5Menu_4Exit(void)
hu's avatar
hu committed
680
{}
681

hu's avatar
hu committed
682
/*----二级菜单----轮胎状态----系列子菜单*/
hu's avatar
hu committed
683 684
/*轮胎气压*/
void Level2_6Menu_1Enter(void)
hu's avatar
hu committed
685
{}
hu's avatar
hu committed
686 687 688
void Level2_6Menu_1Do(void)
{
    GUI_OftenShow_Display();
hu's avatar
hu committed
689 690
    GUI_BG_TPMS_GasPIC_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_TPMS_GasNUM_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
691 692 693 694
}
void Level2_6Menu_1Exit(void)
{}

hu's avatar
hu committed
695
/*----二级菜单----轮胎状态----系列子菜单*/
hu's avatar
hu committed
696 697
/*轮胎温度*/
void Level2_6Menu_2Enter(void)
hu's avatar
hu committed
698
{}
hu's avatar
hu committed
699 700 701
void Level2_6Menu_2Do(void)
{
    GUI_OftenShow_Display();
hu's avatar
hu committed
702 703
    GUI_BG_TPMS_TempPIC_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_TPMS_TempNUM_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
704 705 706 707
}
void Level2_6Menu_2Exit(void)
{}

hu's avatar
hu committed
708
/*----三级菜单----保养通知----系列子菜单*/
hu's avatar
hu committed
709
/*发动机机油滤清器*/
hu's avatar
hu committed
710
void Level3_2Menu_1Enter(void)
hu's avatar
hu committed
711 712 713 714 715 716 717
{
    if (MenuFlag.Menu_Return)
    {
        User_App.User_FDJYLQQ = (uint32_t)K_Line_Set.K_Line_LID4F * 1000;

        State_Flag.User_FDJYLQQ_FLAG = 0;
        MenuFlag.Menu_Return = 0;
hu's avatar
hu committed
718 719

        Data_Clear_Trip(EM_TRIP_JY);
hu's avatar
hu committed
720 721
    }
}
hu's avatar
hu committed
722 723
void Level3_2Menu_1Do(void)
{
hu's avatar
hu committed
724
    GUI_OftenShow_Display();
hu's avatar
hu committed
725 726
    GUI_BG_RepMenu_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_RepMenu_3_1_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
727 728
}
void Level3_2Menu_1Exit(void)
hu's avatar
hu committed
729
{}
hu's avatar
hu committed
730

hu's avatar
hu committed
731
/*----三级菜单----保养通知----系列子菜单*/
hu's avatar
hu committed
732
/*燃油滤清器*/
hu's avatar
hu committed
733
void Level3_2Menu_2Enter(void)
hu's avatar
hu committed
734 735 736 737 738 739 740 741 742 743 744
{
    if (MenuFlag.Menu_Return)
    {
        User_App.User_RYLQQ = (uint32_t)K_Line_User_RYLQQ * 1000;

        State_Flag.User_RYLQQ_FLAG = 0;
        MenuFlag.Menu_Return = 0;

        Data_Clear_Trip(EM_TRIP_RY);
    }
}
hu's avatar
hu committed
745 746
void Level3_2Menu_2Do(void)
{
hu's avatar
hu committed
747 748 749
    GUI_OftenShow_Display();
    GUI_BG_RepMenu_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_RepMenu_3_2_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
750 751
}
void Level3_2Menu_2Exit(void)
hu's avatar
hu committed
752
{}
hu's avatar
hu committed
753

hu's avatar
hu committed
754
/*----三级菜单----保养通知----系列子菜单*/
hu's avatar
hu committed
755
/*变速箱油*/
hu's avatar
hu committed
756
void Level3_2Menu_3Enter(void)
hu's avatar
hu committed
757 758 759 760 761 762 763 764 765 766 767
{
    if (MenuFlag.Menu_Return)
    {
        User_App.User_BSXY = (uint32_t)K_Line_Set.K_Line_LID4A * 1000;

        State_Flag.User_BSXY_FLAG = 0;
        MenuFlag.Menu_Return = 0;

        Data_Clear_Trip(EM_TRIP_BSX);
    }
}
hu's avatar
hu committed
768 769
void Level3_2Menu_3Do(void)
{
hu's avatar
hu committed
770 771 772
    GUI_OftenShow_Display();
    GUI_BG_RepMenu_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_RepMenu_3_3_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
773 774
}
void Level3_2Menu_3Exit(void)
hu's avatar
hu committed
775
{}
hu's avatar
hu committed
776

hu's avatar
hu committed
777
/*----三级菜单----保养通知----系列子菜单*/
hu's avatar
hu committed
778
/*差速器油*/
hu's avatar
hu committed
779
void Level3_2Menu_4Enter(void)
hu's avatar
hu committed
780 781 782 783 784 785 786 787 788 789 790
{
    if (MenuFlag.Menu_Return)
    {
        User_App.User_CSQY = (uint32_t)K_Line_Set.K_Line_LID4B * 1000;

        State_Flag.User_CSQY_FLAG = 0;
        MenuFlag.Menu_Return = 0;

        Data_Clear_Trip(EM_TRIP_CSQ);
    }
}
hu's avatar
hu committed
791 792
void Level3_2Menu_4Do(void)
{
hu's avatar
hu committed
793 794 795
    GUI_OftenShow_Display();
    GUI_BG_RepMenu_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_RepMenu_3_4_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
796 797
}
void Level3_2Menu_4Exit(void)
hu's avatar
hu committed
798
{}
hu's avatar
hu committed
799

hu's avatar
hu committed
800
/*----三级菜单----保养通知----系列子菜单*/
hu's avatar
hu committed
801
/*动力转向油*/
hu's avatar
hu committed
802
void Level3_2Menu_7Enter(void)
hu's avatar
hu committed
803 804 805 806 807 808 809 810 811 812 813
{
    if (MenuFlag.Menu_Return)
    {
        User_App.User_DLZXY = (uint32_t)K_Line_Set.K_Line_LID4D * 1000;

        State_Flag.User_DLZXY_FLAG = 0;
        MenuFlag.Menu_Return = 0;

        Data_Clear_Trip(EM_TRIP_DLZX);
    }
}
hu's avatar
hu committed
814 815
void Level3_2Menu_7Do(void)
{
hu's avatar
hu committed
816 817 818
    GUI_OftenShow_Display();
    GUI_BG_RepMenu_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_RepMenu_3_7_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
819 820
}
void Level3_2Menu_7Exit(void)
hu's avatar
hu committed
821
{}
hu's avatar
hu committed
822

hu's avatar
hu committed
823
/*----三级菜单----保养通知----系列子菜单*/
hu's avatar
hu committed
824
/*轮胎*/
hu's avatar
hu committed
825
void Level3_2Menu_8Enter(void)
hu's avatar
hu committed
826 827 828 829 830 831 832 833 834 835 836
{
    if (MenuFlag.Menu_Return)
    {
        User_App.User_LT = (uint32_t)K_Line_Set.K_Line_LID4E * 1000;

        State_Flag.User_LT_FLAG = 0;
        MenuFlag.Menu_Return = 0;

        Data_Clear_Trip(EM_TRIP_LT);
    }
}
hu's avatar
hu committed
837 838
void Level3_2Menu_8Do(void)
{
hu's avatar
hu committed
839 840 841
    GUI_OftenShow_Display();
    GUI_BG_RepMenu_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_RepMenu_3_8_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
842 843
}
void Level3_2Menu_8Exit(void)
hu's avatar
hu committed
844
{}
hu's avatar
hu committed
845

hu's avatar
hu committed
846
/*----三级菜单----保养通知设定----系列子菜单*/
hu's avatar
hu committed
847
/*更换机油机油滤清器*/
hu's avatar
hu committed
848
void Level3_3Menu_1Enter(void)
hu's avatar
hu committed
849
{
850 851 852 853 854 855 856 857
    //if (User_App.User_FDJYLQQ == 0u)
    //{
    //    User_set_Num.User_FDJYLQQ = 0u;
    //}
    //else
    //{
    //    User_set_Num.User_FDJYLQQ = (uint32_t)K_Line_Set.K_Line_LID4F * 1000u;
    //}
hu's avatar
hu committed
858
}
hu's avatar
hu committed
859 860
void Level3_3Menu_1Do(void)
{
hu's avatar
hu committed
861 862 863
    GUI_OftenShow_Display();
    GUI_BG_RepMenuSet_Menu_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_RepSetMenu_3_1_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
864 865
}
void Level3_3Menu_1Exit(void)
hu's avatar
hu committed
866 867 868 869 870 871 872
{
    if (MenuFlag.Menu_Return == 1u)
    {
        User_App.User_FDJYLQQ = User_set_Num.User_FDJYLQQ ;

        MenuFlag.Menu_Return = 0u;

hu's avatar
hu committed
873
        if (User_set_Num.User_FDJYLQQ != 0u)
hu's avatar
hu committed
874
        {
hu's avatar
hu committed
875
            State_Flag.User_FDJYLQQ_FLAG = 0u;
hu's avatar
hu committed
876 877
            Data_Clear_Trip(EM_TRIP_JY);
        }
hu's avatar
hu committed
878
        else
hu's avatar
hu committed
879
        {
hu's avatar
hu committed
880
            State_Flag.User_FDJYLQQ_FLAG = 3u;
hu's avatar
hu committed
881
        }
hu's avatar
hu committed
882 883
    }
}
hu's avatar
hu committed
884

hu's avatar
hu committed
885
/*----三级菜单----保养通知设定----系列子菜单*/
hu's avatar
hu committed
886
/*更换燃油滤清器*/
hu's avatar
hu committed
887
void Level3_3Menu_2Enter(void)
hu's avatar
hu committed
888
{
889 890 891 892 893 894 895 896
    //if (User_App.User_RYLQQ == 0u)
    //{
    //    User_set_Num.User_RYLQQ = 0u;
    //}
    //else
    //{
    //    User_set_Num.User_RYLQQ = (uint32_t)K_Line_User_RYLQQ * 1000u;
    //}
hu's avatar
hu committed
897
}
hu's avatar
hu committed
898 899
void Level3_3Menu_2Do(void)
{
hu's avatar
hu committed
900 901 902
    GUI_OftenShow_Display();
    GUI_BG_RepMenuSet_Menu_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_RepSetMenu_3_2_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
903 904
}
void Level3_3Menu_2Exit(void)
hu's avatar
hu committed
905 906 907 908 909 910 911 912
{
    if (MenuFlag.Menu_Return)
    {
        User_App.User_RYLQQ = User_set_Num.User_RYLQQ ;

        MenuFlag.Menu_Return = 0;

        if (User_set_Num.User_RYLQQ != 0)
hu's avatar
hu committed
913
        {
hu's avatar
hu committed
914
            State_Flag.User_RYLQQ_FLAG = 0;
hu's avatar
hu committed
915 916
            Data_Clear_Trip(EM_TRIP_RY);
        }
hu's avatar
hu committed
917
        else
hu's avatar
hu committed
918
        {
hu's avatar
hu committed
919
            State_Flag.User_RYLQQ_FLAG = 3;
hu's avatar
hu committed
920
        }
hu's avatar
hu committed
921 922
    }
}
hu's avatar
hu committed
923

hu's avatar
hu committed
924
/*----三级菜单----保养通知设定----系列子菜单*/
hu's avatar
hu committed
925
/*更换变速箱油*/
hu's avatar
hu committed
926
void Level3_3Menu_3Enter(void)
hu's avatar
hu committed
927
{
928 929 930 931 932 933 934 935
    //if (User_App.User_BSXY == 0u)
    //{
    //    User_set_Num.User_BSXY = 0u;
    //}
    //else
    //{
    //    User_set_Num.User_BSXY = (uint32_t)K_Line_Set.K_Line_LID4A * 1000;
    //}
hu's avatar
hu committed
936
}
hu's avatar
hu committed
937 938
void Level3_3Menu_3Do(void)
{
hu's avatar
hu committed
939 940 941
    GUI_OftenShow_Display();
    GUI_BG_RepMenuSet_Menu_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_RepSetMenu_3_3_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
942 943
}
void Level3_3Menu_3Exit(void)
hu's avatar
hu committed
944 945 946 947 948 949
{
    if (MenuFlag.Menu_Return)
    {
        User_App.User_BSXY = User_set_Num.User_BSXY ;

        MenuFlag.Menu_Return = 0;
hu's avatar
hu committed
950

hu's avatar
hu committed
951
        if (User_set_Num.User_BSXY != 0)
hu's avatar
hu committed
952
        {
hu's avatar
hu committed
953
            State_Flag.User_BSXY_FLAG = 0;
hu's avatar
hu committed
954 955
            Data_Clear_Trip(EM_TRIP_BSX);
        }
hu's avatar
hu committed
956
        else
hu's avatar
hu committed
957
        {
hu's avatar
hu committed
958
            State_Flag.User_BSXY_FLAG = 3;
hu's avatar
hu committed
959
        }
hu's avatar
hu committed
960 961 962 963
    }
}

/*----三级菜单----保养通知设定----系列子菜单*/
hu's avatar
hu committed
964
/*更换差速器油*/
hu's avatar
hu committed
965
void Level3_3Menu_4Enter(void)
hu's avatar
hu committed
966
{
967 968 969 970 971 972 973 974
    //if (User_App.User_CSQY == 0u)
    //{
    //    User_set_Num.User_CSQY = 0u;
    //}
    //else
    //{
    //    User_set_Num.User_CSQY = (uint32_t)K_Line_Set.K_Line_LID4B * 1000;
    //}
hu's avatar
hu committed
975
}
hu's avatar
hu committed
976 977
void Level3_3Menu_4Do(void)
{
hu's avatar
hu committed
978 979 980
    GUI_OftenShow_Display();
    GUI_BG_RepMenuSet_Menu_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_RepSetMenu_3_4_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
981 982
}
void Level3_3Menu_4Exit(void)
hu's avatar
hu committed
983 984 985 986
{
    if (MenuFlag.Menu_Return)
    {
        User_App.User_CSQY = User_set_Num.User_CSQY ;
hu's avatar
hu committed
987

hu's avatar
hu committed
988 989 990
        MenuFlag.Menu_Return = 0;

        if (User_set_Num.User_CSQY != 0)
hu's avatar
hu committed
991
        {
hu's avatar
hu committed
992
            State_Flag.User_CSQY_FLAG = 0;
hu's avatar
hu committed
993 994
            Data_Clear_Trip(EM_TRIP_CSQ);
        }
hu's avatar
hu committed
995
        else
hu's avatar
hu committed
996
        {
hu's avatar
hu committed
997
            State_Flag.User_CSQY_FLAG = 3;
hu's avatar
hu committed
998
        }
hu's avatar
hu committed
999 1000 1001 1002
    }
}

/*----三级菜单----保养通知设定----系列子菜单*/
hu's avatar
hu committed
1003
/*更换离合器油*/
hu's avatar
hu committed
1004 1005 1006 1007 1008 1009 1010 1011 1012 1013
//void Level3_3Menu_5Enter(void)
//{}
//void Level3_3Menu_5Do(void)
//{
//    GUI_OftenShow_Display();
//    GUI_BG_RepMenuSet_Menu_Display(GUI_DISP_MODE_NORMAL);
//    GUI_BG_RepSetMenu_3_5_Display(GUI_DISP_MODE_NORMAL);
//}
//void Level3_3Menu_5Exit(void)
//{}
hu's avatar
hu committed
1014

hu's avatar
hu committed
1015
/*----三级菜单----保养通知设定----系列子菜单*/
hu's avatar
hu committed
1016
/*更换动力转向液*/
hu's avatar
hu committed
1017
void Level3_3Menu_6Enter(void)
hu's avatar
hu committed
1018
{
1019 1020 1021 1022 1023 1024 1025 1026
    //if (User_App.User_DLZXY == 0u)
    //{
    //    User_set_Num.User_DLZXY = 0u;
    //}
    //else
    //{
    //    User_set_Num.User_DLZXY = (uint32_t)K_Line_Set.K_Line_LID4D * 1000;
    //}
hu's avatar
hu committed
1027
}
hu's avatar
hu committed
1028
void Level3_3Menu_6Do(void)
hu's avatar
hu committed
1029
{
hu's avatar
hu committed
1030 1031 1032
    GUI_OftenShow_Display();
    GUI_BG_RepMenuSet_Menu_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_RepSetMenu_3_6_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
1033
}
hu's avatar
hu committed
1034
void Level3_3Menu_6Exit(void)
hu's avatar
hu committed
1035 1036 1037 1038 1039 1040 1041 1042
{
    if (MenuFlag.Menu_Return)
    {
        User_App.User_DLZXY = User_set_Num.User_DLZXY ;

        MenuFlag.Menu_Return = 0;

        if (User_set_Num.User_DLZXY != 0)
hu's avatar
hu committed
1043
        {
hu's avatar
hu committed
1044
            State_Flag.User_DLZXY_FLAG = 0;
hu's avatar
hu committed
1045 1046
            Data_Clear_Trip(EM_TRIP_DLZX);
        }
hu's avatar
hu committed
1047
        else
hu's avatar
hu committed
1048
        {
hu's avatar
hu committed
1049
            State_Flag.User_DLZXY_FLAG = 3;
hu's avatar
hu committed
1050
        }
hu's avatar
hu committed
1051 1052
    }
}
1053

hu's avatar
hu committed
1054
/*----三级菜单----保养通知设定----系列子菜单*/
hu's avatar
hu committed
1055
/*更换轮胎*/
hu's avatar
hu committed
1056
void Level3_3Menu_7Enter(void)
hu's avatar
hu committed
1057
{
1058 1059 1060 1061 1062 1063 1064 1065
    //if (User_App.User_LT == 0u)
    //{
    //    User_set_Num.User_LT = 0u;
    //}
    //else
    //{
    //    User_set_Num.User_LT = (uint32_t)K_Line_Set.K_Line_LID4E * 1000;
    //}
hu's avatar
hu committed
1066
}
hu's avatar
hu committed
1067
void Level3_3Menu_7Do(void)
hu's avatar
hu committed
1068
{
hu's avatar
hu committed
1069 1070 1071
    GUI_OftenShow_Display();
    GUI_BG_RepMenuSet_Menu_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_RepSetMenu_3_7_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
1072
}
hu's avatar
hu committed
1073
void Level3_3Menu_7Exit(void)
hu's avatar
hu committed
1074 1075 1076 1077 1078 1079 1080 1081
{
    if (MenuFlag.Menu_Return)
    {
        User_App.User_LT = User_set_Num.User_LT ;

        MenuFlag.Menu_Return = 0;

        if (User_set_Num.User_LT != 0)
hu's avatar
hu committed
1082
        {
hu's avatar
hu committed
1083
            State_Flag.User_LT_FLAG = 0;
hu's avatar
hu committed
1084 1085
            Data_Clear_Trip(EM_TRIP_LT);
        }
hu's avatar
hu committed
1086
        else
hu's avatar
hu committed
1087
        {
hu's avatar
hu committed
1088
            State_Flag.User_LT_FLAG = 3;
hu's avatar
hu committed
1089
        }
hu's avatar
hu committed
1090 1091
    }
}
hu's avatar
hu committed
1092

hu's avatar
hu committed
1093
/*----三级菜单----用户设定----系列子选项*/
hu's avatar
hu committed
1094
/*日期设定 ----- 年*/
hu's avatar
hu committed
1095
void Level3_4Menu_1Enter_1(void)
hu's avatar
hu committed
1096
{
1097
    User_set_Num.Year  = Get_RTC_YEAR();
hu's avatar
hu committed
1098
    User_set_Num.Month = Get_RTC_MONTH();
1099
    User_set_Num.Date  = Get_RTC_DATE();
hu's avatar
hu committed
1100
}
hu's avatar
hu committed
1101
void Level3_4Menu_1Do_1(void)
hu's avatar
hu committed
1102
{
hu's avatar
hu committed
1103 1104 1105 1106 1107
    GUI_OftenShow_Display();
    GUI_BG_UserSet_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_UserSet_Date_Display(GUI_DISP_MODE_NORMAL);
}
void Level3_4Menu_1Exit_1(void)
hu's avatar
hu committed
1108
{}
hu's avatar
hu committed
1109

hu's avatar
hu committed
1110
/*----三级菜单----用户设定----系列子选项*/
hu's avatar
hu committed
1111
/*日期设定 ---- 月*/
hu's avatar
hu committed
1112 1113 1114 1115 1116 1117 1118 1119 1120
void Level3_4Menu_1Enter_2(void)
{}
void Level3_4Menu_1Do_2(void)
{
    GUI_OftenShow_Display();
    GUI_BG_UserSet_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_UserSet_Date_Display(GUI_DISP_MODE_NORMAL);
}
void Level3_4Menu_1Exit_2(void)
hu's avatar
hu committed
1121
{}
hu's avatar
hu committed
1122

hu's avatar
hu committed
1123
/*----三级菜单----用户设定----系列子选项*/
hu's avatar
hu committed
1124
/*日期设定 ---- 日*/
hu's avatar
hu committed
1125 1126 1127 1128 1129 1130 1131
void Level3_4Menu_1Enter_3(void)
{}
void Level3_4Menu_1Do_3(void)
{
    GUI_OftenShow_Display();
    GUI_BG_UserSet_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_UserSet_Date_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
1132
}
hu's avatar
hu committed
1133
void Level3_4Menu_1Exit_3(void)
hu's avatar
hu committed
1134 1135 1136
{
    if (MenuFlag.Menu_Return)
    {
1137
        RTE_RTC_Set_Year (User_set_Num.Year + 2000u);
hu's avatar
hu committed
1138
        RTE_RTC_Set_Month(User_set_Num.Month);
1139 1140 1141 1142
        RTE_RTC_Set_Date (User_set_Num.Date);

        RTE_RTC_Set_Hour(Get_RTC_HOUR());
        RTE_RTC_Set_Minute(Get_RTC_MINUTE());
hu's avatar
hu committed
1143

hu's avatar
hu committed
1144 1145 1146 1147 1148 1149
        MenuFlag.Menu_Return = 0;

        RTE_RTC_Confirm_Overwrite();
    }
}

hu's avatar
hu committed
1150
/*----三级菜单----用户设定----系列子选项*/
hu's avatar
hu committed
1151
/*时间设定 ---- 时*/
hu's avatar
hu committed
1152
void Level3_4Menu_2Enter_1(void)
hu's avatar
hu committed
1153 1154 1155 1156
{
    User_set_Num.Hour = Get_RTC_HOUR();
    User_set_Num.Minute = Get_RTC_MINUTE();
}
hu's avatar
hu committed
1157
void Level3_4Menu_2Do_1(void)
hu's avatar
hu committed
1158
{
hu's avatar
hu committed
1159 1160 1161 1162 1163
    GUI_OftenShow_Display();
    GUI_BG_UserSet_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_UserSet_Time_Display(GUI_DISP_MODE_NORMAL);
}
void Level3_4Menu_2Exit_1(void)
hu's avatar
hu committed
1164
{}
hu's avatar
hu committed
1165

hu's avatar
hu committed
1166
/*----三级菜单----用户设定----系列子选项*/
hu's avatar
hu committed
1167
/*时间设定 ---- 分*/
hu's avatar
hu committed
1168 1169 1170 1171 1172 1173 1174
void Level3_4Menu_2Enter_2(void)
{}
void Level3_4Menu_2Do_2(void)
{
    GUI_OftenShow_Display();
    GUI_BG_UserSet_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_UserSet_Time_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
1175
}
hu's avatar
hu committed
1176
void Level3_4Menu_2Exit_2(void)
hu's avatar
hu committed
1177 1178 1179
{
    if (MenuFlag.Menu_Return)
    {
1180 1181 1182 1183
        RTE_RTC_Set_Year ( Get_RTC_YEAR() + 2000u );
        RTE_RTC_Set_Month( Get_RTC_MONTH() );
        RTE_RTC_Set_Date ( Get_RTC_DATE() );

hu's avatar
hu committed
1184 1185 1186 1187 1188 1189 1190 1191
        RTE_RTC_Set_Hour(User_set_Num.Hour);
        RTE_RTC_Set_Minute(User_set_Num.Minute);

        MenuFlag.Menu_Return = 0;

        RTE_RTC_Confirm_Overwrite();
    }
}
hu's avatar
hu committed
1192

hu's avatar
hu committed
1193
/*----三级菜单----用户设定----系列子选项*/
hu's avatar
hu committed
1194
/*语言设定*/
hu's avatar
hu committed
1195
void Level3_4Menu_3Enter(void)
hu's avatar
hu committed
1196 1197 1198
{
    User_set_Num.User_Language   = User_App.User_Language;
}
hu's avatar
hu committed
1199 1200
void Level3_4Menu_3Do(void)
{
hu's avatar
hu committed
1201 1202 1203
    GUI_OftenShow_Display();
    GUI_BG_UserSet_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_UserSet_Language_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
1204 1205
}
void Level3_4Menu_3Exit(void)
hu's avatar
hu committed
1206 1207 1208 1209 1210 1211 1212
{
    if (MenuFlag.Menu_Return)
    {
        User_App.User_Language    =  User_set_Num.User_Language  ;
        MenuFlag.Menu_Return = 0;
    }
}
hu's avatar
hu committed
1213

hu's avatar
hu committed
1214
/*----三级菜单----省油建议----系列子菜单*/
hu's avatar
hu committed
1215
/*速度设定-高速路*/
hu's avatar
hu committed
1216
void Level3_4Menu_4Enter_1(void)
hu's avatar
hu committed
1217
{}
hu's avatar
hu committed
1218 1219
void Level3_4Menu_4Do_1(void)
{
hu's avatar
hu committed
1220 1221 1222
    GUI_OftenShow_Display();
    GUI_BG_UserSet_SYSD_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_UserSet_SYSD_1_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
1223 1224
}
void Level3_4Menu_4Exit_1(void)
hu's avatar
hu committed
1225
{}
hu's avatar
hu committed
1226

hu's avatar
hu committed
1227
/*----三级菜单----省油建议----系列子菜单*/
hu's avatar
hu committed
1228
/*速度设定-一般路*/
hu's avatar
hu committed
1229
void Level3_4Menu_4Enter_2(void)
hu's avatar
hu committed
1230
{}
hu's avatar
hu committed
1231 1232
void Level3_4Menu_4Do_2(void)
{
hu's avatar
hu committed
1233 1234 1235
    GUI_OftenShow_Display();
    GUI_BG_UserSet_SYSD_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_UserSet_SYSD_2_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
1236 1237
}
void Level3_4Menu_4Exit_2(void)
hu's avatar
hu committed
1238
{}
hu's avatar
hu committed
1239

hu's avatar
hu committed
1240
/*----三级菜单----省油建议----系列子菜单*/
hu's avatar
hu committed
1241
/*发送机转速设定*/
hu's avatar
hu committed
1242
void Level3_4Menu_4Enter_3(void)
hu's avatar
hu committed
1243
{}
hu's avatar
hu committed
1244 1245
void Level3_4Menu_4Do_3(void)
{
hu's avatar
hu committed
1246 1247 1248
    GUI_OftenShow_Display();
    GUI_BG_UserSet_SYSD_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_UserSet_SYSD_3_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
1249 1250
}
void Level3_4Menu_4Exit_3(void)
hu's avatar
hu committed
1251
{}
hu's avatar
hu committed
1252

hu's avatar
hu committed
1253
/*----三级菜单----省油建议----系列子菜单*/
hu's avatar
hu committed
1254
/*急加速设定*/
hu's avatar
hu committed
1255
void Level3_4Menu_4Enter_4(void)
hu's avatar
hu committed
1256
{}
hu's avatar
hu committed
1257 1258
void Level3_4Menu_4Do_4(void)
{
hu's avatar
hu committed
1259 1260 1261
    GUI_OftenShow_Display();
    GUI_BG_UserSet_SYSD_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_UserSet_SYSD_4_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
1262 1263
}
void Level3_4Menu_4Exit_4(void)
hu's avatar
hu committed
1264
{}
hu's avatar
hu committed
1265

hu's avatar
hu committed
1266
/*----三级菜单----省油建议----系列子菜单*/
hu's avatar
hu committed
1267
/*急减速设定*/
hu's avatar
hu committed
1268
void Level3_4Menu_4Enter_5(void)
hu's avatar
hu committed
1269
{}
hu's avatar
hu committed
1270 1271
void Level3_4Menu_4Do_5(void)
{
hu's avatar
hu committed
1272 1273 1274
    GUI_OftenShow_Display();
    GUI_BG_UserSet_SYSD_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_UserSet_SYSD_5_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
1275 1276
}
void Level3_4Menu_4Exit_5(void)
hu's avatar
hu committed
1277
{}
hu's avatar
hu committed
1278

hu's avatar
hu committed
1279
/*----三级菜单----省油建议----系列子菜单*/
hu's avatar
hu committed
1280
/*长时间怠速设定*/
hu's avatar
hu committed
1281
void Level3_4Menu_4Enter_6(void)
hu's avatar
hu committed
1282
{}
hu's avatar
hu committed
1283 1284
void Level3_4Menu_4Do_6(void)
{
hu's avatar
hu committed
1285 1286 1287
    GUI_OftenShow_Display();
    GUI_BG_UserSet_SYSD_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_UserSet_SYSD_6_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
1288 1289
}
void Level3_4Menu_4Exit_6(void)
hu's avatar
hu committed
1290
{}
hu's avatar
hu committed
1291

hu's avatar
hu committed
1292
/*----三级菜单----省油建议----系列子菜单*/
hu's avatar
hu committed
1293
/*辅助驻车解除设定*/
hu's avatar
hu committed
1294
void Level3_4Menu_4Enter_7(void)
hu's avatar
hu committed
1295
{}
hu's avatar
hu committed
1296 1297
void Level3_4Menu_4Do_7(void)
{
hu's avatar
hu committed
1298 1299 1300
    GUI_OftenShow_Display();
    GUI_BG_UserSet_SYSD_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_UserSet_SYSD_7_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
1301 1302
}
void Level3_4Menu_4Exit_7(void)
hu's avatar
hu committed
1303
{}
hu's avatar
hu committed
1304

hu's avatar
hu committed
1305
/*----三级菜单----TPMS轮胎设定----系列子菜单*/
hu's avatar
hu committed
1306
/*TPMS  轮胎设定*/
hu's avatar
hu committed
1307
void Level3_4Menu_5Enter(void)
hu's avatar
hu committed
1308 1309 1310 1311 1312
{
    User_set_Num.User_Tpms = 0 ;             /*当前是哪个轮子*/
    User_set_Num.User_TpmsStatus = 0 ;       /*当前胎压匹配界面状态*/
    User_set_Num.User_Temp_Return = 0 ;      /*取消胎压匹配*/
}
hu's avatar
hu committed
1313 1314
void Level3_4Menu_5Do(void)
{
hu's avatar
hu committed
1315
    GUI_BG_TPMS_PictureSet_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
1316 1317 1318 1319 1320 1321

    /*匹配完成,调整配置界面*/
    if (User_set_Num.User_Tpms == 0x0du)
    {
        NextMenu(MenuOptTab[bCurMenuIDX].VK_IDX_EXIT);
    }
hu's avatar
hu committed
1322 1323
}
void Level3_4Menu_5Exit(void)
hu's avatar
hu committed
1324
{}
hu's avatar
hu committed
1325

1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337
/*----三级菜单----TPMS轮胎设定----系列子菜单*/
/*亮度调节设定*/
void Level3_4Menu_7Enter(void)
{}
void Level3_4Menu_7Do(void)
{
    GUI_OftenShow_Display();
    GUI_BG_User_Light_Display(GUI_DISP_MODE_NORMAL);
}
void Level3_4Menu_7Exit(void)
{}

hu's avatar
hu committed
1338
/*----三级菜单----系统演示----系列子菜单*/
hu's avatar
hu committed
1339
/*LDWS 警报演示*/
hu's avatar
hu committed
1340
void Level3_5Menu_1Enter(void)
hu's avatar
hu committed
1341
{}
hu's avatar
hu committed
1342 1343
void Level3_5Menu_1Do(void)
{
1344 1345 1346 1347 1348
    GUI_OftenShow_Display(); /*1238*/
    Gui_ADAS_Test_Display(GUI_DISP_MODE_NORMAL);/*4*/
    GUI_AVG_FuelSpeed_Display(GUI_DISP_MODE_NORMAL);/*5*/
    Gui_DrivingSupport_Display(GUI_DISP_MODE_NORMAL);/*6*/
    Gui_Gear_Display(GUI_DISP_MODE_NORMAL);/*7*/
hu's avatar
hu committed
1349 1350
}
void Level3_5Menu_1Exit(void)
hu's avatar
hu committed
1351
{}
hu's avatar
hu committed
1352

hu's avatar
hu committed
1353
/*----三级菜单----系统演示----系列子菜单*/
hu's avatar
hu committed
1354
/*AEBS第1警报演示*/
hu's avatar
hu committed
1355
void Level3_5Menu_2Enter(void)
hu's avatar
hu committed
1356
{}
hu's avatar
hu committed
1357 1358
void Level3_5Menu_2Do(void)
{
1359 1360 1361
    GUI_OftenShow_Display();
    GUI_Dynamic_DIsplay();
    GUI_AEBS_Test1_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
1362 1363
}
void Level3_5Menu_2Exit(void)
hu's avatar
hu committed
1364
{}
hu's avatar
hu committed
1365

hu's avatar
hu committed
1366
/*----三级菜单----系统演示----系列子菜单*/
hu's avatar
hu committed
1367
/*AEBS第2警报演示*/
hu's avatar
hu committed
1368
void Level3_5Menu_3Enter(void)
hu's avatar
hu committed
1369
{}
hu's avatar
hu committed
1370 1371
void Level3_5Menu_3Do(void)
{
1372 1373 1374
    GUI_OftenShow_Display();
    GUI_Dynamic_DIsplay();
    GUI_AEBS_Test2_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
1375 1376
}
void Level3_5Menu_3Exit(void)
hu's avatar
hu committed
1377
{}
hu's avatar
hu committed
1378

hu's avatar
hu committed
1379
/*----三级菜单----系统演示----系列子菜单*/
hu's avatar
hu committed
1380
/*AEBS全力制动警报演示*/
hu's avatar
hu committed
1381
void Level3_5Menu_4Enter(void)
hu's avatar
hu committed
1382
{}
hu's avatar
hu committed
1383 1384
void Level3_5Menu_4Do(void)
{
1385 1386 1387
    GUI_OftenShow_Display();
    GUI_Dynamic_DIsplay();
    GUI_AEBS_Test3_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
1388 1389
}
void Level3_5Menu_4Exit(void)
hu's avatar
hu committed
1390
{}
hu's avatar
hu committed
1391

hu's avatar
hu committed
1392
/*----四级菜单----省油建议设定----系列子菜单*/
hu's avatar
hu committed
1393
/*速度设定-高速路子菜单*/
hu's avatar
hu committed
1394
void Level4_4Menu_1Enter(void)
hu's avatar
hu committed
1395 1396 1397
{
    User_set_Num.User_Gsl = User_App.User_Gsl ;
}
hu's avatar
hu committed
1398 1399
void Level4_4Menu_1Do(void)
{
hu's avatar
hu committed
1400 1401
    GUI_OftenShow_Display();
    GUI_BG_UserSet_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
1402
    GUI_BG_UserSet_SYSD_GSL_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
1403 1404
}
void Level4_4Menu_1Exit(void)
hu's avatar
hu committed
1405 1406 1407 1408 1409 1410 1411 1412
{
    if (MenuFlag.Menu_Return)
    {
        User_App.User_Gsl = User_set_Num.User_Gsl ;

        MenuFlag.Menu_Return = 0;
    }
}
hu's avatar
hu committed
1413

hu's avatar
hu committed
1414
/*----四级菜单----省油建议设定----系列子菜单*/
hu's avatar
hu committed
1415
/*速度设定-一般路子菜单*/
hu's avatar
hu committed
1416
void Level4_4Menu_2Enter(void)
hu's avatar
hu committed
1417 1418 1419
{
    User_set_Num.User_Ybl = User_App.User_Ybl ;
}
hu's avatar
hu committed
1420 1421
void Level4_4Menu_2Do(void)
{
hu's avatar
hu committed
1422 1423
    GUI_OftenShow_Display();
    GUI_BG_UserSet_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
1424
    GUI_BG_UserSet_SYSD_Ybl_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
1425 1426
}
void Level4_4Menu_2Exit(void)
hu's avatar
hu committed
1427 1428 1429 1430 1431 1432 1433 1434
{
    if (MenuFlag.Menu_Return)
    {
        User_App.User_Ybl = User_set_Num.User_Ybl ;

        MenuFlag.Menu_Return = 0;
    }
}
hu's avatar
hu committed
1435

hu's avatar
hu committed
1436
/*----四级菜单----省油建议设定----系列子菜单*/
hu's avatar
hu committed
1437
/*发动机转速设定子菜单*/
hu's avatar
hu committed
1438
void Level4_4Menu_3Enter(void)
hu's avatar
hu committed
1439 1440 1441
{
    User_set_Num.User_Speed = User_App.User_Speed ;
}
hu's avatar
hu committed
1442 1443
void Level4_4Menu_3Do(void)
{
hu's avatar
hu committed
1444 1445
    GUI_OftenShow_Display();
    GUI_BG_UserSet_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
1446
    GUI_BG_UserSet_SYSD_Speed_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
1447 1448
}
void Level4_4Menu_3Exit(void)
hu's avatar
hu committed
1449 1450 1451 1452 1453 1454 1455 1456
{
    if (MenuFlag.Menu_Return)
    {
        User_App.User_Speed = User_set_Num.User_Speed ;

        MenuFlag.Menu_Return = 0;
    }
}
hu's avatar
hu committed
1457

hu's avatar
hu committed
1458
/*----四级菜单----省油建议设定----系列子菜单*/
hu's avatar
hu committed
1459
/*急加速设定子菜单*/
hu's avatar
hu committed
1460
void Level4_4Menu_4Enter(void)
hu's avatar
hu committed
1461 1462 1463
{
    User_set_Num.User_JADD = User_App.User_JADD ;
}
hu's avatar
hu committed
1464 1465
void Level4_4Menu_4Do(void)
{
hu's avatar
hu committed
1466 1467
    GUI_OftenShow_Display();
    GUI_BG_UserSet_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
1468
    GUI_BG_UserSet_SYSD_JADD_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
1469 1470
}
void Level4_4Menu_4Exit(void)
hu's avatar
hu committed
1471 1472 1473 1474 1475 1476 1477 1478
{
    if (MenuFlag.Menu_Return)
    {
        User_App.User_JADD = User_set_Num.User_JADD ;

        MenuFlag.Menu_Return = 0;
    }
}
hu's avatar
hu committed
1479

hu's avatar
hu committed
1480
/*----四级菜单----省油建议设定----系列子菜单*/
hu's avatar
hu committed
1481
/*急减速子菜单*/
hu's avatar
hu committed
1482
void Level4_4Menu_5Enter(void)
hu's avatar
hu committed
1483 1484 1485
{
    User_set_Num.User_JSUB = User_App.User_JSUB ;
}
hu's avatar
hu committed
1486 1487
void Level4_4Menu_5Do(void)
{
hu's avatar
hu committed
1488 1489
    GUI_OftenShow_Display();
    GUI_BG_UserSet_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
1490
    GUI_BG_UserSet_SYSD_JSUB_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
1491 1492
}
void Level4_4Menu_5Exit(void)
hu's avatar
hu committed
1493 1494 1495 1496 1497 1498 1499
{
    if (MenuFlag.Menu_Return)
    {
        User_App.User_JSUB = User_set_Num.User_JSUB ;
        MenuFlag.Menu_Return = 0;
    }
}
hu's avatar
hu committed
1500

hu's avatar
hu committed
1501
/*----四级菜单----省油建议设定----系列子菜单*/
hu's avatar
hu committed
1502
/*长时间怠速设定子菜单*/
hu's avatar
hu committed
1503
void Level4_4Menu_6Enter(void)
hu's avatar
hu committed
1504 1505 1506
{
    User_set_Num.User_IDLING = User_App.User_IDLING ;
}
hu's avatar
hu committed
1507 1508
void Level4_4Menu_6Do(void)
{
hu's avatar
hu committed
1509 1510
    GUI_OftenShow_Display();
    GUI_BG_UserSet_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
1511
    GUI_BG_UserSet_SYSD_IDLING_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
1512 1513
}
void Level4_4Menu_6Exit(void)
hu's avatar
hu committed
1514 1515 1516 1517 1518 1519 1520
{
    if (MenuFlag.Menu_Return)
    {
        User_App.User_IDLING = User_set_Num.User_IDLING ;
        MenuFlag.Menu_Return = 0;
    }
}
hu's avatar
hu committed
1521

hu's avatar
hu committed
1522
/*----四级菜单----省油建议设定----系列子菜单*/
hu's avatar
hu committed
1523
/*辅助驻车解除设定*/
hu's avatar
hu committed
1524
void Level4_4Menu_7Enter(void)
hu's avatar
hu committed
1525 1526 1527
{
    User_set_Num.User_Parking = User_App.User_Parking ;
}
hu's avatar
hu committed
1528 1529
void Level4_4Menu_7Do(void)
{
hu's avatar
hu committed
1530 1531
    GUI_OftenShow_Display();
    GUI_BG_UserSet_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
1532
    GUI_BG_UserSet_SYSD_Parking_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
1533 1534
}
void Level4_4Menu_7Exit(void)
hu's avatar
hu committed
1535 1536 1537 1538 1539 1540 1541
{
    if (MenuFlag.Menu_Return)
    {
        User_App.User_Parking = User_set_Num.User_Parking ;
        MenuFlag.Menu_Return = 0;
    }
}
hu's avatar
hu committed
1542

hu's avatar
hu committed
1543
/*----Enter----*/
hu's avatar
hu committed
1544
void Level_Enter_Menu_Enter(void)
hu's avatar
hu committed
1545
{}
hu's avatar
hu committed
1546 1547
void Level_Enter_Menu_Do(void)
{
hu's avatar
hu committed
1548
    GUI_BG_Enter_Return_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
1549 1550 1551 1552 1553 1554 1555 1556 1557 1558
}
void Level_Enter_Menu_Exit(void)
{
    if (MenuFlag.Menu_Return)
    {
        State_Flag.ENTER_RETURN = 1;
        MenuFlag.Menu_Return = 0;
    }
}

hu's avatar
hu committed
1559
/*----Return----*/
hu's avatar
hu committed
1560
void Level_Return_Menu_Enter(void)
hu's avatar
hu committed
1561
{}
hu's avatar
hu committed
1562 1563
void Level_Return_Menu_Do(void)
{
hu's avatar
hu committed
1564
    GUI_BG_Enter_Return_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578
    if (MenuFlag.Menu_Time_Flag < 30)
    {
        MenuFlag.Menu_Time_Flag++;
    }
    else
    {
        MenuFlag.Menu_Time_Flag = 0;
        MenuFlag.Menu_Return = 1;
        NextMenu(MenuFlag.Menu_Enter_Return);
    }
}
void Level_Return_Menu_Exit(void)
{
    State_Flag.ENTER_RETURN = 0;
hu's avatar
hu committed
1579
}