Menu_user.c 32.5 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 9
#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
10 11 12 13 14 15 16
uint8_t     bMenuSwFlag;
uint8_t     g_ClearWin1;
uint8_t     bNextMenuIDX;
uint8_t     bCurMenuIDX;
uint8_t     bMainMenuIDX;
uint8_t     bOldMenuIDX;

17 18
_MenuFlag    MenuFlag   ;

hu's avatar
hu committed
19 20 21 22
const _MenuOptTab   MenuOptTab[] =
{
    /*---------ENTER---------------------UP-----------------------DOWN----------------------EXIT------------------ENTER------------------DO-----------------EXIT------------*/
    /*主循环界面*/
hu's avatar
hu committed
23 24 25 26 27 28 29
    /*00*/{ _MN_DSP_LEVEL2MENU_2,    _MN_DSP_LEVEL1MENU_6,     _MN_DSP_LEVEL1MENU_2,     _MN_IDX_NULL,         Level1Menu_1Enter,      Level1Menu_1Do,     Level1Menu_1Exit},        /*  _MN_DSP_LEVEL1MENU_1  */
    /*01*/{ _MN_DSP_LEVEL2MENU_2,    _MN_DSP_LEVEL1MENU_1,     _MN_DSP_LEVEL1MENU_3,     _MN_IDX_NULL,         Level1Menu_2Enter,      Level1Menu_2Do,     Level1Menu_2Exit},        /*  _MN_DSP_LEVEL1MENU_2  */
    /*02*/{ _MN_DSP_LEVEL2MENU_2,    _MN_DSP_LEVEL1MENU_2,     _MN_DSP_LEVEL1MENU_4,     _MN_IDX_NULL,         Level1Menu_3Enter,      Level1Menu_3Do,     Level1Menu_3Exit},        /*  _MN_DSP_LEVEL1MENU_3  */
    /*03*/{ _MN_DSP_LEVEL2MENU_2,    _MN_DSP_LEVEL1MENU_3,     _MN_DSP_LEVEL1MENU_5,     _MN_IDX_NULL,         Level1Menu_4Enter,      Level1Menu_4Do,     Level1Menu_4Exit},        /*  _MN_DSP_LEVEL1MENU_4  */
    /*04*/{ _MN_DSP_LEVEL2MENU_2,    _MN_DSP_LEVEL1MENU_4,     _MN_DSP_LEVEL1MENU_6,     _MN_IDX_NULL,         Level1Menu_5Enter,      Level1Menu_5Do,     Level1Menu_5Exit},        /*  _MN_DSP_LEVEL1MENU_5  */
    /*05*/{ _MN_DSP_LEVEL2MENU_2,    _MN_DSP_LEVEL1MENU_5,     _MN_DSP_LEVEL1MENU_1,     _MN_IDX_NULL,         Level1Menu_6Enter,      Level1Menu_6Do,     Level1Menu_6Exit},        /*  _MN_DSP_LEVEL1MENU_6  */
    /*06*/{ _MN_IDX_NULL,            _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_IDX_NULL,         LevelPopup_Enter,       LevelPopup_Do,      LevelPopup_Exit },        /*  _MN_DSP_LEVEPOPUP     */
hu's avatar
hu committed
30
    /*一级菜单 */
hu's avatar
hu committed
31 32 33 34 35 36
    /*07*/{ _MN_DSP_LEVEL2_1_MENU_1, _MN_IDX_NULL,             _MN_DSP_LEVEL2MENU_2,     _MN_IDX_NULL,         Level2Menu_1Enter,      Level2Menu_1Do,     Level2Menu_1Exit},        /*  _MN_DSP_LEVEL2MENU_1  */
    /*08*/{ _MN_DSP_LEVEL2_2_MENU_1, _MN_IDX_NULL,             _MN_DSP_LEVEL2MENU_3,     _MN_IDX_NULL,         Level2Menu_2Enter,      Level2Menu_2Do,     Level2Menu_2Exit},        /*  _MN_DSP_LEVEL2MENU_2  */
    /*09*/{ _MN_DSP_LEVEL2_3_MENU_1, _MN_DSP_LEVEL2MENU_2,     _MN_DSP_LEVEL2MENU_4,     _MN_IDX_NULL,         Level2Menu_3Enter,      Level2Menu_3Do,     Level2Menu_3Exit},        /*  _MN_DSP_LEVEL2MENU_3  */
    /*10*/{ _MN_DSP_LEVEL2_4_MENU_1, _MN_DSP_LEVEL2MENU_3,     _MN_DSP_LEVEL2MENU_5,     _MN_IDX_NULL,         Level2Menu_4Enter,      Level2Menu_4Do,     Level2Menu_4Exit},        /*  _MN_DSP_LEVEL2MENU_4  */
    /*11*/{ _MN_DSP_LEVEL2_5_MENU_1, _MN_DSP_LEVEL2MENU_4,     _MN_DSP_LEVEL2MENU_6,     _MN_IDX_NULL,         Level2Menu_5Enter,      Level2Menu_5Do,     Level2Menu_5Exit},        /*  _MN_DSP_LEVEL2MENU_5  */
    /*12*/{ _MN_DSP_LEVEL2_6_MENU_1, _MN_DSP_LEVEL2MENU_5,     _MN_IDX_NULL,             _MN_IDX_NULL,         Level2Menu_6Enter,      Level2Menu_6Do,     Level2Menu_6Exit},        /*  _MN_DSP_LEVEL2MENU_6  */
hu's avatar
hu committed
37
    /*二级菜单 */
hu's avatar
hu committed
38 39 40 41 42 43 44 45
    /*13*/{ _MN_IDX_NULL,            _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL2MENU_1, Level2_1Menu_1Enter,  Level2_1Menu_1Do,   Level2_1Menu_1Exit},          /*  _MN_DSP_LEVEL2_1_MENU_1 */

    /*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},          /*  _MN_DSP_LEVEL2_2_MENU_1 */
    /*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},          /*  _MN_DSP_LEVEL2_2_MENU_2 */
    /*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},          /*  _MN_DSP_LEVEL2_2_MENU_3 */
    /*17*/{ _MN_DSP_LEVEL3_2_MENU_4, _MN_DSP_LEVEL2_2_MENU_3,  _MN_DSP_LEVEL2_2_MENU_6,  _MN_DSP_LEVEL2MENU_2, Level2_2Menu_4Enter,  Level2_2Menu_4Do,   Level2_2Menu_4Exit},          /*  _MN_DSP_LEVEL2_2_MENU_4 */
    /*19*/{ _MN_DSP_LEVEL3_2_MENU_6, _MN_DSP_LEVEL2_2_MENU_4,  _MN_DSP_LEVEL2_2_MENU_7,  _MN_DSP_LEVEL2MENU_2, Level2_2Menu_6Enter,  Level2_2Menu_6Do,   Level2_2Menu_6Exit},          /*  _MN_DSP_LEVEL2_2_MENU_6 */
    /*20*/{ _MN_DSP_LEVEL3_2_MENU_7, _MN_DSP_LEVEL2_2_MENU_6,  _MN_DSP_LEVEL2_2_MENU_8,  _MN_DSP_LEVEL2MENU_2, Level2_2Menu_7Enter,  Level2_2Menu_7Do,   Level2_2Menu_7Exit},          /*  _MN_DSP_LEVEL2_2_MENU_7 */
hu's avatar
hu committed
46
    /*21*/{ _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},          /*  _MN_DSP_LEVEL2_2_MENU_8 */
hu's avatar
hu committed
47 48 49 50 51 52 53

    /*23*/{ _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},          /*  _MN_DSP_LEVEL2_3_MENU_1 */
    /*24*/{ _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},          /*  _MN_DSP_LEVEL2_3_MENU_2 */
    /*25*/{ _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},          /*  _MN_DSP_LEVEL2_3_MENU_3 */
    /*26*/{ _MN_DSP_LEVEL3_3_MENU_4, _MN_DSP_LEVEL2_3_MENU_3,  _MN_DSP_LEVEL2_3_MENU_5,  _MN_DSP_LEVEL2MENU_3, Level2_3Menu_4Enter,  Level2_3Menu_4Do,   Level2_3Menu_4Exit},          /*  _MN_DSP_LEVEL2_3_MENU_4 */
    /*27*/{ _MN_DSP_LEVEL3_3_MENU_5, _MN_DSP_LEVEL2_3_MENU_4,  _MN_DSP_LEVEL2_3_MENU_6,  _MN_DSP_LEVEL2MENU_3, Level2_3Menu_5Enter,  Level2_3Menu_5Do,   Level2_3Menu_5Exit},         /*  _MN_DSP_LEVEL2_3_MENU_5 */
    /*28*/{ _MN_DSP_LEVEL3_3_MENU_6, _MN_DSP_LEVEL2_3_MENU_5,  _MN_DSP_LEVEL2_3_MENU_7,  _MN_DSP_LEVEL2MENU_3, Level2_3Menu_6Enter,  Level2_3Menu_6Do,   Level2_3Menu_6Exit},          /*  _MN_DSP_LEVEL2_3_MENU_6 */
hu's avatar
hu committed
54
    /*29*/{ _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},          /*  _MN_DSP_LEVEL2_3_MENU_7 */
hu's avatar
hu committed
55 56 57 58

    /*31*/{ _MN_DSP_LEVEL3_4_MENU_1, _MN_IDX_NULL,             _MN_DSP_LEVEL2_4_MENU_2,  _MN_DSP_LEVEL2MENU_4, Level2_4Menu_1Enter,  Level2_4Menu_1Do,   Level2_4Menu_1Exit},           /* _MN_DSP_LEVEL2_4_MENU_1 */
    /*32*/{ _MN_DSP_LEVEL3_4_MENU_2, _MN_DSP_LEVEL2_4_MENU_1,  _MN_DSP_LEVEL2_4_MENU_3,  _MN_DSP_LEVEL2MENU_4, Level2_4Menu_2Enter,  Level2_4Menu_2Do,   Level2_4Menu_2Exit},           /* _MN_DSP_LEVEL2_4_MENU_2 */
    /*33*/{ _MN_DSP_LEVEL3_4_MENU_3, _MN_DSP_LEVEL2_4_MENU_2,  _MN_DSP_LEVEL2_4_MENU_4,  _MN_DSP_LEVEL2MENU_4, Level2_4Menu_3Enter,  Level2_4Menu_3Do,   Level2_4Menu_3Exit},           /* _MN_DSP_LEVEL2_4_MENU_3 */
hu's avatar
hu committed
59
    /*34*/{ _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},          /* _MN_DSP_LEVEL2_4_MENU_4 */
hu's avatar
hu committed
60 61 62 63 64 65 66
    /*35*/{ _MN_DSP_LEVEL3_4_MENU_5, _MN_DSP_LEVEL2_4_MENU_4,  _MN_IDX_NULL,             _MN_DSP_LEVEL2MENU_4, Level2_4Menu_5Enter,  Level2_4Menu_5Do,   Level2_4Menu_5Exit},           /* _MN_DSP_LEVEL2_4_MENU_5 */

    /*36*/{ _MN_IDX_NULL,            _MN_IDX_NULL,             _MN_DSP_LEVEL2_5_MENU_2,  _MN_DSP_LEVEL2MENU_5, Level2_5Menu_1Enter,  Level2_5Menu_1Do,   Level2_5Menu_1Exit},           /* _MN_DSP_LEVEL2_5_MENU_1 */
    /*37*/{ _MN_IDX_NULL,            _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},           /* _MN_DSP_LEVEL2_5_MENU_2 */
    /*38*/{ _MN_IDX_NULL,            _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},           /* _MN_DSP_LEVEL2_5_MENU_3 */
    /*39*/{ _MN_IDX_NULL,            _MN_DSP_LEVEL2_5_MENU_3,  _MN_IDX_NULL,             _MN_DSP_LEVEL2MENU_5, Level2_5Menu_4Enter,  Level2_5Menu_4Do,   Level2_5Menu_4Exit},           /* _MN_DSP_LEVEL2_5_MENU_4 */

hu's avatar
hu committed
67 68
    /*40*/{ _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},           /* _MN_DSP_LEVEL2_6_MENU_1 */
    /*41*/{ _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},           /* _MN_DSP_LEVEL2_6_MENU_2 */
hu's avatar
hu committed
69 70

    /*三级菜单*/
hu's avatar
hu committed
71 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 104 105 106 107 108 109 110 111 112 113 114
    /*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},    //   _MN_DSP_LEVEL3_2_MENU_1
    /*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},        //   _MN_DSP_LEVEL3_2_MENU_2
    /*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},        //   _MN_DSP_LEVEL3_2_MENU_3
    /*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},        //   _MN_DSP_LEVEL3_2_MENU_4
    /*43*/{_MN_DSP_ENTER_MENU,       _MN_IDX_NULL,             _MN_IDX_NULL,           _MN_DSP_LEVEL2_2_MENU_6, Level3_2Menu_6Enter, Level3_2Menu_6Do,   Level3_2Menu_6Exit},        //   _MN_DSP_LEVEL3_2_MENU_6
    /*44*/{_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},        //   _MN_DSP_LEVEL3_2_MENU_7
    /*45*/{_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},        //   _MN_DSP_LEVEL3_2_MENU_8

    /*47*/{ _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},    //   _MN_DSP_LEVEL3_3_MENU_1
    /*48*/{ _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},        //   _MN_DSP_LEVEL3_3_MENU_2
    /*49*/{ _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},        //   _MN_DSP_LEVEL3_3_MENU_3
    /*50*/{ _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},        //   _MN_DSP_LEVEL3_3_MENU_4
    /*59*/{ _MN_DSP_LEVEL2_3_MENU_5, _MN_IDX_NULL,             _MN_IDX_NULL,           _MN_DSP_LEVEL2_3_MENU_5, Level3_3Menu_5Enter, Level3_3Menu_5Do,   Level3_3Menu_5Exit},        //   _MN_DSP_LEVEL3_3_MENU_5
    /*51*/{ _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},        //   _MN_DSP_LEVEL3_3_MENU_6
    /*52*/{ _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},        //   _MN_DSP_LEVEL3_3_MENU_7

    /*53*/{ _MN_IDX_NULL,            _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL2_4_MENU_1, Level3_4Menu_1Enter, Level3_4Menu_1Do,   Level3_4Menu_1Exit},   //   _MN_DSP_LEVEL3_4_MENU_11  ÈÕÆÚÉ趨
    /*55*/{ _MN_IDX_NULL,            _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL2_4_MENU_2, Level3_4Menu_2Enter, Level3_4Menu_2Do,   Level3_4Menu_2Exit},     //   _MN_DSP_LEVEL3_4_MENU_21  ʱ¼äÉ趨
    /*57*/{ _MN_DSP_LEVEL4_3_MENU_1, _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL2_4_MENU_3, Level3_4Menu_3Enter, Level3_4Menu_3Do,   Level3_4Menu_3Exit},        //   _MN_DSP_LEVEL3_4_MENU_3
    /*58*/{ _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}, //     _MN_DSP_LEVEL3_4_MENU_41  Ê¡ÓÍÉ趨1
    /*59*/{ _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}, //     _MN_DSP_LEVEL3_4_MENU_42  Ê¡ÓÍÉ趨2
    /*60*/{ _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}, //     _MN_DSP_LEVEL3_4_MENU_43  Ê¡ÓÍÉ趨3
    /*61*/{ _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}, //     _MN_DSP_LEVEL3_4_MENU_44  Ê¡ÓÍÉ趨4
    /*62*/{ _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}, //      _MN_DSP_LEVEL3_4_MENU_45  Ê¡ÓÍÉ趨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_5, Level3_4Menu_4Do_5, Level3_4Menu_4Exit_5}, //      _MN_DSP_LEVEL3_4_MENU_45  Ê¡ÓÍÉ趨5
    /*62*/{ _MN_DSP_LEVEL4_4_MENU_7, _MN_DSP_LEVEL3_4_MENU_46, _MN_IDX_NULL,             _MN_DSP_LEVEL2_4_MENU_4, Level3_4Menu_4Enter_5, Level3_4Menu_4Do_5, Level3_4Menu_4Exit_5}, //      _MN_DSP_LEVEL3_4_MENU_45  Ê¡ÓÍÉ趨5

    /*63*/{ _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL2_5_MENU_1, Level3_5Menu_1Enter, Level3_5Menu_1Do,   Level3_5Menu_1Exit}, //     _MN_DSP_LEVEL3_4_MENU_51  HASÉ趨  HSAµ÷Õû
    /*64*/{ _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL2_5_MENU_2, Level3_5Menu_2Enter, Level3_5Menu_2Do,   Level3_5Menu_2Exit}, //     _MN_DSP_LEVEL3_4_MENU_52  HASÉ趨  HSAÖØÖÃ
    /*65*/{ _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL2_5_MENU_3, Level3_5Menu_3Enter, Level3_5Menu_3Do,   Level3_5Menu_3Exit},        //   _MN_DSP_LEVEL3_4_MENU_6   ³µ¼ä¾àÀ뱨¾¯Òô
    /*66*/{ _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_IDX_NULL,             _MN_DSP_LEVEL2_5_MENU_4, Level3_5Menu_4Enter, Level3_5Menu_4Do,   Level3_5Menu_4Exit},        //   _MN_DSP_LEVEL3_4_MENU_7   ÓïÑÔÉ趨

    /*四级菜单*/
    /*73*/{ _MN_DSP_LEVEL3_4_MENU_3,  _MN_IDX_NULL,            _MN_IDX_NULL,        _MN_DSP_LEVEL3_4_MENU_3,  Level4_3Menu_1Enter, Level4_3Menu_1Do,    Level4_3Menu_1Exit},        //   _MN_DSP_LEVEL4_2_MENU_2
    /*74*/{ _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},        //   _MN_DSP_LEVEL4_4_MENU_1
    /*75*/{ _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},        //   _MN_DSP_LEVEL4_4_MENU_2
    /*76*/{ _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},        //   _MN_DSP_LEVEL4_4_MENU_3
    /*77*/{ _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},        //   _MN_DSP_LEVEL4_4_MENU_4
    /*78*/{ _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},        //   _MN_DSP_LEVEL4_4_MENU_5
    /*78*/{ _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},        //   _MN_DSP_LEVEL4_4_MENU_5
    /*78*/{ _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},        //   _MN_DSP_LEVEL4_4_MENU_5

    /*82*/{ _MN_IDX_NULL,             _MN_IDX_NULL,            _MN_IDX_NULL,        _MN_IDX_NULL,     Level_Enter_Menu_Enter, Level_Enter_Menu_Do, Level_Enter_Menu_Exit},           //
    /*83*/{ _MN_IDX_NULL,             _MN_IDX_NULL,            _MN_IDX_NULL,        _MN_IDX_NULL,     Level_Return_Menu_Enter, Level_Return_Menu_Do, Level_Return_Menu_Exit},    //
hu's avatar
hu committed
115 116

};
hu's avatar
hu committed
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135
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
136
        bCurMenuIDX = MenuFlag.Menu_Flag; /*记录上次位置*/
hu's avatar
hu committed
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188
        bNextMenuIDX = bCurMenuIDX;
    }
    else
    {
        ;/*do nothing*/
    }
}
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
189
{}
hu's avatar
hu committed
190 191
void Level1Menu_1Do(void)
{
hu's avatar
hu committed
192
    GUI_OftenShow_Display();
193 194
    GUI_Dynamic_DIsplay();
    GUI_AVG_FuelSpeed_Display(GUI_DISP_MODE_BLANK);
hu's avatar
hu committed
195 196 197 198 199 200
}
void Level1Menu_1Exit(void)
{}

/*主界面2 电池显示*/
void Level1Menu_2Enter(void)
hu's avatar
hu committed
201
{}
hu's avatar
hu committed
202 203
void Level1Menu_2Do(void)
{
204 205 206
    GUI_OftenShow_Display();
    GUI_Dynamic_DIsplay();
    GUI_Battery_Display_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
207 208 209
}
void Level1Menu_2Exit(void)
{}
hu's avatar
hu committed
210

hu's avatar
hu committed
211 212
/*主界面3 DPD*/
void Level1Menu_3Enter(void)
hu's avatar
hu committed
213
{}
hu's avatar
hu committed
214 215
void Level1Menu_3Do(void)
{
216 217 218
    GUI_OftenShow_Display();
    GUI_Dynamic_DIsplay();
    GUI_DPD_Display_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
219 220 221 222 223 224
}
void Level1Menu_3Exit(void)
{}

/*主界面4 油温时间*/
void Level1Menu_4Enter(void)
hu's avatar
hu committed
225
{}
hu's avatar
hu committed
226 227
void Level1Menu_4Do(void)
{
228 229 230
    GUI_OftenShow_Display();
    GUI_Dynamic_DIsplay();
    GUI_Time_OilTemp_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
231 232 233 234 235 236
}
void Level1Menu_4Exit(void)
{}

/*主界面5 万年历*/
void Level1Menu_5Enter(void)
hu's avatar
hu committed
237
{}
hu's avatar
hu committed
238 239
void Level1Menu_5Do(void)
{
240 241 242
    GUI_OftenShow_Display();
    GUI_Dynamic_DIsplay();
    GUI_Year_Month_Data_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
243 244 245 246 247 248
}
void Level1Menu_5Exit(void)
{}

/*主界面6  空白*/
void Level1Menu_6Enter(void)
hu's avatar
hu committed
249
{}
hu's avatar
hu committed
250 251
void Level1Menu_6Do(void)
{
hu's avatar
hu committed
252 253 254
    GUI_OftenShow_Display();
    GUI_Dynamic_DIsplay();
    GUI_block_NULL_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
255 256 257 258 259 260
}
void Level1Menu_6Exit(void)
{}

/*主界面 报警界面*/
void LevelPopup_Enter(void)
hu's avatar
hu committed
261
{}
hu's avatar
hu committed
262 263
void LevelPopup_Do(void)
{
hu's avatar
hu committed
264 265
    GUI_OftenShow_Display();
    GUI_Dynamic_DIsplay();
hu's avatar
hu committed
266 267
}
void LevelPopup_Exit(void)
268 269
{}

hu's avatar
hu committed
270 271 272
/*----MENU----*/
/*二级菜单 故障码*/
void Level2Menu_1Enter(void)
hu's avatar
hu committed
273
{}
hu's avatar
hu committed
274 275
void Level2Menu_1Do(void)
{
hu's avatar
hu committed
276
    GUI_OftenShow_Display();
hu's avatar
hu committed
277
    GUI_BG_Menu_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
278
    GUI_BG_Menu1_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
279 280 281
}
void Level2Menu_1Exit(void)
{}
hu's avatar
hu committed
282

hu's avatar
hu committed
283 284
/*二级菜单 维修通知*/
void Level2Menu_2Enter(void)
hu's avatar
hu committed
285
{}
hu's avatar
hu committed
286 287
void Level2Menu_2Do(void)
{
hu's avatar
hu committed
288
    GUI_OftenShow_Display();
hu's avatar
hu committed
289
    GUI_BG_Menu_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
290
    GUI_BG_Menu2_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
291 292 293
}
void Level2Menu_2Exit(void)
{}
hu's avatar
hu committed
294

hu's avatar
hu committed
295 296
/*二级菜单 维修通知设定*/
void Level2Menu_3Enter(void)
hu's avatar
hu committed
297
{}
hu's avatar
hu committed
298 299
void Level2Menu_3Do(void)
{
hu's avatar
hu committed
300
    GUI_OftenShow_Display();
hu's avatar
hu committed
301
    GUI_BG_Menu_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
302
    GUI_BG_Menu3_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
303 304 305
}
void Level2Menu_3Exit(void)
{}
hu's avatar
hu committed
306

hu's avatar
hu committed
307 308
/*二级菜单 用户设定*/
void Level2Menu_4Enter(void)
hu's avatar
hu committed
309
{}
hu's avatar
hu committed
310 311
void Level2Menu_4Do(void)
{
hu's avatar
hu committed
312
    GUI_OftenShow_Display();
hu's avatar
hu committed
313
    GUI_BG_Menu_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
314
    GUI_BG_Menu4_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
315 316 317
}
void Level2Menu_4Exit(void)
{}
hu's avatar
hu committed
318

hu's avatar
hu committed
319
/*二级界面 系统演示*/
hu's avatar
hu committed
320
void Level2Menu_5Enter(void)
hu's avatar
hu committed
321
{}
hu's avatar
hu committed
322 323
void Level2Menu_5Do(void)
{
hu's avatar
hu committed
324
    GUI_OftenShow_Display();
hu's avatar
hu committed
325
    GUI_BG_Menu_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
326
    GUI_BG_Menu5_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
327 328 329
}
void Level2Menu_5Exit(void)
{}
hu's avatar
hu committed
330

hu's avatar
hu committed
331
/*二级界面 胎压显示*/
hu's avatar
hu committed
332
void Level2Menu_6Enter(void)
hu's avatar
hu committed
333
{}
hu's avatar
hu committed
334 335
void Level2Menu_6Do(void)
{
hu's avatar
hu committed
336
    GUI_OftenShow_Display();
hu's avatar
hu committed
337
    GUI_BG_Menu_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
338
    GUI_BG_Menu6_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
339 340 341
}
void Level2Menu_6Exit(void)
{}
hu's avatar
hu committed
342 343

/*----二级菜单----故障代码----子菜单系列*/
hu's avatar
hu committed
344 345
/*发动机故障*/
void Level2_1Menu_1Enter(void)
hu's avatar
hu committed
346
{}
hu's avatar
hu committed
347 348
void Level2_1Menu_1Do(void)
{
hu's avatar
hu committed
349
    GUI_OftenShow_Display();
hu's avatar
hu committed
350 351
    GUI_BG_Errot_Display(GUI_DISP_MODE_NORMAL);

hu's avatar
hu committed
352 353 354
}
void Level2_1Menu_1Exit(void)
{}
355

hu's avatar
hu committed
356 357 358
/*----二级菜单----保养通知----子菜单系列*/
/*发动机油滤清器*/
void Level2_2Menu_1Enter(void)
hu's avatar
hu committed
359
{}
hu's avatar
hu committed
360 361 362 363 364 365 366 367
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
368

hu's avatar
hu committed
369 370
/*燃油滤清器*/
void Level2_2Menu_2Enter(void)
hu's avatar
hu committed
371
{}
hu's avatar
hu committed
372 373 374 375 376 377 378 379
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
380

hu's avatar
hu committed
381 382
/*变速箱油*/
void Level2_2Menu_3Enter(void)
hu's avatar
hu committed
383
{}
hu's avatar
hu committed
384 385 386 387 388 389 390 391
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
392

hu's avatar
hu committed
393 394
/*差速器油*/
void Level2_2Menu_4Enter(void)
hu's avatar
hu committed
395
{}
hu's avatar
hu committed
396 397 398 399 400 401 402 403
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
404

hu's avatar
hu committed
405 406
/*空气干燥剂*/
void Level2_2Menu_6Enter(void)
hu's avatar
hu committed
407
{}
hu's avatar
hu committed
408 409 410 411 412 413 414 415
void Level2_2Menu_6Do(void)
{
    GUI_OftenShow_Display();
    GUI_BG_Rep_Menu_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_RepMenu6_Display(GUI_DISP_MODE_NORMAL);
}
void Level2_2Menu_6Exit(void)
{}
hu's avatar
hu committed
416

hu's avatar
hu committed
417 418
/*动力转向油*/
void Level2_2Menu_7Enter(void)
hu's avatar
hu committed
419
{}
hu's avatar
hu committed
420 421 422 423 424 425 426 427
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
428

hu's avatar
hu committed
429 430
/*轮胎*/
void Level2_2Menu_8Enter(void)
hu's avatar
hu committed
431
{}
hu's avatar
hu committed
432 433 434 435 436 437 438 439
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)
{}
440

hu's avatar
hu committed
441
/*----二级菜单----保养通知设定----系列子菜单*/
hu's avatar
hu committed
442
/*更换发动机滤清器*/
hu's avatar
hu committed
443
void Level2_3Menu_1Enter(void)
hu's avatar
hu committed
444
{}
hu's avatar
hu committed
445 446 447
void Level2_3Menu_1Do(void)
{
    GUI_OftenShow_Display();
hu's avatar
hu committed
448
    GUI_BG_RepSet_Menu_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
449 450 451 452
    GUI_BG_RepSetMenu1_Display(GUI_DISP_MODE_NORMAL);
}
void Level2_3Menu_1Exit(void)
{}
hu's avatar
hu committed
453

hu's avatar
hu committed
454
/*更换燃油滤清器*/
hu's avatar
hu committed
455
void Level2_3Menu_2Enter(void)
hu's avatar
hu committed
456
{}
hu's avatar
hu committed
457 458 459
void Level2_3Menu_2Do(void)
{
    GUI_OftenShow_Display();
hu's avatar
hu committed
460
    GUI_BG_RepSet_Menu_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
461 462 463 464
    GUI_BG_RepSetMenu2_Display(GUI_DISP_MODE_NORMAL);
}
void Level2_3Menu_2Exit(void)
{}
hu's avatar
hu committed
465

hu's avatar
hu committed
466
/*更换变速箱油*/
hu's avatar
hu committed
467
void Level2_3Menu_3Enter(void)
hu's avatar
hu committed
468
{}
hu's avatar
hu committed
469 470 471
void Level2_3Menu_3Do(void)
{
    GUI_OftenShow_Display();
hu's avatar
hu committed
472
    GUI_BG_RepSet_Menu_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
473 474 475 476
    GUI_BG_RepSetMenu3_Display(GUI_DISP_MODE_NORMAL);
}
void Level2_3Menu_3Exit(void)
{}
hu's avatar
hu committed
477

hu's avatar
hu committed
478
/*更换差速器油*/
hu's avatar
hu committed
479
void Level2_3Menu_4Enter(void)
hu's avatar
hu committed
480
{}
hu's avatar
hu committed
481 482 483
void Level2_3Menu_4Do(void)
{
    GUI_OftenShow_Display();
hu's avatar
hu committed
484
    GUI_BG_RepSet_Menu_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
485 486 487 488
    GUI_BG_RepSetMenu4_Display(GUI_DISP_MODE_NORMAL);
}
void Level2_3Menu_4Exit(void)
{}
hu's avatar
hu committed
489

hu's avatar
hu committed
490 491
/*离合器油*/
void Level2_3Menu_5Enter(void)
hu's avatar
hu committed
492
{}
hu's avatar
hu committed
493 494 495
void Level2_3Menu_5Do(void)
{
    GUI_OftenShow_Display();
hu's avatar
hu committed
496
    GUI_BG_RepSet_Menu_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
497 498 499 500
    GUI_BG_RepSetMenu5_Display(GUI_DISP_MODE_NORMAL);
}
void Level2_3Menu_5Exit(void)
{}
hu's avatar
hu committed
501

hu's avatar
hu committed
502
/*更换动力转向油*/
hu's avatar
hu committed
503
void Level2_3Menu_6Enter(void)
hu's avatar
hu committed
504
{}
hu's avatar
hu committed
505 506 507
void Level2_3Menu_6Do(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_RepSetMenu6_Display(GUI_DISP_MODE_NORMAL);
}
void Level2_3Menu_6Exit(void)
{}
hu's avatar
hu committed
513

hu's avatar
hu committed
514
/*更换轮胎轮胎*/
hu's avatar
hu committed
515
void Level2_3Menu_7Enter(void)
hu's avatar
hu committed
516
{}
hu's avatar
hu committed
517 518 519
void Level2_3Menu_7Do(void)
{
    GUI_OftenShow_Display();
hu's avatar
hu committed
520
    GUI_BG_RepSet_Menu_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
521 522 523 524
    GUI_BG_RepSetMenu7_Display(GUI_DISP_MODE_NORMAL);
}
void Level2_3Menu_7Exit(void)
{}
hu's avatar
hu committed
525

hu's avatar
hu committed
526 527 528
/*----二级菜单----用户设定----系列子菜单*/
/*日期设定*/
void Level2_4Menu_1Enter(void)
hu's avatar
hu committed
529
{}
hu's avatar
hu committed
530 531
void Level2_4Menu_1Do(void)
{
hu's avatar
hu committed
532 533 534
    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
535 536 537
}
void Level2_4Menu_1Exit(void)
{}
hu's avatar
hu committed
538

hu's avatar
hu committed
539
/*时间设定*/
hu's avatar
hu committed
540
void Level2_4Menu_2Enter(void)
hu's avatar
hu committed
541
{}
hu's avatar
hu committed
542 543
void Level2_4Menu_2Do(void)
{
hu's avatar
hu committed
544 545 546
    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
547 548 549
}
void Level2_4Menu_2Exit(void)
{}
hu's avatar
hu committed
550

hu's avatar
hu committed
551
/*语言设定*/
hu's avatar
hu committed
552
void Level2_4Menu_3Enter(void)
hu's avatar
hu committed
553
{}
hu's avatar
hu committed
554 555
void Level2_4Menu_3Do(void)
{
hu's avatar
hu committed
556 557
    GUI_OftenShow_Display();
    GUI_BG_UserSet_Menu_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
558
    GUI_BG_UserSetMenu3_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
559 560 561
}
void Level2_4Menu_3Exit(void)
{}
hu's avatar
hu committed
562

hu's avatar
hu committed
563
/*设定节油驾驶建议*/
hu's avatar
hu committed
564
void Level2_4Menu_4Enter(void)
hu's avatar
hu committed
565
{}
hu's avatar
hu committed
566 567
void Level2_4Menu_4Do(void)
{
hu's avatar
hu committed
568 569
    GUI_OftenShow_Display();
    GUI_BG_UserSet_Menu_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
570
    GUI_BG_UserSetMenu4_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
571 572 573
}
void Level2_4Menu_4Exit(void)
{}
hu's avatar
hu committed
574

hu's avatar
hu committed
575
/*TPMS轮胎设定*/
hu's avatar
hu committed
576
void Level2_4Menu_5Enter(void)
hu's avatar
hu committed
577
{}
hu's avatar
hu committed
578 579
void Level2_4Menu_5Do(void)
{
hu's avatar
hu committed
580 581
    GUI_OftenShow_Display();
    GUI_BG_UserSet_Menu_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
582
    GUI_BG_UserSetMenu5_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
583 584 585
}
void Level2_4Menu_5Exit(void)
{}
hu's avatar
hu committed
586 587 588

/*LDWS 警报演示*/
void Level2_5Menu_1Enter(void)
hu's avatar
hu committed
589
{}
hu's avatar
hu committed
590
void Level2_5Menu_1Do(void)
hu's avatar
hu committed
591
{
hu's avatar
hu committed
592
    GUI_OftenShow_Display();
hu's avatar
hu committed
593 594
    GUI_BG_Demo_Menu_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_DemoMenu1_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
595
}
hu's avatar
hu committed
596
void Level2_5Menu_1Exit(void)
hu's avatar
hu committed
597
{}
hu's avatar
hu committed
598 599 600

/*AEBS第1警报演示*/
void Level2_5Menu_2Enter(void)
hu's avatar
hu committed
601
{}
hu's avatar
hu committed
602
void Level2_5Menu_2Do(void)
hu's avatar
hu committed
603
{
hu's avatar
hu committed
604 605 606
    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
607
}
hu's avatar
hu committed
608
void Level2_5Menu_2Exit(void)
hu's avatar
hu committed
609
{}
hu's avatar
hu committed
610 611 612

/*AEBS第1警报演示*/
void Level2_5Menu_3Enter(void)
hu's avatar
hu committed
613
{}
hu's avatar
hu committed
614
void Level2_5Menu_3Do(void)
hu's avatar
hu committed
615
{
hu's avatar
hu committed
616 617 618
    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
619
}
hu's avatar
hu committed
620
void Level2_5Menu_3Exit(void)
hu's avatar
hu committed
621
{}
hu's avatar
hu committed
622 623 624

/*AEBS全力制动警报演示*/
void Level2_5Menu_4Enter(void)
hu's avatar
hu committed
625
{}
hu's avatar
hu committed
626
void Level2_5Menu_4Do(void)
hu's avatar
hu committed
627
{
hu's avatar
hu committed
628 629 630
    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
631
}
hu's avatar
hu committed
632
void Level2_5Menu_4Exit(void)
hu's avatar
hu committed
633
{}
634

hu's avatar
hu committed
635 636
/*轮胎气压*/
void Level2_6Menu_1Enter(void)
hu's avatar
hu committed
637
{}
hu's avatar
hu committed
638 639 640
void Level2_6Menu_1Do(void)
{
    GUI_OftenShow_Display();
hu's avatar
hu committed
641 642
    GUI_BG_TPMS_GasPIC_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_TPMS_GasNUM_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
643 644 645 646 647 648
}
void Level2_6Menu_1Exit(void)
{}

/*轮胎温度*/
void Level2_6Menu_2Enter(void)
hu's avatar
hu committed
649
{}
hu's avatar
hu committed
650 651 652
void Level2_6Menu_2Do(void)
{
    GUI_OftenShow_Display();
hu's avatar
hu committed
653 654
    GUI_BG_TPMS_TempPIC_Display(GUI_DISP_MODE_NORMAL);
    GUI_BG_TPMS_TempNUM_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
655 656 657 658
}
void Level2_6Menu_2Exit(void)
{}

hu's avatar
hu committed
659
/*----三级菜单----保养通知----系列子菜单*/
hu's avatar
hu committed
660
void Level3_2Menu_1Enter(void)
hu's avatar
hu committed
661
{}
hu's avatar
hu committed
662 663
void Level3_2Menu_1Do(void)
{
hu's avatar
hu committed
664 665
    GUI_OftenShow_Display();
    GUI_BG_RepMenuRepSet_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
666 667
}
void Level3_2Menu_1Exit(void)
hu's avatar
hu committed
668
{}
hu's avatar
hu committed
669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760

void Level3_2Menu_2Enter(void)
{

}
void Level3_2Menu_2Do(void)
{

}
void Level3_2Menu_2Exit(void)
{

}

void Level3_2Menu_3Enter(void)
{

}
void Level3_2Menu_3Do(void)
{

}
void Level3_2Menu_3Exit(void)
{

}

void Level3_2Menu_4Enter(void)
{

}
void Level3_2Menu_4Do(void)
{

}
void Level3_2Menu_4Exit(void)
{

}

void Level3_2Menu_5Enter(void)
{

}
void Level3_2Menu_5Do(void)
{

}
void Level3_2Menu_5Exit(void)
{

}

void Level3_2Menu_6Enter(void)
{

}
void Level3_2Menu_6Do(void)
{

}
void Level3_2Menu_6Exit(void)
{

}

void Level3_2Menu_7Enter(void)
{

}
void Level3_2Menu_7Do(void)
{

}
void Level3_2Menu_7Exit(void)
{

}

void Level3_2Menu_8Enter(void)
{

}
void Level3_2Menu_8Do(void)
{

}
void Level3_2Menu_8Exit(void)
{

}

hu's avatar
hu committed
761
/*----三级菜单----保养通知设定----系列子菜单*/
hu's avatar
hu committed
762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828

void Level3_3Menu_1Enter(void)
{

}
void Level3_3Menu_1Do(void)
{

}
void Level3_3Menu_1Exit(void)
{

}

void Level3_3Menu_2Enter(void)
{

}
void Level3_3Menu_2Do(void)
{

}
void Level3_3Menu_2Exit(void)
{

}

void Level3_3Menu_3Enter(void)
{

}
void Level3_3Menu_3Do(void)
{

}
void Level3_3Menu_3Exit(void)
{

}

void Level3_3Menu_4Enter(void)
{

}
void Level3_3Menu_4Do(void)
{

}
void Level3_3Menu_4Exit(void)
{

}

void Level3_3Menu_5Enter(void)
{

}
void Level3_3Menu_5Do(void)
{

}
void Level3_3Menu_5Exit(void)
{

}

void Level3_3Menu_6Enter(void)
hu's avatar
hu committed
829
{
hu's avatar
hu committed
830

hu's avatar
hu committed
831
}
hu's avatar
hu committed
832
void Level3_3Menu_6Do(void)
hu's avatar
hu committed
833
{
hu's avatar
hu committed
834

hu's avatar
hu committed
835
}
hu's avatar
hu committed
836
void Level3_3Menu_6Exit(void)
hu's avatar
hu committed
837
{
hu's avatar
hu committed
838

hu's avatar
hu committed
839
}
840

hu's avatar
hu committed
841
void Level3_3Menu_7Enter(void)
hu's avatar
hu committed
842
{
hu's avatar
hu committed
843

hu's avatar
hu committed
844
}
hu's avatar
hu committed
845
void Level3_3Menu_7Do(void)
hu's avatar
hu committed
846
{
hu's avatar
hu committed
847

hu's avatar
hu committed
848
}
hu's avatar
hu committed
849
void Level3_3Menu_7Exit(void)
hu's avatar
hu committed
850
{
hu's avatar
hu committed
851

hu's avatar
hu committed
852 853
}

hu's avatar
hu committed
854
/*----三级菜单----用户设定----系列子选项*/
hu's avatar
hu committed
855
void Level3_4Menu_1Enter(void)
hu's avatar
hu committed
856 857 858
{

}
hu's avatar
hu committed
859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192
void Level3_4Menu_1Do(void)
{

}
void Level3_4Menu_1Exit(void)
{

}

void Level3_4Menu_2Enter(void)
{

}
void Level3_4Menu_2Do(void)
{

}
void Level3_4Menu_2Exit(void)
{

}

void Level3_4Menu_3Enter(void)
{

}
void Level3_4Menu_3Do(void)
{

}
void Level3_4Menu_3Exit(void)
{

}

void Level3_4Menu_4Enter_1(void)
{

}
void Level3_4Menu_4Do_1(void)
{

}
void Level3_4Menu_4Exit_1(void)
{

}

void Level3_4Menu_4Enter_2(void)
{

}
void Level3_4Menu_4Do_2(void)
{

}
void Level3_4Menu_4Exit_2(void)
{

}

void Level3_4Menu_4Enter_3(void)
{

}
void Level3_4Menu_4Do_3(void)
{

}
void Level3_4Menu_4Exit_3(void)
{

}

void Level3_4Menu_4Enter_4(void)
{

}
void Level3_4Menu_4Do_4(void)
{

}
void Level3_4Menu_4Exit_4(void)
{

}

void Level3_4Menu_4Enter_5(void)
{

}
void Level3_4Menu_4Do_5(void)
{

}
void Level3_4Menu_4Exit_5(void)
{

}

void Level3_4Menu_4Enter_6(void)
{

}
void Level3_4Menu_4Do_6(void)
{

}
void Level3_4Menu_4Exit_6(void)
{

}

void Level3_4Menu_4Enter_7(void)
{

}
void Level3_4Menu_4Do_7(void)
{

}
void Level3_4Menu_4Exit_7(void)
{

}

void Level3_4Menu_5Enter(void)
{

}
void Level3_4Menu_5Do(void)
{

}
void Level3_4Menu_5Exit(void)
{

}

void Level3_5Menu_1Enter(void)
{

}
void Level3_5Menu_1Do(void)
{

}
void Level3_5Menu_1Exit(void)
{

}

void Level3_5Menu_2Enter(void)
{

}
void Level3_5Menu_2Do(void)
{

}
void Level3_5Menu_2Exit(void)
{

}

void Level3_5Menu_3Enter(void)
{

}
void Level3_5Menu_3Do(void)
{

}
void Level3_5Menu_3Exit(void)
{

}

void Level3_5Menu_4Enter(void)
{

}
void Level3_5Menu_4Do(void)
{

}
void Level3_5Menu_4Exit(void)
{

}

void Level4_3Menu_1Enter(void)
{

}
void Level4_3Menu_1Do(void)
{

}
void Level4_3Menu_1Exit(void)
{

}

void Level4_4Menu_1Enter(void)
{

}
void Level4_4Menu_1Do(void)
{

}
void Level4_4Menu_1Exit(void)
{

}

void Level4_4Menu_2Enter(void)
{

}
void Level4_4Menu_2Do(void)
{

}
void Level4_4Menu_2Exit(void)
{

}

void Level4_4Menu_3Enter(void)
{

}
void Level4_4Menu_3Do(void)
{

}
void Level4_4Menu_3Exit(void)
{

}

void Level4_4Menu_4Enter(void)
{

}
void Level4_4Menu_4Do(void)
{

}
void Level4_4Menu_4Exit(void)
{

}

void Level4_4Menu_5Enter(void)
{

}
void Level4_4Menu_5Do(void)
{

}
void Level4_4Menu_5Exit(void)
{

}

void Level4_4Menu_6Enter(void)
{

}
void Level4_4Menu_6Do(void)
{

}
void Level4_4Menu_6Exit(void)
{

}

void Level4_4Menu_7Enter(void)
{

}
void Level4_4Menu_7Do(void)
{

}
void Level4_4Menu_7Exit(void)
{

}

/*Enter*/
void Level_Enter_Menu_Enter(void)
{
}
void Level_Enter_Menu_Do(void)
{
    //GUI_BG_Enter_Return_Display(0);
}
void Level_Enter_Menu_Exit(void)
{
    if (MenuFlag.Menu_Return)
    {
        State_Flag.ENTER_RETURN = 1;
        MenuFlag.Menu_Return = 0;
    }
}

/*Return*/
void Level_Return_Menu_Enter(void)
{
}
void Level_Return_Menu_Do(void)
{
    //GUI_BG_Enter_Return_Display(0);
    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;
}