GUI.c 166 KB
Newer Older
hu's avatar
hu committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#include "GUI.h"

#include "r_typedefs.h"
#include "loc_graphics.h"
#include "images.h"
#include "jcua.h"
#include "Watchdog.h"
#include "Menu.h"
#include "GUI_Interface.h"
#include "CAN_Communication_Matrix.h"
#include "Services_Mileage.h"
#include "RTE_ADC.h"
#include "GaugesInterface.h"
#include "Service_TPMS.h"
#include "DisplaySch_user.h"
#include "CD4051.h"
#include "Data_Gear.h"
#include "Maintenance.h"
#include "Data_FuelConsump.h"
#include "Common_Interface.h"
#include "System_Monitor.h"
#include "Flash_synchronizer.h"
#include "Popups.h"
#include "Data_Fuel_User.h"
hu's avatar
hu committed
25 26 27 28
#include "CAN_FUNC.h"

#define TRAPA  0u
#define TRAPB  1u
hu's avatar
hu committed
29

hu's avatar
hu committed
30 31
uint32_t HYQ_TEST = 3;

hu's avatar
hu committed
32
volatile _Display_State_Flag State_Flag;
hu's avatar
hu committed
33 34 35
_TPMS   TPMS_Matching;
_UserSet  User_set_Num;
_UserSet  User_App;
hu's avatar
hu committed
36

hu's avatar
hu committed
37 38
/*-------------------------------------------------------------------------
 * Function Name  : GUI_Display_KL15_ON_Init
hu's avatar
hu committed
39
 * Description    :
hu's avatar
hu committed
40 41 42 43 44 45 46
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : None
 --------------------------------------------------------------------------*/
void GUI_Display_KL15_ON_Init(void)
{
hu's avatar
hu committed
47
    loc_enable_mem(WET_Sprite, Calendar_Sprite);
hu's avatar
hu committed
48
    GUI_Display_Value_Init();
hu's avatar
hu committed
49
    GUI_Display_background();
hu's avatar
hu committed
50 51 52
}
/*-------------------------------------------------------------------------
 * Function Name  : GUI_Display_KL15_OFF_Init
hu's avatar
hu committed
53
 * Description    :
hu's avatar
hu committed
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : None
 --------------------------------------------------------------------------*/
void GUI_Display_KL15_OFF_Init(void)
{
    loc_Del_Sprite(WET_Sprite, Calendar_Sprite);
    loc_free_mem(WET_Sprite, Calendar_Sprite);
}

/*-------------------------------------------------------------------------
 * Function Name  : GUI_Display_background
 * Description    : 显示底图
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : None
 --------------------------------------------------------------------------*/
void GUI_Display_background(void)
{
75
    GUI_General_Display(WET_Sprite, ditu_2, GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
76
}
hu's avatar
hu committed
77 78 79 80

void GUI_Display_Value_Init(void)
{

hu's avatar
hu committed
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
    State_Flag.FState_GZM = 1u;
    State_Flag.FState_WXTZ = 2u;
    State_Flag.FState_WXSD = 2u;
    State_Flag.FState_YHSD = 2u;
    State_Flag.FState_TPMS = 2u;
    State_Flag.FState_ECO = 1u;
    State_Flag.FState_SYSYS = 1u;

    State_Flag.WXTZ_FDJY = 2u;
    State_Flag.WXTZ_RYLQY = 2u;
    State_Flag.WXTZ_BSXY = 2u;
    State_Flag.WXTZ_CSQY = 2u;
    State_Flag.WXTZ_LHQY = 1u;
    State_Flag.WXTZ_KQGZJ = 2u;
    State_Flag.WXTZ_DLZXY = 2u;
    State_Flag.WXTZ_LT = 2u;
    State_Flag.WXTZ_QDJ = 2u;

    State_Flag.WXSD_FDJY = 2u;
    State_Flag.WXSD_RYLQY = 2u;
    State_Flag.WXSD_BSXY = 2u;
    State_Flag.WXSD_CSQY = 2u;
    State_Flag.WXSD_LHQY = 1u;
    State_Flag.WXSD_KQGZJ = 2u;
    State_Flag.WXSD_DLZXY = 2u;
    State_Flag.WXSD_LT = 2u;
    State_Flag.WXSD_QDJ = 2u;

    State_Flag.USER_DATE = 2u;
    State_Flag.USER_TIME = 2u;
    State_Flag.USER_DISPLAY = 2u;
    State_Flag.USER_PROPOSAL = 2u;
    State_Flag.USER_HSA = 1u;
    State_Flag.USER_VOLUEM = 1u;
hu's avatar
hu committed
115
    State_Flag.USER_LANGUAGE = 2u;
hu's avatar
hu committed
116 117
    State_Flag.USER_COMPANY = 2u;
    State_Flag.USER_LIGHT = 2u;
hu's avatar
hu committed
118
    State_Flag.USER_SETIC = 2u;
hu's avatar
hu committed
119
    State_Flag.FState_TPMSSET = 2u;
hu's avatar
hu committed
120 121 122 123 124

    State_Flag.DEMO_LDWS = 2u;
    State_Flag.DEMO_AEBS1 = 2u;
    State_Flag.DEMO_AEBS2 = 2u;
    State_Flag.DEMO_AEBS3 = 2u;
hu's avatar
hu committed
125
}
hu's avatar
hu committed
126 127 128 129 130 131
/*-------------------------------------------------------------------------
 * Function Name  : GUI_Display_OftenShow_Group
 * Description    : 常显界面
 * Input          : None
 * Output         : None
 * Return         : None
hu's avatar
hu committed
132
 * onther         : 常显功能界面均放在此处 此处显示区域 1 2 3 8
hu's avatar
hu committed
133
 --------------------------------------------------------------------------*/
hu's avatar
hu committed
134
void GUI_OftenShow_Display(void)
hu's avatar
hu committed
135
{
hu's avatar
hu committed
136
    GUI_AC_Temp_Dispaly(GUI_DISP_MODE_BLANK);
hu's avatar
hu committed
137 138 139 140 141 142
    GUI_Time_Dispaly(GUI_DISP_MODE_NORMAL);
    GUI_Data_Dispaly(GUI_DISP_MODE_NORMAL);
    GUI_TFTTelltales_Display(GUI_DISP_MODE_NORMAL);
    GUI_WetGas_Dispaly(GUI_DISP_MODE_NORMAL);
    GUI_AdBlue_Dispaly(GUI_DISP_MODE_NORMAL);
    Gui_ODO_Display(GUI_DISP_MODE_NORMAL);
hu's avatar
hu committed
143

hu's avatar
hu committed
144 145 146 147 148 149 150 151
    if (1)
    {
        Gui_TRIPA_Display(GUI_DISP_MODE_NORMAL);
    }
    else
    {
        Gui_TRIPB_Display(GUI_DISP_MODE_NORMAL);
    }
hu's avatar
hu committed
152
}
hu's avatar
hu committed
153

hu's avatar
hu committed
154
/*-------------------------------------------------------------------------
hu's avatar
hu committed
155 156
 * Function Name  : GUI_Dynamic_DIsplay
 * Description    : 常显界面
hu's avatar
hu committed
157 158 159
 * Input          : None
 * Output         : None
 * Return         : None
hu's avatar
hu committed
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 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
 * onther         :
 --------------------------------------------------------------------------*/
void GUI_Dynamic_DIsplay(void)
{
    Gui_ADAS_Display(GUI_DISP_MODE_NORMAL);
    Gui_DrivingSupport_Display(GUI_DISP_MODE_NORMAL);
    Gui_Gear_Display(GUI_DISP_MODE_NORMAL);
}
/*-------------------------------------------------------------------------
 * Function Name  : GUI_AC_Temp_Dispaly
 * Description    : 室外温度显示
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域 8 Temp_Sprite
 --------------------------------------------------------------------------*/
void GUI_AC_Temp_Dispaly(uint8_t Mode)
{
    uint8_t AC_TEMP_value = 0u;

    AC_TEMP_value = 17u;

    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_General_Display(Temp_Sprite, CN_xiaotianqi, GUI_BLENDMODE_SRC_OVER);  /*天气图标*/
        GUI_General_Display(Temp_Sprite, CN_shiwaiwendu, GUI_BLENDMODE_SRC_OVER); /*显示文字 “ 室外温度 ”*/

        if (1u)
        {
            GUI_Translate_Display(Temp_Sprite, Nb_12_heng, 207u, 58u, GUI_BLENDMODE_SRC_OVER); /*显示 负号*/
        }
        else
        {
            GUI_Translate_Display(Temp_Sprite, SpriteSize, 207u, 58u, GUI_BLENDMODE_SRC_OVER);
        }

        /*显示 外温 的数值*/
        GUI_General_Digit_Display(Temp_Sprite, AC_TEMP_value, Nb_12_0, 2u, 1u, GUI_DISP_AC_TEMP, 48u, GUI_BLENDMODE_SRC_OVER);

        GUI_General_Display(Temp_Sprite, CN_wendudanwei, GUI_BLENDMODE_SRC_OVER); /*显示 温度单位*/
    }
    else
    {
        GUI_General_Display(Temp_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*-------------------------------------------------------------------------
 * Function Name  : GUI_Time_Dispaly
 * Description    : 时间显示
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域 8 Time_Sprite
 --------------------------------------------------------------------------*/
hu's avatar
hu committed
215
void GUI_Time_Dispaly(uint8_t Mode)
hu's avatar
hu committed
216
{
hu's avatar
hu committed
217
    uint8_t Time_Hours = 0u;
hu's avatar
hu committed
218 219 220 221 222 223
    uint8_t Time_Minutes = 0u;

    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        /*时*/
        Time_Hours = Get_RTC_HOUR();
hu's avatar
hu committed
224

hu's avatar
hu committed
225
        if (0u) /*12小时*/
hu's avatar
hu committed
226 227 228
        {
            if (Time_Hours == 0)
            {
hu's avatar
hu committed
229
                GUI_General_Digit_Display(Time_Sprite, (Time_Hours + 12u), Nb_21_0, 2u, 1u, GUI_DISP_Hours, 37, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
230 231 232
            }
            else if (Time_Hours > 12u)
            {
hu's avatar
hu committed
233
                GUI_General_Digit_Display(Time_Sprite, (Time_Hours - 12u), Nb_21_0, 2u, 1u, GUI_DISP_Hours, 37, GUI_BLENDMODE_SRC_OVER); // PM
hu's avatar
hu committed
234 235 236
            }
            else
            {
hu's avatar
hu committed
237
                GUI_General_Digit_Display(Time_Sprite, Time_Hours, Nb_21_0, 2u, 1u, GUI_DISP_Hours, 37, GUI_BLENDMODE_SRC_OVER); // AM
hu's avatar
hu committed
238 239 240 241
            }
        }
        else
        {
hu's avatar
hu committed
242
            GUI_General_Digit_Display(Time_Sprite, Time_Hours, Nb_21_0, 2u, 0u, GUI_DISP_Hours, 37, GUI_BLENDMODE_SRC_OVER); /*显示小时*/
hu's avatar
hu committed
243 244 245 246
        }

        /*分钟*/
        Time_Minutes = Get_RTC_MINUTE();
hu's avatar
hu committed
247

hu's avatar
hu committed
248
        GUI_General_Digit_Display(Time_Sprite, Time_Minutes, Nb_21_0, 2u, 0u, GUI_DISP_Minutes, 37, GUI_BLENDMODE_SRC_OVER); /*显示分钟*/
hu's avatar
hu committed
249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272

        if (FLASH_SYNC_1Hz)
        {
            GUI_Translate_Display(Time_Sprite, Nb_21_maohao, 396u, 45u, GUI_BLENDMODE_SRC_OVER); /*显示冒号*/
        }
        else
        {
            GUI_General_Display(Time_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
        }
    }
    else
    {
        GUI_General_Display(Time_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*-------------------------------------------------------------------------
 * Function Name  : GUI_Data_Dispaly
 * Description    : 日历显示
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域 8 Calendar_Sprite
 --------------------------------------------------------------------------*/
hu's avatar
hu committed
273
void GUI_Data_Dispaly(uint8_t Mode)
hu's avatar
hu committed
274
{
hu's avatar
hu committed
275 276 277 278
    uint16_t Year = 0u; /*年*/
    uint8_t Month = 0u; /*月*/
    uint8_t Date = 0u;  /*日*/
    uint8_t Week = 0u;  /*星期*/
hu's avatar
hu committed
279 280 281

    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
282
        Year = 2000 + Get_RTC_YEAR();
hu's avatar
hu committed
283
        Month = Get_RTC_MONTH();
hu's avatar
hu committed
284 285
        Date = Get_RTC_DATE();
        Week = Get_RTC_WEEK();
hu's avatar
hu committed
286 287 288 289

        GUI_Translate_Display(Calendar_Sprite, Nb_14_dian, 591u, 64u, GUI_BLENDMODE_SRC_OVER); /*显示年份后面的 “ . ”   */
        GUI_Translate_Display(Calendar_Sprite, Nb_14_dian, 642u, 64u, GUI_BLENDMODE_SRC_OVER); /*显示月份后面的 “ . ”   */

hu's avatar
hu committed
290
        GUI_General_Digit_Display(Calendar_Sprite, Year, Nb_14_0, 4u, 0u, GUI_DISP_Year, 48, GUI_BLENDMODE_SRC_OVER);   /*显示年*/
hu's avatar
hu committed
291
        GUI_General_Digit_Display(Calendar_Sprite, Month, Nb_14_0, 2u, 0u, GUI_DISP_Month, 48, GUI_BLENDMODE_SRC_OVER); /*显示月*/
hu's avatar
hu committed
292
        GUI_General_Digit_Display(Calendar_Sprite, Date, Nb_14_0, 2u, 0u, GUI_DISP_Date, 48, GUI_BLENDMODE_SRC_OVER);   /*显示日*/
hu's avatar
hu committed
293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310
        GUI_General_Display(Calendar_Sprite, GUIWedk[Week - 1u], GUI_BLENDMODE_SRC_OVER);
    }
    else
    {
        GUI_General_Display(Calendar_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*-------------------------------------------------------------------------
 * Function Name  : GUI_TFTTelltales_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_TFTTelltales_Display(uint8_t Mode)
{
hu's avatar
hu committed
311 312 313
    uint32_t Veh_SpeedLim = 0u;
    uint32_t Veh_Speed = 0u;

hu's avatar
hu committed
314 315
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
316 317 318 319 320
        Veh_Speed = Common_Get_Disp_V_Speed();
        Veh_Speed = Veh_Speed / 10u;
        Veh_SpeedLim = Get_ID_18EA0021_Sig_CruiseControl_VehicleSpeedSetup();

        if (Veh_Speed >= Veh_SpeedLim)
hu's avatar
hu committed
321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342
        {
            GUI_General_Display(WarningLight_Sprite, CN_Alarm_01, GUI_BLENDMODE_SRC_OVER);
        }
        else
        {
            GUI_General_Display(WarningLight_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
        }
    }
    else
    {
        GUI_General_Display(WarningLight_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*-------------------------------------------------------------------------
 * Function Name  : GUI_WetGas_Dispaly
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
hu's avatar
hu committed
343
void GUI_WetGas_Dispaly(uint8_t Mode)
hu's avatar
hu committed
344 345 346 347 348 349 350 351 352 353 354
{
    uint8_t current_value = 0u;

    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        current_value = HYQ_TEST;

        GUI_General_Display(WET_Sprite, CN_qiyafuhaodeng, GUI_BLENDMODE_SRC_OVER); /*气压符号灯。*/

        if (current_value <= 17u)
        {
hu's avatar
hu committed
355
            GUI_General_Display(WET_Sprite, CN_qiya, GUI_BLENDMODE_SRC_OVER); /*刷长条的气压表框。*/
hu's avatar
hu committed
356 357 358 359 360 361 362 363
        }
        else
        {
            GUI_General_Display(WET_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
        }

        switch (current_value)
        {
hu's avatar
hu committed
364
        case 0x11u:
hu's avatar
hu committed
365
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x10), 405u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
366
        case 0x10u:
hu's avatar
hu committed
367
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x0F), 405u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
368
        case 0x0Fu:
hu's avatar
hu committed
369
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x0E), 405u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
370
        case 0x0Eu:
hu's avatar
hu committed
371
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x0D), 405u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
372
        case 0x0Du:
hu's avatar
hu committed
373
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x0C), 405u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
374
        case 0x0Cu:
hu's avatar
hu committed
375
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x0B), 405u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
376
        case 0x0Bu:
hu's avatar
hu committed
377
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x0A), 405u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
378
        case 0x0Au:
hu's avatar
hu committed
379
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x09), 405u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
380
        case 0x09u:
hu's avatar
hu committed
381
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x08), 405u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
382
        case 0x08u:
hu's avatar
hu committed
383
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x07), 405u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
384
        case 0x07u:
hu's avatar
hu committed
385
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x06), 405u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
386
        case 0x06u:
hu's avatar
hu committed
387
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x05), 405u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
388
        case 0x05u:
hu's avatar
hu committed
389
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x04), 405u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
390
        case 0x04u:
hu's avatar
hu committed
391
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x03), 405u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
392
        case 0x03u:
hu's avatar
hu committed
393
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x02), 405u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
394
        case 0x02u:
hu's avatar
hu committed
395
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x01), 405u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
396
        case 0x01u:
hu's avatar
hu committed
397 398
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x00), 405u, GUI_BLENDMODE_SRC_OVER);
            break;
hu's avatar
hu committed
399
        default:
hu's avatar
hu committed
400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416
            GUI_General_Display(WET_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
            break;
        }
    }
    else
    {
        GUI_General_Display(WET_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
/*--------------------------------------------------------------------------
 * Function Name  : GUI_AdBlue_Dispaly
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
hu's avatar
hu committed
417
void GUI_AdBlue_Dispaly(uint8_t Mode)
hu's avatar
hu committed
418
{
hu's avatar
hu committed
419 420 421
    uint8_t Tank_value = 0u;
    uint8_t CanStatus = 0u;
    uint8_t Level_blinking = 0u;
hu's avatar
hu committed
422 423 424

    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
425 426 427
        if ((K_Line_Set.K_Line_LID33 == 1) || (K_Line_Set.K_Line_LID33 == 3))
        {
            CanStatus = CAN_MSG_Status(ID_CanMsg18FF2300_Msg_Count);
hu's avatar
hu committed
428

hu's avatar
hu committed
429 430 431 432 433 434 435 436
            if (CanStatus == CAN_SIG_LOST)
            {
                GUI_General_Display(AdBlue_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
            }
            else
            {
                /*指示灯*/
                Level_blinking = Get_ID_18FF2300_Sig_Level_blinking();
hu's avatar
hu committed
437

hu's avatar
hu committed
438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498
                if ((Level_blinking == 0xFFu) || (Level_blinking == 0x00u))
                {
                    GUI_General_Display(AdBlue_Sprite, CN_tianlanyefuhaodeng, GUI_BLENDMODE_SRC_OVER); /*AdBlue*/
                }
                else if (Level_blinking == 0x03u)
                {
                    if (FLASH_SYNC_3Hz == 1u)
                    {
                        GUI_General_Display(AdBlue_Sprite, CN_tianlanyefuhaodeng, GUI_BLENDMODE_SRC_OVER); /*AdBlue*/
                    }
                    else
                    {
                        GUI_General_Display(AdBlue_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
                    }
                }
                else if (Level_blinking == 0x01u)
                {
                    if (FLASH_SYNC_1Hz == 1u)
                    {
                        GUI_General_Display(AdBlue_Sprite, CN_tianlanyefuhaodeng, GUI_BLENDMODE_SRC_OVER); /*AdBlue*/
                    }
                    else
                    {
                        GUI_General_Display(AdBlue_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
                    }
                }
            }

            /*段*/
            Tank_value = Get_ID_18FF2300_Sig_Tank_Level();

            switch (Tank_value)
            {
            case 0x3Cu:
                GUI_Translate_Display(AdBlue_Sprite, CN_tianlanyezouge_01, (152u + 31u * 0x04u), 450u, GUI_BLENDMODE_SRC_OVER);

            case 0x1Cu:
                GUI_Translate_Display(AdBlue_Sprite, CN_tianlanyezouge_01, (152u + 31u * 0x03u), 450u, GUI_BLENDMODE_SRC_OVER);

            case 0x0Cu:
                GUI_Translate_Display(AdBlue_Sprite, CN_tianlanyezouge_01, (152u + 31u * 0x02u), 450u, GUI_BLENDMODE_SRC_OVER);

            case 0x04u:
                GUI_Translate_Display(AdBlue_Sprite, CN_tianlanyezouge_01, (152u + 31u * 0x01u), 450u, GUI_BLENDMODE_SRC_OVER);

            case 0x02u:
                GUI_General_Display(AdBlue_Sprite, CN_tianlanye, GUI_BLENDMODE_SRC_OVER);          /*框*/
                GUI_Translate_Display(AdBlue_Sprite, CN_tianlanyezouge_01, (152u + 31u * 0x00u), 450u, GUI_BLENDMODE_SRC_OVER);
                break;

            case 0x01u:
                GUI_General_Display(AdBlue_Sprite, CN_tianlanye, GUI_BLENDMODE_SRC_OVER);          /*框*/
                GUI_General_Display(AdBlue_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
                break;

            default:
                GUI_General_Display(AdBlue_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
                break;
            }
        }
        else
hu's avatar
hu committed
499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524
        {
            GUI_General_Display(AdBlue_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
        }
    }
    else
    {
        GUI_General_Display(AdBlue_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
 * Function Name  : Gui_TRIPA_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void Gui_TRIPA_Display(uint8_t Mode)
{
    uint16_t TRIPA_value = 0u;

    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        TRIPA_value = Data_Read_Trip(EM_TRIP_A); /*此处TRIPA_value的值应为仪表显示的值的10倍。*/

hu's avatar
hu committed
525
        GUI_General_Display(TRIP_Sprite, CN_TRIP, GUI_BLENDMODE_SRC_OVER);   /*显示文字 “ TRIP ”*/
hu's avatar
hu committed
526 527 528 529 530 531 532
        GUI_General_Display(TRIP_Sprite, CN_TRIP_A, GUI_BLENDMODE_SRC_OVER); /*显示文字 “ A ”*/

        GUI_Translate_Display(TRIP_Sprite, Nb_19_dian, 668u, 410u, GUI_BLENDMODE_SRC_OVER); /*显示 小数点*/

        /*显示 TRIP A 的数值*/
        GUI_General_Digit_Display(TRIP_Sprite, TRIPA_value, Nb_19_0, 5u, 3u, GUI_DISP_TRIPA, 389, GUI_BLENDMODE_SRC_OVER);

hu's avatar
hu committed
533
        GUI_Translate_Display(TRIP_Sprite, CN_ODO_danwei, 699u, 400u, GUI_BLENDMODE_SRC_OVER); /*显示文字 “ km ”*/
hu's avatar
hu committed
534 535 536 537 538 539 540 541 542 543 544 545 546 547 548
    }
    else
    {
        GUI_General_Display(TRIP_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

void Gui_TRIPB_Display(uint8_t Mode)
{
    uint16_t TRIPB_value = 0u;

    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        TRIPB_value = Data_Read_Trip(EM_TRIP_B); /*此处TRIPA_value的值应为仪表显示的值的10倍。*/

hu's avatar
hu committed
549
        GUI_General_Display(TRIP_Sprite, CN_TRIP, GUI_BLENDMODE_SRC_OVER);   /*显示文字 “ TRIP ”*/
hu's avatar
hu committed
550 551 552 553 554 555 556
        GUI_General_Display(TRIP_Sprite, CN_TRIP_B, GUI_BLENDMODE_SRC_OVER); /*显示文字 “ B ”*/

        GUI_Translate_Display(TRIP_Sprite, Nb_19_dian, 668u, 410u, GUI_BLENDMODE_SRC_OVER); /*显示 小数点*/

        /*显示 TRIP B 的数值*/
        GUI_General_Digit_Display(TRIP_Sprite, TRIPB_value, Nb_19_0, 5u, 3u, GUI_DISP_TRIPA, 389, GUI_BLENDMODE_SRC_OVER);

hu's avatar
hu committed
557
        GUI_Translate_Display(TRIP_Sprite, CN_ODO_danwei, 699u, 400u, GUI_BLENDMODE_SRC_OVER); /*显示文字 “ km ”*/
hu's avatar
hu committed
558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580
    }
    else
    {
        GUI_General_Display(TRIP_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
 * Function Name  : Gui_ODO_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void Gui_ODO_Display(uint8_t Mode)
{
    uint32_t ODO_value = 0u;

    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        ODO_value = (Data_ODO_Read() / 10); /*此处需将ODO函数返回值赋给变量,ODO函数在其他文件中实现。*/

hu's avatar
hu committed
581
        GUI_General_Display(ODO_Sprite, CN_ODO, GUI_BLENDMODE_SRC_OVER);                                              /*显示文/*字 “ ODO ”*/
hu's avatar
hu committed
582
        GUI_Translate_Display(ODO_Sprite, CN_ODO_danwei, 699u, 436u, GUI_BLENDMODE_SRC_OVER);                         /*显示文字 “ km ”*/
hu's avatar
hu committed
583
        GUI_General_Digit_Display(ODO_Sprite, ODO_value, Nb_19_0, 7u, 6u, GUI_DISP_ODO, 425, GUI_BLENDMODE_SRC_OVER); /*显示ODO的数值*/
hu's avatar
hu committed
584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601
    }
    else
    {
        GUI_General_Display(ODO_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
 * Function Name  : Gui_ADAS_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void Gui_ADAS_Display(uint8_t Mode)
{
    uint8_t ADAS_Value = 0u;
hu's avatar
hu committed
602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621

    uint8_t CanStatusA1 = 0u;
    uint8_t CanStatus2A = 0u;
    uint8_t CanStatusA0 = 0u;

    uint8_t Sys_Sta_A1 = 0u;
    uint8_t Sys_Sta_2A = 0u;
    uint8_t Sys_Sta_A0 = 0u;

    uint8_t AEBS_Sta_A1 = 0u;
    uint8_t AEBS_Sta_2A = 0u;
    uint8_t AEBS_Sta_A0 = 0u;

    uint8_t LDW_Sys_Sta = 0u;

    uint8_t RLDW_Sta = 0u;
    uint8_t LLDW_Sta = 0u;

    uint8_t RLDI_Sta = 0u;
    uint8_t LLDI_Sta = 0u;
hu's avatar
hu committed
622 623 624 625 626

    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        if (K_Line_Set.K_Line_LID28 == 0x01)
        {
hu's avatar
hu committed
627 628 629
            CanStatusA1  = CAN_MSG_Status(ID_CanMsg0CF02FA1_Msg_Count);
            CanStatus2A  = CAN_MSG_Status(ID_CanMsg0CF02F2A_Msg_Count);
            CanStatusA0  = CAN_MSG_Status(ID_CanMsg0CF02FA0_Msg_Count);
hu's avatar
hu committed
630

hu's avatar
hu committed
631
            if ((CanStatusA1 == CAN_SIG_LOST) && (CanStatus2A == CAN_SIG_LOST) && (CanStatusA0 == CAN_SIG_LOST))
hu's avatar
hu committed
632 633 634 635 636
            {
                GUI_General_Display(ADAS_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
            }
            else
            {
hu's avatar
hu committed
637 638 639 640 641 642 643 644
                Sys_Sta_A1 = Get_ID_CF02FA1_Sig_Advanced_Emerg_Braking_Sys_Sta();
                Sys_Sta_2A = Get_ID_CF02F2A_Sig_Advanced_Emerg_Braking_Sys_Sta();
                Sys_Sta_A0 = Get_ID_CF02FA0_Sig_Advanced_Emerg_Braking_Sys_Sta();

                AEBS_Sta_A1 = Get_ID_CF02FA1_Sig_Relevant_objected_for_AEBS();
                AEBS_Sta_2A = Get_ID_CF02F2A_Sig_Relevant_objected_for_AEBS();
                AEBS_Sta_A0 = Get_ID_CF02FA0_Sig_Relevant_objected_for_AEBS();

hu's avatar
hu committed
645 646 647 648 649 650 651 652
                /*刷文字“ADAS”:*/
                GUI_General_Display(ADAS_Sprite, CN_ADAS_wenzi, GUI_BLENDMODE_SRC_OVER);
                /*刷4个绿色的边框框角:*/
                GUI_General_Display(ADAS_Sprite, CN_jiao1, GUI_BLENDMODE_SRC_OVER);
                GUI_General_Display(ADAS_Sprite, CN_jiao2, GUI_BLENDMODE_SRC_OVER);
                GUI_General_Display(ADAS_Sprite, CN_jiao3, GUI_BLENDMODE_SRC_OVER);
                GUI_General_Display(ADAS_Sprite, CN_jiao4, GUI_BLENDMODE_SRC_OVER);

hu's avatar
hu committed
653 654 655
                if ((((Sys_Sta_A1 == 0u) || (Sys_Sta_A1 == 4u)) && (CanStatusA1 == CAN_SIG_NORMAL)) ||
                        (((Sys_Sta_2A == 0u) || (Sys_Sta_2A == 4u)) && (CanStatus2A == CAN_SIG_NORMAL)) ||
                        (((Sys_Sta_A0 == 0u) || (Sys_Sta_A0 == 4u)) && (CanStatusA0 == CAN_SIG_NORMAL)))
hu's avatar
hu committed
656 657 658 659 660 661 662
                {
                    if (FLASH_SYNC_1Hz)
                    {
                        /*车*/
                        GUI_General_Display(ADAS_Sprite, CN_che_shanshuo, GUI_BLENDMODE_SRC_OVER);
                        /*道*/
                        GUI_General_Display(ADAS_Sprite, CN_Road1_shanshuo, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
663 664
                        GUI_General_Display(ADAS_Sprite, CN_Road2_shanshuo, GUI_BLENDMODE_SRC_OVER);
                        GUI_General_Display(ADAS_Sprite, CN_Road3_shanshuo, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
665 666 667 668 669 670
                    }
                    else
                    {
                        GUI_General_Display(ADAS_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
                    }
                }
hu's avatar
hu committed
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
                else if (((Sys_Sta_A1 == 3u) && ((AEBS_Sta_A1 == 0u) || (AEBS_Sta_A1 == 2u))) ||
                         ((Sys_Sta_2A == 3u) && ((AEBS_Sta_2A == 0u) || (AEBS_Sta_2A == 2u))) ||
                         ((Sys_Sta_A0 == 3u) && ((AEBS_Sta_A0 == 0u) || (AEBS_Sta_A0 == 2u))))
                {
                    /*车*/
                    GUI_General_Display(ADAS_Sprite, CN_che_shanshuo, GUI_BLENDMODE_SRC_OVER);

                    /*道*/
                    ADAS_Value = 3u;
                    switch (ADAS_Value)
                    {
                    case 3u:
                        GUI_General_Display(ADAS_Sprite, CN_Road1, GUI_BLENDMODE_SRC_OVER);
                    case 2u:
                        GUI_General_Display(ADAS_Sprite, CN_Road2, GUI_BLENDMODE_SRC_OVER);
                    case 1u:
                        GUI_General_Display(ADAS_Sprite, CN_Road3, GUI_BLENDMODE_SRC_OVER);
                        break;
                    default:
                        GUI_General_Display(ADAS_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
                        break;
                    }
                }
                else if (((Sys_Sta_A1 == 3u) && (AEBS_Sta_A1 == 1u)) ||
                         ((Sys_Sta_2A == 3u) && (AEBS_Sta_2A == 1u)) ||
                         ((Sys_Sta_A0 == 3u) && (AEBS_Sta_A0 == 1u)))
hu's avatar
hu committed
697 698 699 700 701
                {
                    /*车*/
                    GUI_General_Display(ADAS_Sprite, CN_che, GUI_BLENDMODE_SRC_OVER);

                    /*道*/
hu's avatar
hu committed
702
                    ADAS_Value = 3u;
hu's avatar
hu committed
703 704
                    switch (ADAS_Value)
                    {
hu's avatar
hu committed
705
                    case 3u:
hu's avatar
hu committed
706
                        GUI_General_Display(ADAS_Sprite, CN_Road1, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
707 708 709
                    case 2u:
                        GUI_General_Display(ADAS_Sprite, CN_Road2, GUI_BLENDMODE_SRC_OVER);
                    case 1u:
hu's avatar
hu committed
710
                        GUI_General_Display(ADAS_Sprite, CN_Road3, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
711
                        break;
hu's avatar
hu committed
712
                    default:
hu's avatar
hu committed
713
                        GUI_General_Display(ADAS_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
714 715 716 717 718
                        break;
                    }
                }
                else
                {
hu's avatar
hu committed
719
                    GUI_General_Display(ADAS_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
720 721 722 723 724 725 726 727
                }
            }
        }
        else
        {
            GUI_General_Display(ADAS_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
        }

hu's avatar
hu committed
728
        if (K_Line_Set.K_Line_LID27 == 0x01u)
hu's avatar
hu committed
729
        {
hu's avatar
hu committed
730
            LDW_Sys_Sta = Get_ID_18FE5BE8_Sig_Lane_Departure_Warning_Sys_Sta();
hu's avatar
hu committed
731

hu's avatar
hu committed
732 733
            RLDW_Sta = Get_ID_18FE5BE8_Sig_Lane_Tracking_Status_Right_Side();
            LLDW_Sta = Get_ID_18FE5BE8_Sig_Lane_Tracking_Status_Left_Side();
hu's avatar
hu committed
734

hu's avatar
hu committed
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 761 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
            LLDI_Sta = Get_ID_10F007E8_Sig_Lane_Departure_Imminent_Left();
            RLDI_Sta = Get_ID_10F007E8_Sig_Lane_Departure_Imminent_Right();

            if (LDW_Sys_Sta == 0u)
            {
                /*左车道线*/
                if (FLASH_SYNC_1Hz == 1u)
                {
                    GUI_General_Display(ADAS_Sprite, CN_LeftRoad_shanshuo, GUI_BLENDMODE_SRC_OVER); /*虚*/
                }
                else
                {
                    GUI_General_Display(ADAS_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
                }

                /*右车道线*/
                if (FLASH_SYNC_1Hz == 1u)
                {
                    GUI_General_Display(ADAS_Sprite, CN_RightRoad_shanshuo, GUI_BLENDMODE_SRC_OVER); /*虚*/
                }
                else
                {
                    GUI_General_Display(ADAS_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
                }
            }
            else
            {
                /*左车道线*/
                if ((LDW_Sys_Sta == 3u) && (LLDW_Sta == 0u))
                {
                    GUI_General_Display(ADAS_Sprite, CN_LeftRoad_shanshuo, GUI_BLENDMODE_SRC_OVER); /*虚*/
                }
                else if ((LDW_Sys_Sta == 3u) && (LLDW_Sta == 1u))
                {
                    GUI_General_Display(ADAS_Sprite, CN_LeftRoad, GUI_BLENDMODE_SRC_OVER); /*绿*/
                }
                else if ((LDW_Sys_Sta == 5u) && (LLDI_Sta == 1u))
                {
                    if (FLASH_SYNC_2_5_Hz == 1u)
                    {
                        GUI_General_Display(ADAS_Sprite, CN_LeftRoad_1, GUI_BLENDMODE_SRC_OVER); /*黄*/
                        GUI_Translate_Display(ADAS_Sprite, CN_tanhao1, 125u, 257u, GUI_BLENDMODE_SRC_OVER);/*左叹号*/
                    }
                    else
                    {
                        GUI_General_Display(ADAS_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
                    }
                }
                else
                {
                    GUI_General_Display(ADAS_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
                }

                /*右车道线*/
                if ((LDW_Sys_Sta == 3u) && (RLDW_Sta == 0u))
                {
                    GUI_General_Display(ADAS_Sprite, CN_RightRoad_shanshuo, GUI_BLENDMODE_SRC_OVER); /*虚*/
                }
                else if ((LDW_Sys_Sta == 3u) && (RLDW_Sta == 1u))
                {
                    GUI_General_Display(ADAS_Sprite, CN_RightRoad, GUI_BLENDMODE_SRC_OVER); /*绿*/
                }
                else if ((LDW_Sys_Sta == 5u) && (RLDI_Sta == 1u))
                {
                    if (FLASH_SYNC_2_5_Hz == 1u)
                    {
                        GUI_General_Display(ADAS_Sprite, CN_RightRoad_1, GUI_BLENDMODE_SRC_OVER); /*黄*/
                        GUI_Translate_Display(ADAS_Sprite, CN_tanhao1, 339u, 257u, GUI_BLENDMODE_SRC_OVER); /*右叹号*/
                    }
                    else
                    {
                        GUI_General_Display(ADAS_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
                    }
                }
                else
                {
                    GUI_General_Display(ADAS_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
                }
            }
hu's avatar
hu committed
814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835
        }
        else
        {
            GUI_General_Display(ADAS_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
        }
    }
    else
    {
        GUI_General_Display(ADAS_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
 * Function Name  : Gui_DrivingSupport_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void Gui_DrivingSupport_Display(uint8_t Mode)
{
hu's avatar
hu committed
836 837 838
    uint8_t VariableSLD_Disp = 0u;
    uint8_t VariableSLD_Status = 0u;
    uint8_t Var_SpeedValue = 0u;
hu's avatar
hu committed
839 840 841 842

    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        /*定速巡航图标*/
hu's avatar
hu committed
843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 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
        VariableSLD_Status = Get_ID_18FF4100_Sig_Cruise_VariableSLD_Cont_Staus(); /*3-5*/
        VariableSLD_Disp = Get_ID_18FF4100_Sig_Cruise_VariableSLD_Disp();/*6-8*/

        if ((VariableSLD_Disp == 1u) && (K_Line_Set.K_Line_LID29 == 0x01))
        {
            if (VariableSLD_Status == 0u)
            {
                GUI_General_Display(Cruise_Sprite, CN_dingsuxunhang, GUI_BLENDMODE_SRC_OVER);
            }
            else if (VariableSLD_Status == 2u)
            {
                GUI_General_Display(Cruise_Sprite, CN_dingsuxunhang, GUI_BLENDMODE_SRC_OVER);
                GUI_General_Display(Cruise_Sprite, CN_dingsuxunhang_SET, GUI_BLENDMODE_SRC_OVER);
            }
            else if (VariableSLD_Status == 3u)
            {
                if (FLASH_SYNC_1Hz)
                {
                    GUI_General_Display(Cruise_Sprite, CN_dingsuxunhang_SET, GUI_BLENDMODE_SRC_OVER);
                }
                else
                {
                    GUI_General_Display(Cruise_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
                }

                GUI_General_Display(Cruise_Sprite, CN_dingsuxunhang, GUI_BLENDMODE_SRC_OVER);
            }
            else
            {
                GUI_General_Display(Cruise_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
            }
        }
        else if ((VariableSLD_Disp == 3u) && (K_Line_Set.K_Line_LID29 == 0x01) && (K_Line_Set.K_Line_LID39 == 0x01))
        {
            if (VariableSLD_Status == 0u)
            {
                GUI_General_Display(Cruise_Sprite, CN_dingsuxunhang_1, GUI_BLENDMODE_SRC_OVER);
            }
            else if (VariableSLD_Status == 1u)
            {
                GUI_General_Display(Cruise_Sprite, CN_dingsuxunhang_1, GUI_BLENDMODE_SRC_OVER);
                GUI_General_Display(Cruise_Sprite, CN_dingsuxunhang_STANDBY, GUI_BLENDMODE_SRC_OVER);
            }
            else if (VariableSLD_Status == 2u)
            {
                GUI_General_Display(Cruise_Sprite, CN_dingsuxunhang_1, GUI_BLENDMODE_SRC_OVER);
                GUI_General_Display(Cruise_Sprite, CN_dingsuxunhang_SET, GUI_BLENDMODE_SRC_OVER);
            }
            else if (VariableSLD_Status == 3u)
            {
                if (FLASH_SYNC_1Hz)
                {
                    GUI_General_Display(Cruise_Sprite, CN_dingsuxunhang_SET, GUI_BLENDMODE_SRC_OVER);
                }
                else
                {
                    GUI_General_Display(Cruise_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
                }

                GUI_General_Display(Cruise_Sprite, CN_dingsuxunhang_1, GUI_BLENDMODE_SRC_OVER);
            }
            else
            {
                GUI_General_Display(Cruise_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
            }
        }
        else
        {
            GUI_General_Display(Cruise_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
        }

        /*显示km/h,显示设定车速:*/
        Var_SpeedValue = Get_ID_18FF4100_Sig_Indicate_Lamp_Speed();
hu's avatar
hu committed
916

hu's avatar
hu committed
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
        if ((K_Line_Set.K_Line_LID29 == 0x01) || (K_Line_Set.K_Line_LID39 == 0x01))
        {
            if (Var_SpeedValue == 0u)
            {
                GUI_Translate_Display(Cruise_Sprite, Nb_21_hengxian, 429u, 104u, GUI_BLENDMODE_SRC_OVER);
                GUI_Translate_Display(Cruise_Sprite, Nb_21_hengxian, 450u, 104u, GUI_BLENDMODE_SRC_OVER);
                GUI_Translate_Display(Cruise_Sprite, Nb_21_hengxian, 471u, 104u, GUI_BLENDMODE_SRC_OVER);

                GUI_General_Display(Cruise_Sprite, CN_dingsuxunhangdanwei, GUI_BLENDMODE_SRC_OVER);
            }
            else if (Var_SpeedValue <= 250u)
            {
                /*显示文字 “ km/h ”*/
                GUI_General_Digit_Display(Cruise_Sprite, Var_SpeedValue, Nb_21_0, 3u, 2u, GUI_DISP_DrivingSupport, 104u, GUI_BLENDMODE_SRC_OVER); /*显示 定速巡航设定车速 的数值*/
                GUI_General_Display(Cruise_Sprite, CN_dingsuxunhangdanwei, GUI_BLENDMODE_SRC_OVER);
            }
            else
            {
                GUI_General_Display(Cruise_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
            }
        }
        else
        {
            GUI_General_Display(Cruise_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
        }
hu's avatar
hu committed
942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963
    }
    else
    {
        GUI_General_Display(Cruise_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
 * Function Name  : Gui_Gear_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void Gui_Gear_Display(uint8_t Mode)
{
    uint8_t Gear_Value = 0u;
    uint8_t Manouvering_Mode = 0u;
    uint8_t Transmission_Sift_Mode = 0u;
    uint8_t Current_Gear = 0u;
    uint8_t Temp = 0u;
964 965
    uint8_t Automatic_or_Manual_Mode = 0u;
    uint8_t CanStatus1 = 0u;
hu's avatar
hu committed
966 967 968

    if (Mode == GUI_DISP_MODE_NORMAL)
    {
969
        /*G1 自动挡 EOL设定为ZF变速器*/
hu's avatar
hu committed
970 971 972 973 974 975 976
        if (K_Line_Set.K_Line_LID41 == 0x13u)
        {
            Manouvering_Mode = Get_ID_18FF8503_Sig_Manouvering_mode();
            Transmission_Sift_Mode = Get_ID_18FE4A03_Sig_TransmissionSiftMode1_Indicator();
            Current_Gear = Get_ID_18F00503_Sig_Current_Gear();

            Temp = Current_Gear - 0x7Eu;
hu's avatar
hu committed
977

hu's avatar
hu committed
978 979 980 981 982 983 984
            CanStatus1 = CAN_MSG_Status(ID_CanMsg18FF8503_Msg_Count);

            if (CanStatus1 == CAN_SIG_LOST)
            {
                GUI_General_Display(Gear_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER); /*不显示*/
            }
            else if ((Current_Gear >= 0x7Eu) && (Current_Gear <= 0x89u))
hu's avatar
hu committed
985 986 987 988 989 990 991
            {
                if ((Current_Gear == 0x7Eu) && (Manouvering_Mode == 0x01u))
                {
                    GUI_General_Display(Gear_Sprite, CN_dangwei_DM, GUI_BLENDMODE_SRC_OVER);
                }
                else
                {
hu's avatar
hu committed
992
                    GUI_General_Display(Gear_Sprite, GUIGear[Temp], GUI_BLENDMODE_SRC_OVER); /*1-12*/
hu's avatar
hu committed
993 994 995 996
                }
            }
            else if (Current_Gear == 0x7Bu)
            {
hu's avatar
hu committed
997
                GUI_General_Display(Gear_Sprite, CN_dangwei_R2, GUI_BLENDMODE_SRC_OVER); /*R2*/
hu's avatar
hu committed
998 999 1000 1001 1002
            }
            else if (Current_Gear == 0x7Cu)
            {
                if (Manouvering_Mode == 0x01u)
                {
hu's avatar
hu committed
1003
                    GUI_General_Display(Gear_Sprite, CN_dangwei_RM, GUI_BLENDMODE_SRC_OVER); /*RM*/
hu's avatar
hu committed
1004 1005 1006
                }
                else
                {
hu's avatar
hu committed
1007
                    GUI_General_Display(Gear_Sprite, CN_dangwei_R1, GUI_BLENDMODE_SRC_OVER); /*R1*/
hu's avatar
hu committed
1008 1009 1010 1011 1012 1013
                }
            }
            else if (Current_Gear == 0x7Du)
            {
                if (Transmission_Sift_Mode == 0x01u)
                {
hu's avatar
hu committed
1014
                    GUI_General_Display(Gear_Sprite, CN_dangwei_NE, GUI_BLENDMODE_SRC_OVER); /*NE*/
hu's avatar
hu committed
1015 1016 1017
                }
                else
                {
hu's avatar
hu committed
1018
                    GUI_General_Display(Gear_Sprite, CN_dangwei_N, GUI_BLENDMODE_SRC_OVER); /*N*/
hu's avatar
hu committed
1019 1020 1021 1022
                }
            }
            else
            {
hu's avatar
hu committed
1023
                GUI_General_Display(Gear_Sprite, CN_dangwei_buming, GUI_BLENDMODE_SRC_OVER); /*-*/
hu's avatar
hu committed
1024 1025 1026 1027 1028 1029 1030
            }
        }
        else
        {
            GUI_General_Display(Gear_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER); /*K未配*/
        }

1031 1032 1033 1034 1035
        /*G2*/
        Automatic_or_Manual_Mode = Get_ID_18FF8503_Sig_Automatic_or_Manual_Mode();

        if (CanStatus1 == CAN_SIG_LOST)
        {
hu's avatar
hu committed
1036
            GUI_General_Display(Gear_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER); /*不显示*/
1037 1038 1039
        }
        else if (Automatic_or_Manual_Mode == 0x00u)
        {
hu's avatar
hu committed
1040 1041 1042 1043 1044
            GUI_General_Display(Gear_Sprite, CN_MANUAL, GUI_BLENDMODE_SRC_OVER); /*显示MAUNAL*/
        }
        else if (Automatic_or_Manual_Mode == 0x01u)
        {
            GUI_General_Display(Gear_Sprite, CN_MANUAL, GUI_BLENDMODE_SRC_OVER); /*显示AUTO 无图*/
1045 1046 1047
        }
        else
        {
hu's avatar
hu committed
1048
            GUI_General_Display(Gear_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER); /*不显示*/
1049
        }
hu's avatar
hu committed
1050 1051 1052 1053 1054 1055 1056
    }
    else
    {
        GUI_General_Display(Gear_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069
/*--------------------------------------------------------------------------
 * Function Name  : GUI_AVG_FuelSpeed_Display
 * Description    : 平均车速,平局油耗
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_AVG_FuelSpeed_Display(uint8_t Mode)
{
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
    }
hu's avatar
hu committed
1070
    else if (Mode == GUI_DISP_MODE_BLANK)
1071
    {
hu's avatar
hu committed
1072 1073 1074 1075
        GUI_General_Display(MultiPurpose_Sprite, CN_TRIPAB, GUI_BLENDMODE_SRC_OVER);
        GUI_General_Display(MultiPurpose_Sprite, CN_PJyouhao, GUI_BLENDMODE_SRC_OVER);
        GUI_General_Display(MultiPurpose_Sprite, CN_PJchesu, GUI_BLENDMODE_SRC_OVER);

1076 1077
        switch (0u)
        {
hu's avatar
hu committed
1078 1079 1080 1081 1082
        case TRAPA:
            GUI_General_Display(MultiPurpose_Sprite, CN_TRIPAB_A, GUI_BLENDMODE_SRC_OVER);

            GUI_Drive_Info_Avg_Speed_Display(TRAPA);
            GUI_Drive_Info_Avg_Fuel_Display(TRAPA);
1083
            break;
hu's avatar
hu committed
1084 1085 1086 1087 1088 1089

        case TRAPB:
            GUI_General_Display(MultiPurpose_Sprite, CN_TRIPAB_B, GUI_BLENDMODE_SRC_OVER);

            GUI_Drive_Info_Avg_Speed_Display(TRAPB);
            GUI_Drive_Info_Avg_Fuel_Display(TRAPB);
1090
            break;
hu's avatar
hu committed
1091

hu's avatar
hu committed
1092
        default:
1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109
            break;
        }
    }
    else
    {
        GUI_General_Display(MultiPurpose_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
 * Function Name  : GUI_Drive_Info_Avg_Speed_Display
 * Description    : 平均车速
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
hu's avatar
hu committed
1110
void GUI_Drive_Info_Avg_Speed_Display(uint16_t Speed)
1111 1112
{
    uint8_t CanStatus1 = 0u;
hu's avatar
hu committed
1113
    uint32_t Average_Speed = 0;
1114

hu's avatar
hu committed
1115
    CanStatus1 = CAN_MSG_Status(ID_CanMsg18EF1718_Msg_Count);
1116 1117 1118 1119 1120 1121 1122 1123

    if (CanStatus1 == CAN_SIG_LOST)
    {
        GUI_General_Display(MultiPurpose_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
    else
    {
        /*单位切换*/
hu's avatar
hu committed
1124
        if (1)
1125
        {
hu's avatar
hu committed
1126
            GUI_General_Display(MultiPurpose_Sprite, CN_PJchesu_kmh, GUI_BLENDMODE_SRC_OVER);/*km/H*/
1127
        }
hu's avatar
hu committed
1128
        else
1129 1130 1131
        {
            if (Speed == TRAPB)    /*Trip B*/
            {
hu's avatar
hu committed
1132
                GUI_General_Display(MultiPurpose_Sprite, CN_PJchesu_kmh, GUI_BLENDMODE_SRC_OVER); /*MPH*/
1133
            }
hu's avatar
hu committed
1134
            else                   /*Trip A ODO*/
1135
            {
hu's avatar
hu committed
1136
                GUI_General_Display(MultiPurpose_Sprite, CN_PJchesu_kmh, GUI_BLENDMODE_SRC_OVER); /*MPH*/
1137 1138
            }
        }
hu's avatar
hu committed
1139 1140 1141

        /*单位切换*/
        if (1)
1142 1143 1144
        {
            if (Speed == TRAPB)    /*Trip B*/
            {
hu's avatar
hu committed
1145 1146 1147
                Average_Speed = Common_Data_Get_TripB_Average_Speed();

                if (Average_Speed < 1000u )
1148
                {
hu's avatar
hu committed
1149
                    GUI_General_Digit_Display(MultiPurpose_Sprite, (Average_Speed / 10u), Nb_21_0, 4u, 3u, GUIBGAVGSpeedPosX, 305u, GUI_BLENDMODE_SRC_OVER);
1150 1151 1152
                }
                else
                {
hu's avatar
hu committed
1153 1154
                    GUI_Translate_Display(MultiPurpose_Sprite, Nb_21_hengxian, 667u, 305u, GUI_BLENDMODE_CUSTOM);
                    GUI_Translate_Display(MultiPurpose_Sprite, Nb_21_hengxian, 642u, 305u, GUI_BLENDMODE_CUSTOM);
1155 1156 1157 1158
                }
            }
            else
            {
hu's avatar
hu committed
1159 1160 1161
                Average_Speed = Common_Data_Get_TripA_Average_Speed();

                if (Average_Speed < 1000u )
1162
                {
hu's avatar
hu committed
1163
                    GUI_General_Digit_Display(MultiPurpose_Sprite, (Average_Speed / 10u), Nb_21_0, 4u, 3u, GUIBGAVGSpeedPosX, 305u, GUI_BLENDMODE_SRC_OVER);
1164 1165 1166
                }
                else
                {
hu's avatar
hu committed
1167 1168
                    GUI_Translate_Display(MultiPurpose_Sprite, Nb_21_hengxian, 667u, 305u, GUI_BLENDMODE_CUSTOM);
                    GUI_Translate_Display(MultiPurpose_Sprite, Nb_21_hengxian, 642u, 305u, GUI_BLENDMODE_CUSTOM);
1169
                }
hu's avatar
hu committed
1170

1171 1172
            }
        }
hu's avatar
hu committed
1173 1174 1175 1176
        else
        {
            ;
        }
1177 1178 1179 1180 1181 1182 1183 1184 1185 1186
    }
}
/*--------------------------------------------------------------------------
 * Function Name  : GUI_Drive_Info_Avg_Fuel_Display
 * Description    : 平均油耗
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
hu's avatar
hu committed
1187
void GUI_Drive_Info_Avg_Fuel_Display(uint16_t Fuel)
1188 1189
{
    uint8_t CanStatus1 = 0u;
hu's avatar
hu committed
1190
    uint32_t AVGFuel = 0u;
1191

hu's avatar
hu committed
1192
    CanStatus1 = CAN_MSG_Status(ID_CanMsg18EF1718_Msg_Count);
1193 1194 1195 1196 1197 1198 1199 1200

    if (CanStatus1 == CAN_SIG_LOST)
    {
        GUI_General_Display(MultiPurpose_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
    else
    {
        /*单位切换*/
hu's avatar
hu committed
1201 1202 1203 1204
        if (1)
        {
            GUI_General_Display(MultiPurpose_Sprite, CN_PJyouhao_L100km, GUI_BLENDMODE_SRC_OVER);   /*L/km*/
        }
1205 1206
        else
        {
hu's avatar
hu committed
1207 1208 1209 1210 1211 1212 1213 1214
            if (Fuel == TRAPB)    /*Trip B*/
            {
                GUI_General_Display(MultiPurpose_Sprite, CN_PJyouhao_L100km, GUI_BLENDMODE_SRC_OVER);  /*MPG*/
            }
            else                  /*Trip A ODO*/
            {
                GUI_General_Display(MultiPurpose_Sprite, CN_PJyouhao_L100km, GUI_BLENDMODE_SRC_OVER);  /*L/m*/
            }
1215 1216
        }

hu's avatar
hu committed
1217
        GUI_Translate_Display(MultiPurpose_Sprite, Nb_21_dian, 656u, 285u, GUI_BLENDMODE_CUSTOM); /*top*/
1218

hu's avatar
hu committed
1219
        if (1)
1220
        {
hu's avatar
hu committed
1221
            if (Fuel == TRAPB)   /*Trip B*/
1222
            {
hu's avatar
hu committed
1223 1224 1225
                AVGFuel = Common_Data_Get_TripB_Fuel();

                if (AVGFuel > 1000u)
1226
                {
hu's avatar
hu committed
1227
                    GUI_General_Digit_Display(MultiPurpose_Sprite, (1000000u / AVGFuel), Nb_21_0, 4u, 2u, GUIBGAVGFuelPosX, 262u, GUI_BLENDMODE_SRC_OVER);
1228 1229 1230
                }
                else
                {
hu's avatar
hu committed
1231 1232 1233
                    GUI_Translate_Display(MultiPurpose_Sprite, Nb_21_hengxian, 603u, 262u, GUI_BLENDMODE_CUSTOM);
                    GUI_Translate_Display(MultiPurpose_Sprite, Nb_21_hengxian, 628u, 262u, GUI_BLENDMODE_CUSTOM);
                    GUI_Translate_Display(MultiPurpose_Sprite, Nb_21_hengxian, 667u, 262u, GUI_BLENDMODE_CUSTOM);
1234 1235 1236 1237
                }
            }
            else
            {
hu's avatar
hu committed
1238 1239 1240
                AVGFuel = Common_Data_Get_TripA_Fuel();

                if (AVGFuel > 1000u)
1241
                {
hu's avatar
hu committed
1242
                    GUI_General_Digit_Display(MultiPurpose_Sprite, (1000000u / AVGFuel), Nb_21_0, 4u, 2u, GUIBGAVGFuelPosX, 262u, GUI_BLENDMODE_SRC_OVER);
1243 1244 1245
                }
                else
                {
hu's avatar
hu committed
1246 1247 1248
                    GUI_Translate_Display(MultiPurpose_Sprite, Nb_21_hengxian, 603u, 262u, GUI_BLENDMODE_CUSTOM);
                    GUI_Translate_Display(MultiPurpose_Sprite, Nb_21_hengxian, 628u, 262u, GUI_BLENDMODE_CUSTOM);
                    GUI_Translate_Display(MultiPurpose_Sprite, Nb_21_hengxian, 667u, 262u, GUI_BLENDMODE_CUSTOM);
1249 1250 1251 1252 1253
                }
            }
        }
        else
        {
hu's avatar
hu committed
1254
            if (Fuel == TRAPB)   /*Trip B   系数1.069*/
1255
            {
hu's avatar
hu committed
1256 1257 1258
                AVGFuel = Common_Data_Get_TripB_Fuel();

                if (AVGFuel > 1000u)
1259
                {
hu's avatar
hu committed
1260
                    GUI_General_Digit_Display(MultiPurpose_Sprite, ((1000000u / AVGFuel) * 1069u / 1000u), Nb_21_0, 4u, 2u, GUIBGAVGFuelPosX, 262u, GUI_BLENDMODE_SRC_OVER);
1261 1262 1263
                }
                else
                {
hu's avatar
hu committed
1264 1265 1266
                    GUI_Translate_Display(MultiPurpose_Sprite, Nb_21_hengxian, 603u, 262u, GUI_BLENDMODE_CUSTOM);
                    GUI_Translate_Display(MultiPurpose_Sprite, Nb_21_hengxian, 628u, 262u, GUI_BLENDMODE_CUSTOM);
                    GUI_Translate_Display(MultiPurpose_Sprite, Nb_21_hengxian, 667u, 262u, GUI_BLENDMODE_CUSTOM);
1267 1268
                }
            }
hu's avatar
hu committed
1269
            else                /*Trip A ODO */
1270
            {
hu's avatar
hu committed
1271 1272 1273
                AVGFuel = Common_Data_Get_TripA_Fuel();

                if (AVGFuel > 1000u)
1274
                {
hu's avatar
hu committed
1275
                    GUI_General_Digit_Display(MultiPurpose_Sprite, (10u / AVGFuel), Nb_21_0, 4u, 2u, GUIBGAVGFuelPosX, 262u, GUI_BLENDMODE_SRC_OVER);
1276 1277 1278
                }
                else
                {
hu's avatar
hu committed
1279 1280 1281
                    GUI_Translate_Display(MultiPurpose_Sprite, Nb_21_hengxian, 603u, 262u, GUI_BLENDMODE_CUSTOM);
                    GUI_Translate_Display(MultiPurpose_Sprite, Nb_21_hengxian, 628u, 262u, GUI_BLENDMODE_CUSTOM);
                    GUI_Translate_Display(MultiPurpose_Sprite, Nb_21_hengxian, 667u, 262u, GUI_BLENDMODE_CUSTOM);
1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302
                }
            }
        }
    }
}

/*--------------------------------------------------------------------------
 * Function Name  : GUI_Battery_Display_Display
 * Description    : 电池电量
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_Battery_Display_Display(uint8_t Mode)
{
    uint8_t current_value = 0u;

    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_General_Display(MultiPurpose_Sprite, CN_dianyaji_tubiao, GUI_BLENDMODE_SRC_OVER); /*电池*/
hu's avatar
hu committed
1303 1304 1305
        GUI_General_Display(MultiPurpose_Sprite, CN_dianyaji_kedu, GUI_BLENDMODE_SRC_OVER);   /*标尺*/
        GUI_General_Display(MultiPurpose_Sprite, CN_dianyaji_L, GUI_BLENDMODE_SRC_OVER);      /*L*/
        GUI_General_Display(MultiPurpose_Sprite, CN_dianyaji_H, GUI_BLENDMODE_SRC_OVER);      /*H*/
1306 1307 1308 1309

        current_value = HYQ_TEST;
        switch (current_value)
        {
hu's avatar
hu committed
1310
        case 0x0Du:
hu's avatar
hu committed
1311
            GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_white, (536 + 17u * 0x0Cu), 276u, GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
1312
        case 0x0Cu:
hu's avatar
hu committed
1313
            GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_white, (536 + 17u * 0x0Bu), 276u, GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
1314
        case 0x0Bu:
hu's avatar
hu committed
1315
            GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_white, (536 + 17u * 0x0Au), 276u, GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
1316
        case 0x0Au:
hu's avatar
hu committed
1317
            GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_white, (536 + 17u * 0x09u), 276u, GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
1318
        case 0x09u:
hu's avatar
hu committed
1319
            GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_white, (536 + 17u * 0x08u), 276u, GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
1320
        case 0x08u:
hu's avatar
hu committed
1321
            GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_white, (536 + 17u * 0x07u), 276u, GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
1322
        case 0x07u:
hu's avatar
hu committed
1323
            GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_white, (536 + 17u * 0x06u), 276u, GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
1324
        case 0x06u:
hu's avatar
hu committed
1325
            GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_white, (536 + 17u * 0x05u), 276u, GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
1326
        case 0x05u:
hu's avatar
hu committed
1327
            GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_white, (536 + 17u * 0x04u), 276u, GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
1328
        case 0x04u:
hu's avatar
hu committed
1329
            GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_red, (536 + 17u * 0x03u), 276u, GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
1330
        case 0x03u:
hu's avatar
hu committed
1331
            GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_red, (536 + 17u * 0x02u), 276u, GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
1332
        case 0x02u:
hu's avatar
hu committed
1333
            GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_red, (536 + 17u * 0x01u), 276u, GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
1334
        case 0x01u:
hu's avatar
hu committed
1335
            GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_red, (536 + 17u * 0x00u), 276u, GUI_BLENDMODE_CUSTOM);
1336
            break;
hu's avatar
hu committed
1337
        default:
1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358
            GUI_General_Display(MultiPurpose_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
            break;
        }
    }
    else
    {
        GUI_General_Display(MultiPurpose_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
 * Function Name  : GUI_DPD_Display_Display
 * Description    : DPD
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_DPD_Display_Display(uint8_t Mode)
{
    uint16_t value = 0u;
hu's avatar
hu committed
1359

1360 1361 1362 1363
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        if ((K_Line_Set.K_Line_LID33 == 0x00u) || (K_Line_Set.K_Line_LID33 == 0x01u))
        {
hu's avatar
hu committed
1364 1365 1366
            value = Get_ID_18FED900_Sig_DPF_storage();
            value = value * 20u / 5u;
            //Get_ID_18FED900_Sig_DPF_Regeneration_Status();/*8 4-5*/
1367 1368 1369 1370 1371 1372 1373 1374
            if (1)
            {
                GUI_General_Display(MultiPurpose_Sprite, CN_DPD_duijiliang, GUI_BLENDMODE_SRC_OVER); /*DPD堆积绿*/
            }
            else
            {
                GUI_General_Display(MultiPurpose_Sprite, CN_DPD_zaishengjindu, GUI_BLENDMODE_SRC_OVER); /*DPD再生黄*/
            }
hu's avatar
hu committed
1375

1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413
            if ((value >= 0u) && (value <= 100u))
            {
                GUI_General_Display(MultiPurpose_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
            }
            else if ((value > 100u) && (value <= 200u))
            {
                GUI_General_Display(MultiPurpose_Sprite, CN_DPD_zouge1, GUI_BLENDMODE_SRC_OVER);
            }
            else if ((value > 200u) && (value <= 300u))
            {
                GUI_General_Display(MultiPurpose_Sprite, CN_DPD_zouge1, GUI_BLENDMODE_SRC_OVER);
                GUI_General_Display(MultiPurpose_Sprite, CN_DPD_zouge2, GUI_BLENDMODE_SRC_OVER);
            }
            else if ((value > 300u) && (value <= 450u))
            {
                GUI_General_Display(MultiPurpose_Sprite, CN_DPD_zouge1, GUI_BLENDMODE_SRC_OVER);
                GUI_General_Display(MultiPurpose_Sprite, CN_DPD_zouge2, GUI_BLENDMODE_SRC_OVER);
                GUI_General_Display(MultiPurpose_Sprite, CN_DPD_zouge3, GUI_BLENDMODE_SRC_OVER);
            }
            else if ((value > 450u) && (value <= 600u))
            {
                GUI_General_Display(MultiPurpose_Sprite, CN_DPD_zouge1, GUI_BLENDMODE_SRC_OVER);
                GUI_General_Display(MultiPurpose_Sprite, CN_DPD_zouge2, GUI_BLENDMODE_SRC_OVER);
                GUI_General_Display(MultiPurpose_Sprite, CN_DPD_zouge3, GUI_BLENDMODE_SRC_OVER);
                GUI_General_Display(MultiPurpose_Sprite, CN_DPD_zouge4, GUI_BLENDMODE_SRC_OVER);
            }
            else if ((value > 600u) && (value <= 1000u))
            {
                GUI_General_Display(MultiPurpose_Sprite, CN_DPD_zouge1, GUI_BLENDMODE_SRC_OVER);
                GUI_General_Display(MultiPurpose_Sprite, CN_DPD_zouge2, GUI_BLENDMODE_SRC_OVER);
                GUI_General_Display(MultiPurpose_Sprite, CN_DPD_zouge3, GUI_BLENDMODE_SRC_OVER);
                GUI_General_Display(MultiPurpose_Sprite, CN_DPD_zouge4, GUI_BLENDMODE_SRC_OVER);
                GUI_General_Display(MultiPurpose_Sprite, CN_DPD_zouge5, GUI_BLENDMODE_SRC_OVER);
            }
            else
            {
                GUI_General_Display(MultiPurpose_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
            }
hu's avatar
hu committed
1414 1415 1416

            GUI_General_Display(MultiPurpose_Sprite, CN_DPD_L, GUI_BLENDMODE_SRC_OVER); /*L*/
            GUI_General_Display(MultiPurpose_Sprite, CN_DPD_H, GUI_BLENDMODE_SRC_OVER); /*H*/
1417 1418 1419 1420 1421 1422 1423
        }
    }
    else
    {
        GUI_General_Display(MultiPurpose_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
hu's avatar
hu committed
1424

1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439
/*--------------------------------------------------------------------------
 * Function Name  : GUI_Time_OilTemp_Display
 * Description    : 发动机转速时间-油温
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_Time_OilTemp_Display(uint8_t Mode)
{
    uint32_t Temp = 0;
    uint8_t CanStatus1 = 0u;

    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
1440
        Temp = Get_ID_18FEE518_Sig_Total_Engine_Hours();
1441 1442 1443
        CanStatus1 = CAN_MSG_Status(ID_CanMsg18FEE518_Msg_Count);

        /*时间*/
hu's avatar
hu committed
1444 1445
        GUI_General_Display(MultiPurpose_Sprite, CN_Time_wenzi, GUI_BLENDMODE_SRC_OVER);  /*时间*/
        GUI_General_Display(MultiPurpose_Sprite, CN_Time_danwei, GUI_BLENDMODE_SRC_OVER); /*H*/
1446 1447 1448 1449 1450

        if (CanStatus1 == CAN_SIG_LOST)
        {
            GUI_General_Display(MultiPurpose_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
        }
hu's avatar
hu committed
1451
        else if (Temp <= 0xFAFFFFFFu)
1452 1453 1454 1455 1456
        {
            Temp = Temp / 20u;

            if (Temp >= 9999999u)
            {
hu's avatar
hu committed
1457
                GUI_General_Digit_Display(MultiPurpose_Sprite, 9999999u, Nb_20_0, 7u, 5u, GUI_DISP_OILTEMP, 221u, GUI_BLENDMODE_SRC_OVER); /*显示ODO的数值*/
1458 1459 1460
            }
            else
            {
hu's avatar
hu committed
1461
                GUI_General_Digit_Display(MultiPurpose_Sprite, Temp, Nb_20_0, 7u, 5u, GUI_DISP_OILTEMP, 221u, GUI_BLENDMODE_SRC_OVER); /*显示ODO的数值*/
1462 1463
            }

hu's avatar
hu committed
1464
            GUI_Translate_Display(MultiPurpose_Sprite, Nb_20_dian, 719u, 241u, GUI_BLENDMODE_CUSTOM); /*点*/
1465 1466 1467 1468 1469 1470 1471 1472 1473 1474
        }
        else
        {
            GUI_Translate_Display(MultiPurpose_Sprite, Nb_20_heng, 592u, 232u, GUI_BLENDMODE_CUSTOM);
            GUI_Translate_Display(MultiPurpose_Sprite, Nb_20_heng, 613u, 232u, GUI_BLENDMODE_CUSTOM);
            GUI_Translate_Display(MultiPurpose_Sprite, Nb_20_heng, 634u, 232u, GUI_BLENDMODE_CUSTOM);
            GUI_Translate_Display(MultiPurpose_Sprite, Nb_20_heng, 655u, 232u, GUI_BLENDMODE_CUSTOM);
            GUI_Translate_Display(MultiPurpose_Sprite, Nb_20_heng, 676u, 232u, GUI_BLENDMODE_CUSTOM);
            GUI_Translate_Display(MultiPurpose_Sprite, Nb_20_heng, 697u, 232u, GUI_BLENDMODE_CUSTOM);
            GUI_Translate_Display(MultiPurpose_Sprite, Nb_20_heng, 729u, 232u, GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
1475
            GUI_Translate_Display(MultiPurpose_Sprite, Nb_20_dian, 719u, 241u, GUI_BLENDMODE_CUSTOM); /*点*/
1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512
        }
    }
    else
    {
        GUI_General_Display(MultiPurpose_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
 * Function Name  : GUI_Time_OilTemp_OFF_Display
 * Description    : OFF-发动机转速时间显示
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_Time_OilTemp_OFF_Display(uint8_t Mode)
{
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
    }
    else
    {
        GUI_General_Display(MultiPurpose_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
 * Function Name  : GUI_Year_Month_Data_Display
 * Description    : 年月日显示
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_Year_Month_Data_Display(uint8_t Mode)
{
hu's avatar
hu committed
1513
    uint8_t Time_Hours = 0u;
hu's avatar
hu committed
1514
    uint8_t Time_Minutes = 0u;
hu's avatar
hu committed
1515 1516 1517 1518
    uint8_t Month = 0u; /*月*/
    uint8_t Date = 0u;  /*日*/
    uint8_t Week = 0u;  /*星期*/
    uint16_t Year = 0u; /*年*/
hu's avatar
hu committed
1519

1520 1521
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
1522
        Year = 2000 + Get_RTC_YEAR();
hu's avatar
hu committed
1523
        Month = Get_RTC_MONTH();
hu's avatar
hu committed
1524
        Date = Get_RTC_DATE();
1525
        /*年月日*/
hu's avatar
hu committed
1526
        if (1u)
1527
        {
hu's avatar
hu committed
1528 1529 1530
            GUI_General_Display(MultiPurpose_Sprite, CN_nian, GUI_BLENDMODE_SRC_OVER); /*年*/
            GUI_General_Display(MultiPurpose_Sprite, CN_yue, GUI_BLENDMODE_SRC_OVER);  /*月*/
            GUI_General_Display(MultiPurpose_Sprite, CN_ri, GUI_BLENDMODE_SRC_OVER);   /*日*/
hu's avatar
hu committed
1531

hu's avatar
hu committed
1532 1533 1534
            GUI_General_Digit_Display(MultiPurpose_Sprite, Year, Nb_17_0, 4u, 0u, GUI_DISP_MENUYear, 243u, GUI_BLENDMODE_SRC_OVER);
            GUI_General_Digit_Display(MultiPurpose_Sprite, Month, Nb_17_0, 2u, 1u, GUI_DISP_MENUMonth, 243u, GUI_BLENDMODE_SRC_OVER);
            GUI_General_Digit_Display(MultiPurpose_Sprite, Date, Nb_17_0, 2u, 1u, GUI_DISP_MENUDate, 243u, GUI_BLENDMODE_SRC_OVER);
1535 1536
        }
        /*月日年*/
hu's avatar
hu committed
1537
        else if (0)
1538
        {
hu's avatar
hu committed
1539 1540 1541 1542 1543 1544
            GUI_General_Display(MultiPurpose_Sprite, CN_nian, GUI_BLENDMODE_SRC_OVER); /*年*/
            GUI_General_Display(MultiPurpose_Sprite, CN_yue, GUI_BLENDMODE_SRC_OVER);  /*月*/
            GUI_General_Display(MultiPurpose_Sprite, CN_ri, GUI_BLENDMODE_SRC_OVER);   /*日*/
            GUI_General_Digit_Display(MultiPurpose_Sprite, Year, Nb_17_0, 4u, 1u, GUI_DISP_MENUYear1, 243u, GUI_BLENDMODE_SRC_OVER);
            GUI_General_Digit_Display(MultiPurpose_Sprite, Month, Nb_17_0, 2u, 1u, GUI_DISP_MENUMonth1, 243u, GUI_BLENDMODE_SRC_OVER);
            GUI_General_Digit_Display(MultiPurpose_Sprite, Date, Nb_17_0, 2u, 1u, GUI_DISP_MENUDate1, 243u, GUI_BLENDMODE_SRC_OVER);
1545 1546 1547 1548
        }
        /*日月年*/
        else
        {
hu's avatar
hu committed
1549 1550 1551 1552 1553 1554
            GUI_General_Display(MultiPurpose_Sprite, CN_nian, GUI_BLENDMODE_SRC_OVER); /*年*/
            GUI_General_Display(MultiPurpose_Sprite, CN_yue, GUI_BLENDMODE_SRC_OVER);  /*月*/
            GUI_General_Display(MultiPurpose_Sprite, CN_ri, GUI_BLENDMODE_SRC_OVER);   /*日*/
            GUI_General_Digit_Display(MultiPurpose_Sprite, Year, Nb_17_0, 4u, 1u, GUI_DISP_MENUYear1, 243u, GUI_BLENDMODE_SRC_OVER);
            GUI_General_Digit_Display(MultiPurpose_Sprite, Month, Nb_17_0, 2u, 1u, GUI_DISP_MENUDate1, 243u, GUI_BLENDMODE_SRC_OVER);
            GUI_General_Digit_Display(MultiPurpose_Sprite, Date, Nb_17_0, 2u, 1u, GUI_DISP_MENUMonth1, 243u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
1555 1556
        }
        /*星期 */
hu's avatar
hu committed
1557
        Week = Get_RTC_WEEK();
hu's avatar
hu committed
1558 1559
        GUI_General_Display(MultiPurpose_Sprite, CN_kuohao, GUI_BLENDMODE_SRC_OVER); /*括号*/
        GUI_General_Display(MultiPurpose_Sprite, GUIMenuWedk[Week - 1u], GUI_BLENDMODE_CUSTOM);
1560

hu's avatar
hu committed
1561 1562
        Time_Hours = Get_RTC_HOUR();
        /*时间*/
hu's avatar
hu committed
1563
        if (0u)
hu's avatar
hu committed
1564
        {
hu's avatar
hu committed
1565
            if (Time_Hours < 12)
hu's avatar
hu committed
1566
            {
hu's avatar
hu committed
1567
                GUI_General_Display(MultiPurpose_Sprite, CN_AM, GUI_BLENDMODE_SRC_OVER); /*AM*/
hu's avatar
hu committed
1568 1569 1570
            }
            else
            {
hu's avatar
hu committed
1571
                GUI_General_Display(MultiPurpose_Sprite, CN_PM, GUI_BLENDMODE_SRC_OVER); /*PM*/
hu's avatar
hu committed
1572
            }
1573

hu's avatar
hu committed
1574
            if (Time_Hours == 0)
1575
            {
hu's avatar
hu committed
1576
                GUI_General_Digit_Display(MultiPurpose_Sprite, (Time_Hours + 12u), Nb_17_0, 2u, 1u, GUI_DISP_MENUHours, 279u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
1577 1578 1579
            }
            else if (Time_Hours > 12)
            {
hu's avatar
hu committed
1580
                GUI_General_Digit_Display(MultiPurpose_Sprite, (Time_Hours - 12u), Nb_17_0, 2u, 1u, GUI_DISP_MENUHours, 279u, GUI_BLENDMODE_SRC_OVER); /*PM*/
hu's avatar
hu committed
1581 1582 1583
            }
            else
            {
hu's avatar
hu committed
1584
                GUI_General_Digit_Display(MultiPurpose_Sprite, Time_Hours, Nb_17_0, 2u, 1u, GUI_DISP_MENUHours, 279u, GUI_BLENDMODE_SRC_OVER); /*AM*/
hu's avatar
hu committed
1585 1586 1587 1588
            }
        }
        else
        {
hu's avatar
hu committed
1589
            GUI_General_Digit_Display(MultiPurpose_Sprite, Time_Hours, Nb_17_0, 2u, 0u, GUI_DISP_MENUHours, 279u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
1590
        }
1591

hu's avatar
hu committed
1592
        Time_Minutes = Get_RTC_MINUTE();
hu's avatar
hu committed
1593
        GUI_General_Digit_Display(MultiPurpose_Sprite, Time_Minutes, Nb_17_0, 2u, 0u, GUI_DISP_MENUMinutes, 279u, GUI_BLENDMODE_SRC_OVER); /*分钟*/
hu's avatar
hu committed
1594

hu's avatar
hu committed
1595
        GUI_Translate_Display(MultiPurpose_Sprite, Nb_17_maohao, 592u, 282u, GUI_BLENDMODE_CUSTOM); /*冒号*/
hu's avatar
hu committed
1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624
    }
    else
    {
        GUI_General_Display(MultiPurpose_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
 * Function Name  : GUI_block_NULL_Display
 * Description    : 年月日显示
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_block_NULL_Display(uint8_t Mode)
{
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_Translate_Display(MultiPurpose_Sprite, Nb_12_dian, 801u, 481u, GUI_BLENDMODE_CUSTOM);
    }
    else
    {
        GUI_General_Display(MultiPurpose_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_Menu_Display
hu's avatar
hu committed
1625
 * Description    :
hu's avatar
hu committed
1626 1627 1628 1629 1630 1631 1632
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_Menu_Display(uint8_t Mode)
{
hu's avatar
hu committed
1633 1634 1635 1636
    uint8_t CanStatus1 = 0u;

    CanStatus1 = CAN_MSG_Status(ID_CanMsg0CF00400_Msg_Count);

hu's avatar
hu committed
1637 1638 1639 1640
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        /*显示*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu1_wenzi, GUI_BLENDMODE_SRC_OVER); /*menu*/
hu's avatar
hu committed
1641 1642
        GUI_General_Display(MENU_Sprite, CN_fengexian, GUI_BLENDMODE_SRC_OVER);        /*line*/
        GUI_General_Display(MENU_Sprite, CN_gundongtiao, GUI_BLENDMODE_SRC_OVER);      /*长度条*/
hu's avatar
hu committed
1643

hu's avatar
hu committed
1644
        if ((bCurMenuIDX >= _MN_DSP_LEVEL2MENU_1) && (bCurMenuIDX <= _MN_DSP_LEVEL2MENU_4))
hu's avatar
hu committed
1645
        {
hu's avatar
hu committed
1646
            if (bCurMenuIDX != _MN_DSP_LEVEL2MENU_1)
hu's avatar
hu committed
1647
            {
hu's avatar
hu committed
1648
                if (CanStatus1 == CAN_SIG_LOST) /*有故障码*/
1649
                {
hu's avatar
hu committed
1650
                    GUI_General_Display(MENU_Sprite, CN_User_Menu1_01white, GUI_BLENDMODE_SRC_OVER);
1651 1652 1653
                }
                else
                {
hu's avatar
hu committed
1654
                    GUI_General_Display(MENU_Sprite, CN_User_Menu1_01grey, GUI_BLENDMODE_SRC_OVER);
1655 1656
                }
            }
hu's avatar
hu committed
1657
            if (bCurMenuIDX != _MN_DSP_LEVEL2MENU_2)
hu's avatar
hu committed
1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675
            {
                GUI_Translate_Display(MENU_Sprite, (CN_User_Menu1_02black + State_Flag.FState_WXTZ), 225u, GUI_DISP_MENU_Y[1u], GUI_BLENDMODE_SRC_OVER);
            }
            if (bCurMenuIDX != _MN_DSP_LEVEL2MENU_3)
            {
                GUI_Translate_Display(MENU_Sprite, (CN_User_Menu1_03black + State_Flag.FState_WXSD), 225u, GUI_DISP_MENU_Y[2u], GUI_BLENDMODE_SRC_OVER);
            }
            if (bCurMenuIDX != _MN_DSP_LEVEL2MENU_4)
            {
                GUI_Translate_Display(MENU_Sprite, (CN_User_Menu1_04black + State_Flag.FState_YHSD), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
            }
        }
        else if (bCurMenuIDX == _MN_DSP_LEVEL2MENU_5)
        {
            if (bCurMenuIDX != _MN_DSP_LEVEL2MENU_2)
            {
                GUI_Translate_Display(MENU_Sprite, (CN_User_Menu1_02black + State_Flag.FState_WXTZ), 225u, GUI_DISP_MENU_Y[0u], GUI_BLENDMODE_SRC_OVER);
            }
hu's avatar
hu committed
1676
            if (bCurMenuIDX != _MN_DSP_LEVEL2MENU_3)
hu's avatar
hu committed
1677 1678 1679
            {
                GUI_Translate_Display(MENU_Sprite, (CN_User_Menu1_03black + State_Flag.FState_WXSD), 225u, GUI_DISP_MENU_Y[1u], GUI_BLENDMODE_SRC_OVER);
            }
hu's avatar
hu committed
1680
            if (bCurMenuIDX != _MN_DSP_LEVEL2MENU_4)
hu's avatar
hu committed
1681 1682 1683
            {
                GUI_Translate_Display(MENU_Sprite, (CN_User_Menu1_04black + State_Flag.FState_YHSD), 225u, GUI_DISP_MENU_Y[2u], GUI_BLENDMODE_SRC_OVER);
            }
hu's avatar
hu committed
1684
            if (bCurMenuIDX != _MN_DSP_LEVEL2MENU_5)
hu's avatar
hu committed
1685 1686 1687
            {
                GUI_Translate_Display(MENU_Sprite, (CN_User_Menu1_05black + State_Flag.FState_ECO), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
            }
1688 1689 1690
        }
        else
        {
hu's avatar
hu committed
1691
            if (bCurMenuIDX != _MN_DSP_LEVEL2MENU_3)
hu's avatar
hu committed
1692 1693 1694
            {
                GUI_Translate_Display(MENU_Sprite, (CN_User_Menu1_03black + State_Flag.FState_WXSD), 225u, GUI_DISP_MENU_Y[0u], GUI_BLENDMODE_SRC_OVER);
            }
hu's avatar
hu committed
1695
            if (bCurMenuIDX != _MN_DSP_LEVEL2MENU_4)
hu's avatar
hu committed
1696 1697 1698
            {
                GUI_Translate_Display(MENU_Sprite, (CN_User_Menu1_04black + State_Flag.FState_YHSD), 225u, GUI_DISP_MENU_Y[1u], GUI_BLENDMODE_SRC_OVER);
            }
hu's avatar
hu committed
1699
            if (bCurMenuIDX != _MN_DSP_LEVEL2MENU_5)
hu's avatar
hu committed
1700 1701 1702
            {
                GUI_Translate_Display(MENU_Sprite, (CN_User_Menu1_05black + State_Flag.FState_ECO), 225u, GUI_DISP_MENU_Y[2u], GUI_BLENDMODE_SRC_OVER);
            }
hu's avatar
hu committed
1703
            if (bCurMenuIDX != _MN_DSP_LEVEL2MENU_6)
hu's avatar
hu committed
1704 1705 1706
            {
                GUI_Translate_Display(MENU_Sprite, (CN_User_Menu1_06black + State_Flag.FState_TPMS), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
            }
1707 1708
        }
    }
hu's avatar
hu committed
1709 1710
    else
    {
hu's avatar
hu committed
1711
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
1712
    }
1713
}
hu's avatar
hu committed
1714

hu's avatar
hu committed
1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834
/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_Menu1_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_Menu1_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu1_01black + Flag), 225u, GUI_DISP_MENU_Y[0u], GUI_BLENDMODE_SRC_OVER);
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_Menu2_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_Menu2_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu1_02black + Flag), 225u, GUI_DISP_MENU_Y[1u], GUI_BLENDMODE_SRC_OVER);
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_Menu3_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_Menu3_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu1_03black + Flag), 225u, GUI_DISP_MENU_Y[2u], GUI_BLENDMODE_SRC_OVER);
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_Menu4_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_Menu4_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu1_04black + Flag), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_Menu5_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_Menu5_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu1_05black + Flag), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_Menu6_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_Menu6_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu1_06black + Flag), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
hu's avatar
hu committed
1835

hu's avatar
hu committed
1836
/*--------------------------------------------------------------------------
hu's avatar
hu committed
1837
 * Function Name  : GUI_BG_Rep_Menu_Display
hu's avatar
hu committed
1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_Rep_Menu_Display(uint8_t Mode)
{
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        /*显示*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu2_02_wenzi, GUI_BLENDMODE_SRC_OVER); /*menu*/
        GUI_General_Display(MENU_Sprite, CN_fengexian, GUI_BLENDMODE_SRC_OVER);           /*line*/
        GUI_General_Display(MENU_Sprite, CN_gundongtiao, GUI_BLENDMODE_SRC_OVER);         /*长度条*/
hu's avatar
hu committed
1852

hu's avatar
hu committed
1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891
        if (bCurMenuIDX <= _MN_DSP_LEVEL2_2_MENU_4)
        {
            if (bCurMenuIDX != _MN_DSP_LEVEL2_2_MENU_1)
            {
                GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_02_1black + State_Flag.WXTZ_FDJY), 225u, GUI_DISP_MENU_Y[0u], GUI_BLENDMODE_SRC_OVER);
            }
            if (bCurMenuIDX != _MN_DSP_LEVEL2_2_MENU_2)
            {
                GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_02_2black + State_Flag.WXTZ_RYLQY), 225u, GUI_DISP_MENU_Y[1u], GUI_BLENDMODE_SRC_OVER);
            }
            if (bCurMenuIDX != _MN_DSP_LEVEL2_2_MENU_3)
            {
                GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_02_3black + State_Flag.WXTZ_BSXY), 225u, GUI_DISP_MENU_Y[2u], GUI_BLENDMODE_SRC_OVER);
            }
            if (bCurMenuIDX != _MN_DSP_LEVEL2_2_MENU_4)
            {
                GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_02_4black + State_Flag.WXTZ_CSQY), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
            }
        }
        else if (bCurMenuIDX == _MN_DSP_LEVEL2_2_MENU_6)
        {
            GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_02_2black + State_Flag.WXTZ_RYLQY), 225u, GUI_DISP_MENU_Y[0u], GUI_BLENDMODE_SRC_OVER);
            GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_02_3black + State_Flag.WXTZ_BSXY), 225u, GUI_DISP_MENU_Y[1u], GUI_BLENDMODE_SRC_OVER);
            GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_02_4black + State_Flag.WXTZ_CSQY), 225u, GUI_DISP_MENU_Y[2u], GUI_BLENDMODE_SRC_OVER);
            if (bCurMenuIDX != _MN_DSP_LEVEL2_2_MENU_6)
            {
                GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_02_5black + State_Flag.WXTZ_KQGZJ), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
            }
        }
        else if (bCurMenuIDX == _MN_DSP_LEVEL2_2_MENU_7)
        {
            GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_02_3black + State_Flag.WXTZ_BSXY), 225u, GUI_DISP_MENU_Y[0u], GUI_BLENDMODE_SRC_OVER);
            GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_02_4black + State_Flag.WXTZ_CSQY), 225u, GUI_DISP_MENU_Y[1u], GUI_BLENDMODE_SRC_OVER);
            GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_02_5black + State_Flag.WXTZ_KQGZJ), 225u, GUI_DISP_MENU_Y[2u], GUI_BLENDMODE_SRC_OVER);
            if (bCurMenuIDX != _MN_DSP_LEVEL2_2_MENU_7)
            {
                GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_02_5black + State_Flag.WXTZ_DLZXY), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
            }
        }
hu's avatar
hu committed
1892
        else
hu's avatar
hu committed
1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907
        {
            GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_02_4black + State_Flag.WXTZ_CSQY), 225u, GUI_DISP_MENU_Y[0u], GUI_BLENDMODE_SRC_OVER);
            GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_02_5black + State_Flag.WXTZ_KQGZJ), 225u, GUI_DISP_MENU_Y[1u], GUI_BLENDMODE_SRC_OVER);
            GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_02_6black + State_Flag.WXTZ_DLZXY), 225u, GUI_DISP_MENU_Y[2u], GUI_BLENDMODE_SRC_OVER);
            if (bCurMenuIDX != _MN_DSP_LEVEL2_2_MENU_8)
            {
                GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_02_7black + State_Flag.WXTZ_LT), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
            }
        }
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
hu's avatar
hu committed
1908

hu's avatar
hu committed
1909
/*--------------------------------------------------------------------------
hu's avatar
hu committed
1910
 * Function Name  : GUI_BG_RepMenu1_Display
hu's avatar
hu committed
1911 1912 1913 1914 1915 1916 1917
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_RepMenu1_Display(uint8_t Mode)
hu's avatar
hu committed
1918
{
hu's avatar
hu committed
1919
    uint8_t Flag = 0;
hu's avatar
hu committed
1920 1921
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
1922 1923 1924 1925 1926 1927 1928 1929
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_02_1black + Flag), 225u, GUI_DISP_MENU_Y[0u], GUI_BLENDMODE_SRC_OVER);
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
/*--------------------------------------------------------------------------
hu's avatar
hu committed
1930
 * Function Name  : GUI_BG_RepMenu2_Display
hu's avatar
hu committed
1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_RepMenu2_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_02_2black + Flag), 225u, GUI_DISP_MENU_Y[1u], GUI_BLENDMODE_SRC_OVER);
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
hu's avatar
hu committed
1949

hu's avatar
hu committed
1950
/*--------------------------------------------------------------------------
hu's avatar
hu committed
1951
 * Function Name  : GUI_BG_RepMenu3_Display
hu's avatar
hu committed
1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_RepMenu3_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_02_3black + Flag), 225u, GUI_DISP_MENU_Y[2u], GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
1964 1965 1966
    }
    else
    {
hu's avatar
hu committed
1967
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
1968
    }
hu's avatar
hu committed
1969
}
hu's avatar
hu committed
1970 1971

/*--------------------------------------------------------------------------
hu's avatar
hu committed
1972
 * Function Name  : GUI_BG_RepMenu4_Display
hu's avatar
hu committed
1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_RepMenu4_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_02_4black + Flag), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
hu's avatar
hu committed
1993
 * Function Name  : GUI_BG_RepMenu5_Display
hu's avatar
hu committed
1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_RepMenu5_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
hu's avatar
hu committed
2013
 * Function Name  : GUI_BG_RepMenu6_Display
hu's avatar
hu committed
2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_RepMenu6_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_02_5black + Flag), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
hu's avatar
hu committed
2034
 * Function Name  : GUI_BG_RepMenu7_Display
hu's avatar
hu committed
2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_RepMenu7_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_02_6black + Flag), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
hu's avatar
hu committed
2055
 * Function Name  : GUI_BG_RepMenu8_Display
hu's avatar
hu committed
2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_RepMenu8_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_02_7black + Flag), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
hu's avatar
hu committed
2076
 * Function Name  : GUI_BG_RepMenu9_Display
hu's avatar
hu committed
2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_RepMenu9_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_02_8black + Flag), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

hu's avatar
hu committed
2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111
/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_RepSet_Menu_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_RepSet_Menu_Display(uint8_t Mode)
{
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        /*显示*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu2_03_wenzi, GUI_BLENDMODE_SRC_OVER); /*menu*/
        GUI_General_Display(MENU_Sprite, CN_fengexian, GUI_BLENDMODE_SRC_OVER);           /*line*/
        GUI_General_Display(MENU_Sprite, CN_gundongtiao, GUI_BLENDMODE_SRC_OVER);         /*长度条*/
hu's avatar
hu committed
2112

hu's avatar
hu committed
2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149
        if (bCurMenuIDX <= _MN_DSP_LEVEL2_3_MENU_4)
        {
            if (bCurMenuIDX != _MN_DSP_LEVEL2_3_MENU_1)
            {
                GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_03_01black + State_Flag.WXSD_FDJY), 225u, GUI_DISP_MENU_Y[0u], GUI_BLENDMODE_SRC_OVER);
            }
            if (bCurMenuIDX != _MN_DSP_LEVEL2_3_MENU_2)
            {
                GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_03_02black + State_Flag.WXSD_RYLQY), 225u, GUI_DISP_MENU_Y[1u], GUI_BLENDMODE_SRC_OVER);
            }
            if (bCurMenuIDX != _MN_DSP_LEVEL2_3_MENU_3)
            {
                GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_03_03black + State_Flag.WXSD_BSXY), 225u, GUI_DISP_MENU_Y[2u], GUI_BLENDMODE_SRC_OVER);
            }
            if (bCurMenuIDX != _MN_DSP_LEVEL2_3_MENU_4)
            {
                GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_03_04black + State_Flag.WXSD_CSQY), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
            }
        }
        else  if (bCurMenuIDX == _MN_DSP_LEVEL2_3_MENU_5)
        {
            GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_03_02black + State_Flag.WXSD_RYLQY), 225u, GUI_DISP_MENU_Y[0u], GUI_BLENDMODE_SRC_OVER);
            GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_03_03black + State_Flag.WXSD_BSXY), 225u, GUI_DISP_MENU_Y[1u], GUI_BLENDMODE_SRC_OVER);
            GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_03_04black + State_Flag.WXSD_CSQY), 225u, GUI_DISP_MENU_Y[2u], GUI_BLENDMODE_SRC_OVER);
        }
        else  if (bCurMenuIDX == _MN_DSP_LEVEL2_3_MENU_6)
        {
            GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_03_03black + State_Flag.WXSD_BSXY), 225u, GUI_DISP_MENU_Y[0u], GUI_BLENDMODE_SRC_OVER);
            GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_03_04black + State_Flag.WXSD_CSQY), 225u, GUI_DISP_MENU_Y[1u], GUI_BLENDMODE_SRC_OVER);
            GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_03_05black + State_Flag.WXSD_LHQY), 225u, GUI_DISP_MENU_Y[2u], GUI_BLENDMODE_SRC_OVER);
        }
        else  if (bCurMenuIDX == _MN_DSP_LEVEL2_3_MENU_7)
        {
            GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_03_04black + State_Flag.WXSD_CSQY), 225u, GUI_DISP_MENU_Y[0u], GUI_BLENDMODE_SRC_OVER);
            GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_03_05black + State_Flag.WXSD_LHQY), 225u, GUI_DISP_MENU_Y[1u], GUI_BLENDMODE_SRC_OVER);
            GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_03_06black + State_Flag.WXSD_KQGZJ), 225u, GUI_DISP_MENU_Y[2u], GUI_BLENDMODE_SRC_OVER);
        }
hu's avatar
hu committed
2150
        else
hu's avatar
hu committed
2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161
        {
            GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_03_05black + State_Flag.WXSD_LHQY), 225u, GUI_DISP_MENU_Y[0u], GUI_BLENDMODE_SRC_OVER);
            GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_03_06black + State_Flag.WXSD_KQGZJ), 225u, GUI_DISP_MENU_Y[1u], GUI_BLENDMODE_SRC_OVER);
            GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_03_07black + State_Flag.WXSD_DLZXY), 225u, GUI_DISP_MENU_Y[2u], GUI_BLENDMODE_SRC_OVER);
        }
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
hu's avatar
hu committed
2162 2163

/*--------------------------------------------------------------------------
hu's avatar
hu committed
2164
 * Function Name  : GUI_BG_RepSetMenu1_Display
hu's avatar
hu committed
2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_RepSetMenu1_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
2176
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_03_01black + Flag), 225u, GUI_DISP_MENU_Y[0u], GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
2177 2178 2179 2180 2181 2182 2183 2184
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
hu's avatar
hu committed
2185
 * Function Name  : GUI_BG_RepSetMenu2_Display
hu's avatar
hu committed
2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_RepSetMenu2_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
2197
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_03_02black + Flag), 225u, GUI_DISP_MENU_Y[1u], GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
2198 2199 2200 2201 2202 2203 2204 2205
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
hu's avatar
hu committed
2206
 * Function Name  : GUI_BG_RepSetMenu3_Display
hu's avatar
hu committed
2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_RepSetMenu3_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
2218
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_03_03black + Flag), 225u, GUI_DISP_MENU_Y[2u], GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
2219 2220 2221 2222 2223 2224 2225 2226
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
hu's avatar
hu committed
2227
 * Function Name  : GUI_BG_RepSetMenu4_Display
hu's avatar
hu committed
2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_RepSetMenu4_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
2239
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_03_04black + Flag), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
2240 2241 2242 2243 2244 2245 2246 2247
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
hu's avatar
hu committed
2248
 * Function Name  : GUI_BG_RepSetMenu5_Display
hu's avatar
hu committed
2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_RepSetMenu5_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
2260
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_03_04black + Flag), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
2261 2262 2263 2264 2265 2266 2267 2268
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
hu's avatar
hu committed
2269
 * Function Name  : GUI_BG_RepSetMenu6_Display
hu's avatar
hu committed
2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_RepSetMenu6_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
2281
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_03_06black + Flag), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
2282 2283 2284 2285 2286 2287 2288 2289
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
hu's avatar
hu committed
2290
 * Function Name  : GUI_BG_RepSetMenu7_Display
hu's avatar
hu committed
2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_RepSetMenu7_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
2302
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_03_07black + Flag), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
2303 2304 2305 2306 2307 2308 2309 2310
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
hu's avatar
hu committed
2311
 * Function Name  : GUI_BG_RepSetMenu8_Display
hu's avatar
hu committed
2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_RepSetMenu8_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_03_08black + Flag), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_UserSet_Menu_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_UserSet_Menu_Display(uint8_t Mode)
{
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        /*显示*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu2_04_wenzi, GUI_BLENDMODE_SRC_OVER); /*menu*/
        GUI_General_Display(MENU_Sprite, CN_fengexian, GUI_BLENDMODE_SRC_OVER);           /*line*/
        GUI_General_Display(MENU_Sprite, CN_gundongtiao, GUI_BLENDMODE_SRC_OVER);         /*长度条*/
hu's avatar
hu committed
2347

hu's avatar
hu committed
2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359
        if (bCurMenuIDX <= _MN_DSP_LEVEL2_4_MENU_4)
        {
            if (bCurMenuIDX != _MN_DSP_LEVEL2_4_MENU_1)
            {
                GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_04_1black + State_Flag.USER_DATE), 225u, GUI_DISP_MENU_Y[0u], GUI_BLENDMODE_SRC_OVER);
            }
            if (bCurMenuIDX != _MN_DSP_LEVEL2_4_MENU_2)
            {
                GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_04_2black + State_Flag.USER_TIME), 225u, GUI_DISP_MENU_Y[1u], GUI_BLENDMODE_SRC_OVER);
            }
            if (bCurMenuIDX != _MN_DSP_LEVEL2_4_MENU_3)
            {
hu's avatar
hu committed
2360
                GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_04_7black + State_Flag.USER_LANGUAGE), 225u, GUI_DISP_MENU_Y[2u], GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
2361 2362 2363 2364 2365 2366
            }
            if (bCurMenuIDX != _MN_DSP_LEVEL2_4_MENU_4)
            {
                GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_04_4black + State_Flag.USER_PROPOSAL), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
            }
        }
hu's avatar
hu committed
2367
        else
hu's avatar
hu committed
2368 2369
        {
            GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_04_2black + State_Flag.USER_TIME), 225u, GUI_DISP_MENU_Y[0u], GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
2370
            GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_04_7black + State_Flag.USER_LANGUAGE), 225u, GUI_DISP_MENU_Y[1u], GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
2371 2372
            GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_04_4black + State_Flag.USER_PROPOSAL), 225u, GUI_DISP_MENU_Y[2u], GUI_BLENDMODE_SRC_OVER);
        }
hu's avatar
hu committed
2373 2374 2375 2376 2377 2378 2379 2380
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
hu's avatar
hu committed
2381
 * Function Name  : GUI_BG_UserSetMenu1_Display
hu's avatar
hu committed
2382 2383 2384 2385 2386 2387
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
hu's avatar
hu committed
2388
void GUI_BG_UserSetMenu1_Display(uint8_t Mode)
hu's avatar
hu committed
2389 2390 2391 2392
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
2393
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_04_1black + Flag), 225u, GUI_DISP_MENU_Y[0u], GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_UserSetMenu2_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_UserSetMenu2_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
2413
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_04_2black + Flag), 225u, GUI_DISP_MENU_Y[1u], GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_UserSetMenu3_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_UserSetMenu3_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
2433
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_04_7black + Flag), 225u, GUI_DISP_MENU_Y[2u], GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_UserSetMenu4_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_UserSetMenu4_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
2453
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_04_4black + Flag), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_UserSetMenu5_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_UserSetMenu5_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
2473
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_04_10black + Flag), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_UserSetMenu6_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_UserSetMenu6_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
2493
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_04_11black + Flag), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_UserSetMenu7_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_UserSetMenu7_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
2513
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_04_7black + Flag), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
2514 2515 2516 2517 2518
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
hu's avatar
hu committed
2519 2520
}

hu's avatar
hu committed
2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665
/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_Demo_Menu_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_Demo_Menu_Display(uint8_t Mode)
{
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        /*显示*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu2_05_wenzi, GUI_BLENDMODE_SRC_OVER); /*menu*/
        GUI_General_Display(MENU_Sprite, CN_fengexian, GUI_BLENDMODE_SRC_OVER);           /*line*/
        GUI_General_Display(MENU_Sprite, CN_gundongtiao, GUI_BLENDMODE_SRC_OVER);         /*长度条*/

        if (bCurMenuIDX != _MN_DSP_LEVEL2_5_MENU_1)
        {
            GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_05_1black + State_Flag.DEMO_LDWS), 225u, GUI_DISP_MENU_Y[0u], GUI_BLENDMODE_SRC_OVER);
        }
        if (bCurMenuIDX != _MN_DSP_LEVEL2_5_MENU_2)
        {
            GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_05_2black + State_Flag.DEMO_AEBS1), 225u, GUI_DISP_MENU_Y[1u], GUI_BLENDMODE_SRC_OVER);
        }
        if (bCurMenuIDX != _MN_DSP_LEVEL2_5_MENU_3)
        {
            GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_05_3black + State_Flag.DEMO_AEBS2), 225u, GUI_DISP_MENU_Y[2u], GUI_BLENDMODE_SRC_OVER);
        }
        if (bCurMenuIDX != _MN_DSP_LEVEL2_5_MENU_4)
        {
            GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_05_4black + State_Flag.DEMO_AEBS3), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
        }
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_DemoMenu1_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_DemoMenu1_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_05_1black + Flag), 225u, GUI_DISP_MENU_Y[0u], GUI_BLENDMODE_SRC_OVER);
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_DemoMenu2_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_DemoMenu2_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_05_2black + Flag), 225u, GUI_DISP_MENU_Y[1u], GUI_BLENDMODE_SRC_OVER);
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_DemoMenu3_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_DemoMenu3_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_05_3black + Flag), 225u, GUI_DISP_MENU_Y[2u], GUI_BLENDMODE_SRC_OVER);
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_DemoMenu4_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_DemoMenu4_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_05_4black + Flag), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_Errot_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_Errot_Display(uint8_t Mode)
{
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        /*显示*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu2_01_wenzi, GUI_BLENDMODE_SRC_OVER); /*menu*/
        GUI_General_Display(MENU_Sprite, CN_fengexian, GUI_BLENDMODE_SRC_OVER);           /*line*/
        GUI_General_Display(MENU_Sprite, CN_gundongtiao, GUI_BLENDMODE_SRC_OVER);         /*长度条*/
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
hu's avatar
hu committed
2666 2667 2668 2669 2670 2671 2672
}
/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_TPMS_GasPIC_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
hu's avatar
hu committed
2673
 * onther         : 区域   K_Line_Set.K_Line_LID3E
hu's avatar
hu committed
2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725
 --------------------------------------------------------------------------*/
void GUI_BG_TPMS_GasPIC_Display(uint8_t Mode)
{
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        /*显示*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_04_che, GUI_BLENDMODE_SRC_OVER); /*车*/

        GUI_General_Display(MENU_Sprite, CN_User_Menu3_04_kpa, GUI_BLENDMODE_SRC_OVER);    /*KPA*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_04_qiya1, GUI_BLENDMODE_SRC_OVER);  /*气压*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_04_wendu2, GUI_BLENDMODE_SRC_OVER); /*胎温*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_04_jiantou1, GUI_BLENDMODE_SRC_OVER); /*箭头*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_04_jiantou2, GUI_BLENDMODE_SRC_OVER); /*箭头*/

        /*0x12*/if (1) {GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[0], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);}
        else {GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai,  GUI_TPMS_PIC_X[0], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);}
        /*0x13*/if (1) {GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[0], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);}
        else {GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai,  GUI_TPMS_PIC_X[0], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);}
        /*0x22*/if (1) {GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[1], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);}
        else {GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai,  GUI_TPMS_PIC_X[0], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);}
        /*0x23*/if (1) {GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[1], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);}
        else {GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai,  GUI_TPMS_PIC_X[0], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);}
        /*0x31*/if (1) {GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[2], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);}
        else {GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai,  GUI_TPMS_PIC_X[0], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);}
        /*0x32*/if (1) {GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[2], GUI_TPMS_PIC_Y[2u], GUI_BLENDMODE_CUSTOM);}
        else {GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai,  GUI_TPMS_PIC_X[0], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);}
        /*0x33*/if (1) {GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[2], GUI_TPMS_PIC_Y[1u], GUI_BLENDMODE_CUSTOM);}
        else {GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai,  GUI_TPMS_PIC_X[0], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);}
        /*0x34*/if (1) {GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[2], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);}
        else {GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai,  GUI_TPMS_PIC_X[0], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);}
        /*0x41*/if (1) {GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[3], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);}
        else {GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai,  GUI_TPMS_PIC_X[0], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);}
        /*0x42*/if (1) {GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[3], GUI_TPMS_PIC_Y[2u], GUI_BLENDMODE_CUSTOM);}
        else {GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai,  GUI_TPMS_PIC_X[0], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);}
        /*0x43*/if (1) {GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[3], GUI_TPMS_PIC_Y[1u], GUI_BLENDMODE_CUSTOM);}
        else {GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai,  GUI_TPMS_PIC_X[0], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);}
        /*0x44*/if (1) {GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[3], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);}
        else {GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai,  GUI_TPMS_PIC_X[0], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);}

    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_TPMS_TempPIC_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
hu's avatar
hu committed
2726
 * onther         : 区域   K_Line_Set.K_Line_LID3E
hu's avatar
hu committed
2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776
 --------------------------------------------------------------------------*/
void GUI_BG_TPMS_TempPIC_Display(uint8_t Mode)
{
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        /*显示*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_04_che, GUI_BLENDMODE_SRC_OVER); /*车*/

        GUI_General_Display(MENU_Sprite, CN_User_Menu3_04_wendu, GUI_BLENDMODE_SRC_OVER);  /*摄氏度*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_04_qiya2, GUI_BLENDMODE_SRC_OVER);  /*气压*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_04_wendu1, GUI_BLENDMODE_SRC_OVER); /*胎温*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_04_jiantou1, GUI_BLENDMODE_SRC_OVER); /*箭头*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_04_jiantou2, GUI_BLENDMODE_SRC_OVER); /*箭头*/

        /*0x12*/if (1) { GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[0], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);}
        else   { GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai,  GUI_TPMS_PIC_X[0], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);}
        /*0x13*/if (1) { GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[0], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);}
        else   { GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai,  GUI_TPMS_PIC_X[0], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);}
        /*0x22*/if (1) { GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[1], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);}
        else   { GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai,  GUI_TPMS_PIC_X[0], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);}
        /*0x23*/if (1) { GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[1], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);}
        else   { GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai,  GUI_TPMS_PIC_X[0], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);}
        /*0x31*/if (1) { GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[2], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);}
        else   { GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai,  GUI_TPMS_PIC_X[0], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);}
        /*0x32*/if (1) { GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[2], GUI_TPMS_PIC_Y[2u], GUI_BLENDMODE_CUSTOM);}
        else   { GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai,  GUI_TPMS_PIC_X[0], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);}
        /*0x33*/if (1) { GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[2], GUI_TPMS_PIC_Y[1u], GUI_BLENDMODE_CUSTOM);}
        else   { GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai,  GUI_TPMS_PIC_X[0], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);}
        /*0x34*/if (1) { GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[2], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);}
        else   { GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai,  GUI_TPMS_PIC_X[0], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);}
        /*0x41*/if (1) { GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[3], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);}
        else   { GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai,  GUI_TPMS_PIC_X[0], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);}
        /*0x42*/if (1) { GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[3], GUI_TPMS_PIC_Y[2u], GUI_BLENDMODE_CUSTOM);}
        else   { GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai,  GUI_TPMS_PIC_X[0], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);}
        /*0x43*/if (1) { GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[3], GUI_TPMS_PIC_Y[1u], GUI_BLENDMODE_CUSTOM);}
        else   { GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai,  GUI_TPMS_PIC_X[0], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);}
        /*0x44*/if (1) { GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[3], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);}
        else   { GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai,  GUI_TPMS_PIC_X[0], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);}
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_TPMS_GasNUM_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
hu's avatar
hu committed
2777
 * onther         : 区域   K_Line_Set.K_Line_LID3E
hu's avatar
hu committed
2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820
 --------------------------------------------------------------------------*/
void GUI_BG_TPMS_GasNUM_Display(uint8_t Mode)
{
    uint16_t Gas_Value_0x12 = 0u;
    uint16_t Gas_Value_0x13 = 0u;
    uint16_t Gas_Value_0x22 = 0u;
    uint16_t Gas_Value_0x23 = 0u;
    uint16_t Gas_Value_0x31 = 0u;
    uint16_t Gas_Value_0x32 = 0u;
    uint16_t Gas_Value_0x33 = 0u;
    uint16_t Gas_Value_0x34 = 0u;
    uint16_t Gas_Value_0x41 = 0u;
    uint16_t Gas_Value_0x42 = 0u;
    uint16_t Gas_Value_0x43 = 0u;
    uint16_t Gas_Value_0x44 = 0u;

    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        /*0x12*/GUI_General_Digit_Display(MENU_Sprite, Gas_Value_0x12, Nb_12_0, 3u, 2u, GUI_TPMS_NUM1_X, GUI_TPMS_NUM_Y[3u], GUI_BLENDMODE_SRC_OVER);
        /*0x13*/GUI_General_Digit_Display(MENU_Sprite, Gas_Value_0x13, Nb_12_0, 3u, 2u, GUI_TPMS_NUM1_X, GUI_TPMS_NUM_Y[0u], GUI_BLENDMODE_SRC_OVER);
        /*0x22*/GUI_General_Digit_Display(MENU_Sprite, Gas_Value_0x22, Nb_12_0, 3u, 2u, GUI_TPMS_NUM2_X, GUI_TPMS_NUM_Y[3u], GUI_BLENDMODE_SRC_OVER);
        /*0x23*/GUI_General_Digit_Display(MENU_Sprite, Gas_Value_0x23, Nb_12_0, 3u, 2u, GUI_TPMS_NUM2_X, GUI_TPMS_NUM_Y[0u], GUI_BLENDMODE_SRC_OVER);
        /*0x31*/GUI_General_Digit_Display(MENU_Sprite, Gas_Value_0x31, Nb_12_0, 3u, 2u, GUI_TPMS_NUM3_X, GUI_TPMS_NUM_Y[3u], GUI_BLENDMODE_SRC_OVER);
        /*0x32*/GUI_General_Digit_Display(MENU_Sprite, Gas_Value_0x32, Nb_12_0, 3u, 2u, GUI_TPMS_NUM3_X, GUI_TPMS_NUM_Y[2u], GUI_BLENDMODE_SRC_OVER);
        /*0x33*/GUI_General_Digit_Display(MENU_Sprite, Gas_Value_0x33, Nb_12_0, 3u, 2u, GUI_TPMS_NUM3_X, GUI_TPMS_NUM_Y[1u], GUI_BLENDMODE_SRC_OVER);
        /*0x34*/GUI_General_Digit_Display(MENU_Sprite, Gas_Value_0x34, Nb_12_0, 3u, 2u, GUI_TPMS_NUM3_X, GUI_TPMS_NUM_Y[0u], GUI_BLENDMODE_SRC_OVER);
        /*0x41*/GUI_General_Digit_Display(MENU_Sprite, Gas_Value_0x41, Nb_12_0, 3u, 2u, GUI_TPMS_NUM4_X, GUI_TPMS_NUM_Y[3u], GUI_BLENDMODE_SRC_OVER);
        /*0x42*/GUI_General_Digit_Display(MENU_Sprite, Gas_Value_0x42, Nb_12_0, 3u, 2u, GUI_TPMS_NUM4_X, GUI_TPMS_NUM_Y[2u], GUI_BLENDMODE_SRC_OVER);
        /*0x43*/GUI_General_Digit_Display(MENU_Sprite, Gas_Value_0x43, Nb_12_0, 3u, 2u, GUI_TPMS_NUM4_X, GUI_TPMS_NUM_Y[1u], GUI_BLENDMODE_SRC_OVER);
        /*0x44*/GUI_General_Digit_Display(MENU_Sprite, Gas_Value_0x44, Nb_12_0, 3u, 2u, GUI_TPMS_NUM4_X, GUI_TPMS_NUM_Y[0u], GUI_BLENDMODE_SRC_OVER);
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_TPMS_TempNUM_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
hu's avatar
hu committed
2821
 * onther         : 区域   K_Line_Set.K_Line_LID3E
hu's avatar
hu committed
2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871
 --------------------------------------------------------------------------*/
void GUI_BG_TPMS_TempNUM_Display(uint8_t Mode)
{
    uint16_t Temp_Value_0x12 = 0u;
    uint16_t Temp_Value_0x13 = 0u;
    uint16_t Temp_Value_0x22 = 0u;
    uint16_t Temp_Value_0x23 = 0u;
    uint16_t Temp_Value_0x31 = 0u;
    uint16_t Temp_Value_0x32 = 0u;
    uint16_t Temp_Value_0x33 = 0u;
    uint16_t Temp_Value_0x34 = 0u;
    uint16_t Temp_Value_0x41 = 0u;
    uint16_t Temp_Value_0x42 = 0u;
    uint16_t Temp_Value_0x43 = 0u;
    uint16_t Temp_Value_0x44 = 0u;

    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        /*0x12*/if (0) { GUI_General_Digit_Display(MENU_Sprite, Temp_Value_0x12, Nb_12_0, 3u, 2u, GUI_TPMS_NUM1_X, GUI_TPMS_NUM_Y[3u], GUI_BLENDMODE_SRC_OVER); }
        else { GUI_General_Digit_Display(MENU_Sprite, Temp_Value_0x12, Nb_12_0, 2u, 1u, GUI_TPMS_NUM1_X, GUI_TPMS_NUM_Y[3u], GUI_BLENDMODE_SRC_OVER); GUI_Translate_Display(MENU_Sprite, Nb_12_heng, (GUI_TPMS_MIC3_X[0] + 3u), (GUI_TPMS_NUM_Y[3u] + 9u), GUI_BLENDMODE_SRC_OVER);}
        /*0x13*/if (0) { GUI_General_Digit_Display(MENU_Sprite, Temp_Value_0x13, Nb_12_0, 3u, 2u, GUI_TPMS_NUM1_X, GUI_TPMS_NUM_Y[0u], GUI_BLENDMODE_SRC_OVER); }
        else { GUI_General_Digit_Display(MENU_Sprite, Temp_Value_0x13, Nb_12_0, 2u, 1u, GUI_TPMS_NUM1_X, GUI_TPMS_NUM_Y[0u], GUI_BLENDMODE_SRC_OVER); GUI_Translate_Display(MENU_Sprite, Nb_12_heng, (GUI_TPMS_MIC3_X[0] + 3u), (GUI_TPMS_NUM_Y[0u] + 9u), GUI_BLENDMODE_SRC_OVER);}
        /*0x22*/if (0) { GUI_General_Digit_Display(MENU_Sprite, Temp_Value_0x22, Nb_12_0, 3u, 2u, GUI_TPMS_NUM2_X, GUI_TPMS_NUM_Y[3u], GUI_BLENDMODE_SRC_OVER); }
        else { GUI_General_Digit_Display(MENU_Sprite, Temp_Value_0x22, Nb_12_0, 2u, 1u, GUI_TPMS_NUM2_X, GUI_TPMS_NUM_Y[3u], GUI_BLENDMODE_SRC_OVER); GUI_Translate_Display(MENU_Sprite, Nb_12_heng, (GUI_TPMS_MIC3_X[1] + 3u), (GUI_TPMS_NUM_Y[3u] + 9u), GUI_BLENDMODE_SRC_OVER);}
        /*0x23*/if (0) { GUI_General_Digit_Display(MENU_Sprite, Temp_Value_0x23, Nb_12_0, 3u, 2u, GUI_TPMS_NUM2_X, GUI_TPMS_NUM_Y[0u], GUI_BLENDMODE_SRC_OVER); }
        else { GUI_General_Digit_Display(MENU_Sprite, Temp_Value_0x23, Nb_12_0, 2u, 1u, GUI_TPMS_NUM2_X, GUI_TPMS_NUM_Y[0u], GUI_BLENDMODE_SRC_OVER); GUI_Translate_Display(MENU_Sprite, Nb_12_heng, (GUI_TPMS_MIC3_X[1] + 3u), (GUI_TPMS_NUM_Y[0u] + 9u), GUI_BLENDMODE_SRC_OVER);}
        /*0x31*/if (0) { GUI_General_Digit_Display(MENU_Sprite, Temp_Value_0x31, Nb_12_0, 3u, 2u, GUI_TPMS_NUM3_X, GUI_TPMS_NUM_Y[3u], GUI_BLENDMODE_SRC_OVER); }
        else { GUI_General_Digit_Display(MENU_Sprite, Temp_Value_0x31, Nb_12_0, 2u, 1u, GUI_TPMS_NUM3_X, GUI_TPMS_NUM_Y[3u], GUI_BLENDMODE_SRC_OVER); GUI_Translate_Display(MENU_Sprite, Nb_12_heng, (GUI_TPMS_MIC3_X[2] + 3u), (GUI_TPMS_NUM_Y[3u] + 9u), GUI_BLENDMODE_SRC_OVER);}
        /*0x32*/if (0) { GUI_General_Digit_Display(MENU_Sprite, Temp_Value_0x32, Nb_12_0, 3u, 2u, GUI_TPMS_NUM3_X, GUI_TPMS_NUM_Y[2u], GUI_BLENDMODE_SRC_OVER); }
        else { GUI_General_Digit_Display(MENU_Sprite, Temp_Value_0x32, Nb_12_0, 2u, 1u, GUI_TPMS_NUM3_X, GUI_TPMS_NUM_Y[2u], GUI_BLENDMODE_SRC_OVER); GUI_Translate_Display(MENU_Sprite, Nb_12_heng, (GUI_TPMS_MIC3_X[2] + 3u), (GUI_TPMS_NUM_Y[2u] + 9u), GUI_BLENDMODE_SRC_OVER);}
        /*0x33*/if (0) { GUI_General_Digit_Display(MENU_Sprite, Temp_Value_0x33, Nb_12_0, 3u, 2u, GUI_TPMS_NUM3_X, GUI_TPMS_NUM_Y[1u], GUI_BLENDMODE_SRC_OVER); }
        else { GUI_General_Digit_Display(MENU_Sprite, Temp_Value_0x33, Nb_12_0, 2u, 1u, GUI_TPMS_NUM3_X, GUI_TPMS_NUM_Y[1u], GUI_BLENDMODE_SRC_OVER); GUI_Translate_Display(MENU_Sprite, Nb_12_heng, (GUI_TPMS_MIC3_X[2] + 3u), (GUI_TPMS_NUM_Y[1u] + 9u), GUI_BLENDMODE_SRC_OVER);}
        /*0x34*/if (0) { GUI_General_Digit_Display(MENU_Sprite, Temp_Value_0x34, Nb_12_0, 3u, 2u, GUI_TPMS_NUM3_X, GUI_TPMS_NUM_Y[0u], GUI_BLENDMODE_SRC_OVER); }
        else { GUI_General_Digit_Display(MENU_Sprite, Temp_Value_0x34, Nb_12_0, 2u, 1u, GUI_TPMS_NUM3_X, GUI_TPMS_NUM_Y[0u], GUI_BLENDMODE_SRC_OVER); GUI_Translate_Display(MENU_Sprite, Nb_12_heng, (GUI_TPMS_MIC3_X[2] + 3u), (GUI_TPMS_NUM_Y[0u] + 9u), GUI_BLENDMODE_SRC_OVER);}
        /*0x41*/if (0) { GUI_General_Digit_Display(MENU_Sprite, Temp_Value_0x41, Nb_12_0, 3u, 2u, GUI_TPMS_NUM4_X, GUI_TPMS_NUM_Y[3u], GUI_BLENDMODE_SRC_OVER); }
        else { GUI_General_Digit_Display(MENU_Sprite, Temp_Value_0x41, Nb_12_0, 2u, 1u, GUI_TPMS_NUM4_X, GUI_TPMS_NUM_Y[3u], GUI_BLENDMODE_SRC_OVER); GUI_Translate_Display(MENU_Sprite, Nb_12_heng, (GUI_TPMS_MIC3_X[3] + 3u), (GUI_TPMS_NUM_Y[3u] + 9u), GUI_BLENDMODE_SRC_OVER);}
        /*0x42*/if (0) { GUI_General_Digit_Display(MENU_Sprite, Temp_Value_0x42, Nb_12_0, 3u, 2u, GUI_TPMS_NUM4_X, GUI_TPMS_NUM_Y[2u], GUI_BLENDMODE_SRC_OVER); }
        else { GUI_General_Digit_Display(MENU_Sprite, Temp_Value_0x42, Nb_12_0, 2u, 1u, GUI_TPMS_NUM4_X, GUI_TPMS_NUM_Y[2u], GUI_BLENDMODE_SRC_OVER); GUI_Translate_Display(MENU_Sprite, Nb_12_heng, (GUI_TPMS_MIC3_X[3] + 3u), (GUI_TPMS_NUM_Y[2u] + 9u), GUI_BLENDMODE_SRC_OVER);}
        /*0x43*/if (0) { GUI_General_Digit_Display(MENU_Sprite, Temp_Value_0x43, Nb_12_0, 3u, 2u, GUI_TPMS_NUM4_X, GUI_TPMS_NUM_Y[1u], GUI_BLENDMODE_SRC_OVER); }
        else { GUI_General_Digit_Display(MENU_Sprite, Temp_Value_0x43, Nb_12_0, 2u, 1u, GUI_TPMS_NUM4_X, GUI_TPMS_NUM_Y[1u], GUI_BLENDMODE_SRC_OVER); GUI_Translate_Display(MENU_Sprite, Nb_12_heng, (GUI_TPMS_MIC3_X[3] + 3u), (GUI_TPMS_NUM_Y[1u] + 9u), GUI_BLENDMODE_SRC_OVER);}
        /*0x44*/if (0) { GUI_General_Digit_Display(MENU_Sprite, Temp_Value_0x44, Nb_12_0, 3u, 2u, GUI_TPMS_NUM4_X, GUI_TPMS_NUM_Y[0u], GUI_BLENDMODE_SRC_OVER); }
        else { GUI_General_Digit_Display(MENU_Sprite, Temp_Value_0x44, Nb_12_0, 2u, 1u, GUI_TPMS_NUM4_X, GUI_TPMS_NUM_Y[0u], GUI_BLENDMODE_SRC_OVER); GUI_Translate_Display(MENU_Sprite, Nb_12_heng, (GUI_TPMS_MIC3_X[3] + 3u), (GUI_TPMS_NUM_Y[0u] + 9u), GUI_BLENDMODE_SRC_OVER);}
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
hu's avatar
hu committed
2872
 * Function Name  : GUI_BG_RepMenu_Display
hu's avatar
hu committed
2873 2874 2875 2876
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
hu's avatar
hu committed
2877
 * onther         :
hu's avatar
hu committed
2878
 --------------------------------------------------------------------------*/
hu's avatar
hu committed
2879
void GUI_BG_RepMenu_Display(uint8_t Mode)
hu's avatar
hu committed
2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894
{
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        /*显示*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_wenzi, GUI_BLENDMODE_SRC_OVER); /*menu*/
        GUI_General_Display(MENU_Sprite, CN_fengexian, GUI_BLENDMODE_SRC_OVER);           /*line*/
        GUI_General_Display(MENU_Sprite, CN_white_fuwei, GUI_BLENDMODE_SRC_OVER);         /*确认*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_km, GUI_BLENDMODE_SRC_OVER);    /*KM*/
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

hu's avatar
hu committed
2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992
/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_RepMenu_3_1_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         :
 --------------------------------------------------------------------------*/

uint8_t HYQ_TEST_FLAG = 0u;

void GUI_BG_RepMenu_3_1_Display(uint8_t Mode)
{
    uint16_t User_FDJYLQQ_Value = 0u;
    uint8_t User_FDJYLQQ_FLAG = 0u;

    User_FDJYLQQ_Value = HYQ_TEST ;
    User_FDJYLQQ_FLAG = HYQ_TEST_FLAG ;

    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_11, GUI_BLENDMODE_SRC_OVER); /*menu*/

        if (User_FDJYLQQ_Value > 0u)
        {
            if (User_FDJYLQQ_Value > 999u)
            {
                GUI_Translate_Display(MENU_Sprite, Nb_15_douhao, 534u, 281u, GUI_BLENDMODE_SRC_OVER); /*逗号*/
            }
            else
            {
                GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
            }

            GUI_General_Digit_Display(MENU_Sprite, User_FDJYLQQ_Value, Nb_15_0, 6u, 5u, GUI_REP1_X, 277u, GUI_BLENDMODE_SRC_OVER);
        }
        else
        {
            if (User_FDJYLQQ_FLAG == 1u)
            {
                GUI_Translate_Display(MENU_Sprite, Nb_15_douhao, 534u, 281u, GUI_BLENDMODE_SRC_OVER); /*逗号*/
                GUI_Translate_Display(MENU_Sprite, Nb_15_fuhao, 506u, 279u, GUI_BLENDMODE_SRC_OVER); /*负号*/

                GUI_General_Digit_Display(MENU_Sprite, 1000u, Nb_15_0, 4u, 3u, GUI_REP_X, 277u, GUI_BLENDMODE_SRC_OVER);
            }
            else  if (User_FDJYLQQ_FLAG == 3u)
            {
                GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
            }
        }
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_RepMenu_3_2_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         :
 --------------------------------------------------------------------------*/
void GUI_BG_RepMenu_3_2_Display(uint8_t Mode)
{
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_22, GUI_BLENDMODE_SRC_OVER); /*menu*/
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}


/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_RepMenu_3_3_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         :
 --------------------------------------------------------------------------*/
void GUI_BG_RepMenu_3_3_Display(uint8_t Mode)
{
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_2, GUI_BLENDMODE_SRC_OVER); /*menu*/
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

hu's avatar
hu committed
2993

hu's avatar
hu committed
2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012
/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_RepMenu_3_4_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         :
 --------------------------------------------------------------------------*/
void GUI_BG_RepMenu_3_4_Display(uint8_t Mode)
{
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_4, GUI_BLENDMODE_SRC_OVER); /*menu*/
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
hu's avatar
hu committed
3013

hu's avatar
hu committed
3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073
/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_RepMenu_3_6_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         :
 --------------------------------------------------------------------------*/
void GUI_BG_RepMenu_3_6_Display(uint8_t Mode)
{
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_14, GUI_BLENDMODE_SRC_OVER); /*menu*/
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_RepMenu_3_7_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         :
 --------------------------------------------------------------------------*/
void GUI_BG_RepMenu_3_7_Display(uint8_t Mode)
{
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_6, GUI_BLENDMODE_SRC_OVER); /*menu*/
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}


/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_RepMenu_3_8_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         :
 --------------------------------------------------------------------------*/
void GUI_BG_RepMenu_3_8_Display(uint8_t Mode)
{
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_16, GUI_BLENDMODE_SRC_OVER); /*menu*/
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
hu's avatar
hu committed
3074

hu's avatar
hu committed
3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175
/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_RepMenuSet_Menu_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         :
 --------------------------------------------------------------------------*/
void GUI_BG_RepMenuSet_Menu_Display(uint8_t Mode)
{
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_02_wenzi, GUI_BLENDMODE_SRC_OVER); /*menu*/
        GUI_General_Display(MENU_Sprite, CN_fengexian, GUI_BLENDMODE_SRC_OVER);           /*line*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_02_kuang, GUI_BLENDMODE_SRC_OVER); /*框*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_02_km, GUI_BLENDMODE_SRC_OVER);    /*KM*/
        GUI_General_Display(MENU_Sprite, CN_white_queding, GUI_BLENDMODE_SRC_OVER);       /*ENTER*/
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
void GUI_BG_RepSetMenu_3_1_Display(uint8_t Mode)
{
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        //GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_16, GUI_BLENDMODE_SRC_OVER); /*menu*/
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
void GUI_BG_RepSetMenu_3_2_Display(uint8_t Mode)
{
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        //GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_16, GUI_BLENDMODE_SRC_OVER); /*menu*/
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
void GUI_BG_RepSetMenu_3_3_Display(uint8_t Mode)
{
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        //GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_16, GUI_BLENDMODE_SRC_OVER); /*menu*/
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
void GUI_BG_RepSetMenu_3_4_Display(uint8_t Mode)
{
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        //GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_16, GUI_BLENDMODE_SRC_OVER); /*menu*/
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
void GUI_BG_RepSetMenu_3_5_Display(uint8_t Mode)
{
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        //GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_16, GUI_BLENDMODE_SRC_OVER); /*menu*/
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
void GUI_BG_RepSetMenu_3_6_Display(uint8_t Mode)
{
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        //GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_16, GUI_BLENDMODE_SRC_OVER); /*menu*/
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
void GUI_BG_RepSetMenu_3_7_Display(uint8_t Mode)
{
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        //GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_16, GUI_BLENDMODE_SRC_OVER); /*menu*/
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

hu's avatar
hu committed
3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242
/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_UserSet_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         :
 --------------------------------------------------------------------------*/
void GUI_BG_UserSet_Display(uint8_t Mode)
{
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_wenzi, GUI_BLENDMODE_SRC_OVER); /*menu*/
        GUI_General_Display(MENU_Sprite, CN_fengexian, GUI_BLENDMODE_SRC_OVER);           /*line*/
        GUI_General_Display(MENU_Sprite, CN_white_queding, GUI_BLENDMODE_SRC_OVER);       /*enter*/
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_UserSet_Date_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         :
 --------------------------------------------------------------------------*/
void GUI_BG_UserSet_Date_Display(uint8_t Mode)
{
    uint8_t YEAR_Value = 0u;
    uint8_t MOnth_Value = 0u;
    uint8_t Data_Value  = 0u;

    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_nian, GUI_BLENDMODE_SRC_OVER); /*年*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_yue, GUI_BLENDMODE_SRC_OVER);  /*月*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_ri, GUI_BLENDMODE_SRC_OVER);   /*日*/

        switch (bCurMenuIDX)
        {
        case _MN_DSP_LEVEL3_4_MENU_11:
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_yellowkuang, 329u, 214u, GUI_BLENDMODE_SRC_OVER);
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_greykuang, 434u, 214u, GUI_BLENDMODE_SRC_OVER);
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_greykuang, 541u, 214u, GUI_BLENDMODE_SRC_OVER);
            break;

        case _MN_DSP_LEVEL3_4_MENU_12:
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_greykuang, 329u, 214u, GUI_BLENDMODE_SRC_OVER);
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_yellowkuang, 434u, 214u, GUI_BLENDMODE_SRC_OVER);
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_greykuang, 541u, 214u, GUI_BLENDMODE_SRC_OVER);
            break;

        case _MN_DSP_LEVEL3_4_MENU_13:
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_greykuang, 329u, 214u, GUI_BLENDMODE_SRC_OVER);
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_greykuang, 434u, 214u, GUI_BLENDMODE_SRC_OVER);
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_yellowkuang, 541u, 214u, GUI_BLENDMODE_SRC_OVER);
            break;

        default :
            break;
        }

        GUI_General_Digit_Display(MENU_Sprite, 20u, Nb_20_0, 2u, 0u, GUIUsetSetYPos, 226u, GUI_BLENDMODE_SRC_OVER);
        GUI_General_Digit_Display(MENU_Sprite, YEAR_Value, Nb_20_0, 2u, 0u, GUIUsetSetYPosX, 226u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
3243

hu's avatar
hu committed
3244
        GUI_General_Digit_Display(MENU_Sprite, MOnth_Value, Nb_20_0, 2u, 0u, GUIUsetSetMPosX, 226u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
3245

hu's avatar
hu committed
3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265
        GUI_General_Digit_Display(MENU_Sprite, Data_Value, Nb_20_0, 2u, 0u, GUIUsetSetDPosX, 226u, GUI_BLENDMODE_SRC_OVER);
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_UserSet_Time_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         :
 --------------------------------------------------------------------------*/
void GUI_BG_UserSet_Time_Display(uint8_t Mode)
{
    uint8_t Hour_Value = 0u;
    uint8_t Minute_Value = 0u;
hu's avatar
hu committed
3266

hu's avatar
hu committed
3267 3268
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
3269
        GUI_Translate_Display(MENU_Sprite, Nb_20_maohao, 440u, 218u, GUI_BLENDMODE_SRC_OVER);/*冒号*/
hu's avatar
hu committed
3270

hu's avatar
hu committed
3271 3272 3273
        switch (bCurMenuIDX)
        {
        case _MN_DSP_LEVEL3_4_MENU_21:
hu's avatar
hu committed
3274 3275 3276
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_yellowkuang, 384u, 214u, GUI_BLENDMODE_SRC_OVER);
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_greykuang, 458u, 214u, GUI_BLENDMODE_SRC_OVER);

hu's avatar
hu committed
3277
            break;
hu's avatar
hu committed
3278

hu's avatar
hu committed
3279
        case _MN_DSP_LEVEL3_4_MENU_22:
hu's avatar
hu committed
3280 3281 3282
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_greykuang, 384u, 214u, GUI_BLENDMODE_SRC_OVER);
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_yellowkuang, 458u, 214u, GUI_BLENDMODE_SRC_OVER);

hu's avatar
hu committed
3283
            break;
hu's avatar
hu committed
3284

hu's avatar
hu committed
3285 3286 3287
        default:
            break;
        }
hu's avatar
hu committed
3288

hu's avatar
hu committed
3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459
        GUI_General_Digit_Display(MENU_Sprite, Hour_Value, Nb_20_0, 2u, 0u, GUIUsetSetHPosX, 226u, GUI_BLENDMODE_SRC_OVER);

        GUI_General_Digit_Display(MENU_Sprite, Minute_Value, Nb_20_0, 2u, 0u, GUIUsetSetMiPosX, 226u, GUI_BLENDMODE_SRC_OVER);
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_UserSet_Language_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         :
 --------------------------------------------------------------------------*/
void GUI_BG_UserSet_Language_Display(uint8_t Mode)
{
    uint8_t Options_Val = 0u;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        /*英语*/
        if (Options_Val == Language_En)
        {
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_19black, GUI_BLENDMODE_SRC_OVER);
        }
        else
        {
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_19white, GUI_BLENDMODE_SRC_OVER);
        }

        /*汉语*/
        if (Options_Val == Language_Cn)
        {
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_20black, GUI_BLENDMODE_SRC_OVER);
        }
        else
        {
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_20white, GUI_BLENDMODE_SRC_OVER);
        }
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_UserSet_SYSD_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         :
 --------------------------------------------------------------------------*/
void GUI_BG_UserSet_SYSD_Display(uint8_t Mode)
{
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_wenzi, GUI_BLENDMODE_SRC_OVER); /*menu*/
        GUI_General_Display(MENU_Sprite, CN_fengexian, GUI_BLENDMODE_SRC_OVER);           /*line*/
        GUI_General_Display(MENU_Sprite, CN_gundongtiao, GUI_BLENDMODE_SRC_OVER);      /*长度条*/

        if (bCurMenuIDX <= _MN_DSP_LEVEL3_4_MENU_44)
        {
            if (bCurMenuIDX != _MN_DSP_LEVEL3_4_MENU_41)
            {
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_7white, 225u, GUI_DISP_MENU_Y[0u], GUI_BLENDMODE_SRC_OVER);
            }
            if (bCurMenuIDX != _MN_DSP_LEVEL3_4_MENU_42)
            {
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_8white, 225u, GUI_DISP_MENU_Y[1u], GUI_BLENDMODE_SRC_OVER);
            }
            if (bCurMenuIDX != _MN_DSP_LEVEL3_4_MENU_43)
            {
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_9white, 225u, GUI_DISP_MENU_Y[2u], GUI_BLENDMODE_SRC_OVER);
            }
            if (bCurMenuIDX != _MN_DSP_LEVEL3_4_MENU_44)
            {
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_10white, 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
            }
        }
        else  if (bCurMenuIDX == _MN_DSP_LEVEL3_4_MENU_45)
        {
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_8white, 225u, GUI_DISP_MENU_Y[0u], GUI_BLENDMODE_SRC_OVER);
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_9white, 225u, GUI_DISP_MENU_Y[1u], GUI_BLENDMODE_SRC_OVER);
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_10white, 225u, GUI_DISP_MENU_Y[2u], GUI_BLENDMODE_SRC_OVER);
        }
        else  if (bCurMenuIDX == _MN_DSP_LEVEL3_4_MENU_46)
        {
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_9white, 225u, GUI_DISP_MENU_Y[0u], GUI_BLENDMODE_SRC_OVER);
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_10white, 225u, GUI_DISP_MENU_Y[1u], GUI_BLENDMODE_SRC_OVER);
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_11white, 225u, GUI_DISP_MENU_Y[2u], GUI_BLENDMODE_SRC_OVER);
        }
        else
        {
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_10white, 225u, GUI_DISP_MENU_Y[0u], GUI_BLENDMODE_SRC_OVER);
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_11white, 225u, GUI_DISP_MENU_Y[1u], GUI_BLENDMODE_SRC_OVER);
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_23white, 225u, GUI_DISP_MENU_Y[2u], GUI_BLENDMODE_SRC_OVER);
        }
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_UserSet_SYSD_1_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         :
 --------------------------------------------------------------------------*/
void GUI_BG_UserSet_SYSD_1_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu3_03_7black + Flag), 225u, GUI_DISP_MENU_Y[0u], GUI_BLENDMODE_SRC_OVER);
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_UserSet_SYSD_2_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         :
 --------------------------------------------------------------------------*/
void GUI_BG_UserSet_SYSD_2_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu3_03_8black + Flag), 225u, GUI_DISP_MENU_Y[1u], GUI_BLENDMODE_SRC_OVER);
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_UserSet_SYSD_3_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         :
 --------------------------------------------------------------------------*/
void GUI_BG_UserSet_SYSD_3_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu3_03_9black + Flag), 225u, GUI_DISP_MENU_Y[2u], GUI_BLENDMODE_SRC_OVER);
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
hu's avatar
hu committed
3460

hu's avatar
hu committed
3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474
/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_UserSet_SYSD_4_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         :
 --------------------------------------------------------------------------*/
void GUI_BG_UserSet_SYSD_4_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu3_03_10black + Flag), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
3475 3476 3477 3478 3479 3480
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
hu's avatar
hu committed
3481

hu's avatar
hu committed
3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559
/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_UserSet_SYSD_5_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         :
 --------------------------------------------------------------------------*/
void GUI_BG_UserSet_SYSD_5_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu3_03_11black + Flag), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_UserSet_SYSD_6_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         :
 --------------------------------------------------------------------------*/
void GUI_BG_UserSet_SYSD_6_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu3_03_23black + Flag), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_UserSet_SYSD_7_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         :
 --------------------------------------------------------------------------*/
void GUI_BG_UserSet_SYSD_7_Display(uint8_t Mode)
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_Translate_Display(MENU_Sprite, (CN_User_Menu3_03_24black + Flag), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}


/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_UserSet_SYSD_7_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         :
 --------------------------------------------------------------------------*/
void GUI_BG_TPMS_PictureSet_Display(uint8_t Mode)
{
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_che, GUI_BLENDMODE_SRC_OVER);/*车*/

hu's avatar
hu committed
3560
        /*0x12*/
hu's avatar
hu committed
3561
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_0x12, GUI_BLENDMODE_SRC_OVER);/*0x12*/
hu's avatar
hu committed
3562 3563

        if (User_set_Num.User_Tpms == 1u)
hu's avatar
hu committed
3564
        {
hu's avatar
hu committed
3565
            if (User_set_Num.User_TpmsStatus == 1u)
hu's avatar
hu committed
3566
            {
hu's avatar
hu committed
3567
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai3, GUI_TPMS_PIC_X[0u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
3568
            }
hu's avatar
hu committed
3569
            else if (User_set_Num.User_TpmsStatus == 2u)
hu's avatar
hu committed
3570
            {
hu's avatar
hu committed
3571 3572
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai1, GUI_TPMS_PIC_X[0u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);

hu's avatar
hu committed
3573
                if (FLASH_SYNC_1Hz)
hu's avatar
hu committed
3574
                {
hu's avatar
hu committed
3575
                    GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai_guang, GUI_TPMS_PIC_X[0u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
3576
                }
hu's avatar
hu committed
3577
                else
hu's avatar
hu committed
3578 3579 3580
                {
                    GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3581 3582 3583
            }
            else
            {
hu's avatar
hu committed
3584 3585 3586 3587
                if (TPMS_Matching.T01 == 1u)
                {
                    GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai1, GUI_TPMS_PIC_X[0u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3588
                else
hu's avatar
hu committed
3589 3590 3591
                {
                    GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai2, GUI_TPMS_PIC_X[0u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3592 3593 3594 3595
            }
        }
        else
        {
hu's avatar
hu committed
3596 3597 3598 3599
            if (TPMS_Matching.T01 == 1u)
            {
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai1, GUI_TPMS_PIC_X[0u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
            }
hu's avatar
hu committed
3600
            else
hu's avatar
hu committed
3601 3602 3603
            {
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai2, GUI_TPMS_PIC_X[0u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
            }
hu's avatar
hu committed
3604 3605
        }

hu's avatar
hu committed
3606 3607 3608 3609
        /*0x13*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_0x13, GUI_BLENDMODE_SRC_OVER);/*0x13*/

        if (User_set_Num.User_Tpms == 2u)
hu's avatar
hu committed
3610
        {
hu's avatar
hu committed
3611
            if (User_set_Num.User_TpmsStatus == 1u)
hu's avatar
hu committed
3612
            {
hu's avatar
hu committed
3613
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai3, GUI_TPMS_PIC_X[0u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
3614
            }
hu's avatar
hu committed
3615
            else if (User_set_Num.User_TpmsStatus == 2u)
hu's avatar
hu committed
3616
            {
hu's avatar
hu committed
3617 3618
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai1, GUI_TPMS_PIC_X[0u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);

hu's avatar
hu committed
3619
                if (FLASH_SYNC_1Hz)
hu's avatar
hu committed
3620 3621 3622
                {
                    GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai_guang, GUI_TPMS_PIC_X[0u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3623
                else
hu's avatar
hu committed
3624 3625 3626
                {
                    GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3627 3628 3629
            }
            else
            {
hu's avatar
hu committed
3630 3631 3632 3633
                if (TPMS_Matching.T02 == 1u)
                {
                    GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai1, GUI_TPMS_PIC_X[0u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3634
                else
hu's avatar
hu committed
3635 3636 3637
                {
                    GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai2, GUI_TPMS_PIC_X[0u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3638 3639 3640 3641
            }
        }
        else
        {
hu's avatar
hu committed
3642 3643 3644 3645
            if (TPMS_Matching.T02 == 1u)
            {
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai1, GUI_TPMS_PIC_X[0u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
            }
hu's avatar
hu committed
3646
            else
hu's avatar
hu committed
3647 3648 3649
            {
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai2, GUI_TPMS_PIC_X[0u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
            }
hu's avatar
hu committed
3650
        }
hu's avatar
hu committed
3651

hu's avatar
hu committed
3652 3653 3654 3655
        /*0x22*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_0x22, GUI_BLENDMODE_SRC_OVER);/*0x22*/

        if (User_set_Num.User_Tpms == 3u)
hu's avatar
hu committed
3656
        {
hu's avatar
hu committed
3657
            if (User_set_Num.User_TpmsStatus == 1u)
hu's avatar
hu committed
3658
            {
hu's avatar
hu committed
3659
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai3, GUI_TPMS_PIC_X[1u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
3660
            }
hu's avatar
hu committed
3661
            else if (User_set_Num.User_TpmsStatus == 2u)
hu's avatar
hu committed
3662
            {
hu's avatar
hu committed
3663 3664
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai1, GUI_TPMS_PIC_X[1u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);

hu's avatar
hu committed
3665
                if (FLASH_SYNC_1Hz)
hu's avatar
hu committed
3666 3667 3668
                {
                    GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai_guang, GUI_TPMS_PIC_X[1u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3669
                else
hu's avatar
hu committed
3670 3671 3672
                {
                    GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3673 3674 3675
            }
            else
            {
hu's avatar
hu committed
3676 3677 3678 3679
                if (TPMS_Matching.T03 == 1u)
                {
                    GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai1, GUI_TPMS_PIC_X[1u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3680
                else
hu's avatar
hu committed
3681 3682 3683
                {
                    GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai2, GUI_TPMS_PIC_X[1u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3684 3685 3686 3687
            }
        }
        else
        {
hu's avatar
hu committed
3688 3689 3690 3691
            if (TPMS_Matching.T03 == 1u)
            {
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai1, GUI_TPMS_PIC_X[1u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
            }
hu's avatar
hu committed
3692
            else
hu's avatar
hu committed
3693 3694 3695
            {
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai2, GUI_TPMS_PIC_X[1u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
            }
hu's avatar
hu committed
3696 3697
        }

hu's avatar
hu committed
3698 3699 3700 3701
        /*0x23*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_0x23, GUI_BLENDMODE_SRC_OVER);/*0x23*/

        if (User_set_Num.User_Tpms == 4u)
hu's avatar
hu committed
3702
        {
hu's avatar
hu committed
3703
            if (User_set_Num.User_TpmsStatus == 1u)
hu's avatar
hu committed
3704
            {
hu's avatar
hu committed
3705
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai3, GUI_TPMS_PIC_X[1u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
3706
            }
hu's avatar
hu committed
3707
            else if (User_set_Num.User_TpmsStatus == 2u)
hu's avatar
hu committed
3708
            {
hu's avatar
hu committed
3709 3710
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai1, GUI_TPMS_PIC_X[1u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);

hu's avatar
hu committed
3711
                if (FLASH_SYNC_1Hz)
hu's avatar
hu committed
3712 3713 3714
                {
                    GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai_guang, GUI_TPMS_PIC_X[1u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3715
                else
hu's avatar
hu committed
3716 3717 3718
                {
                    GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3719 3720 3721
            }
            else
            {
hu's avatar
hu committed
3722 3723 3724 3725
                if (TPMS_Matching.T04 == 1u)
                {
                    GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai1, GUI_TPMS_PIC_X[1u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3726
                else
hu's avatar
hu committed
3727 3728 3729
                {
                    GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai2, GUI_TPMS_PIC_X[1u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3730 3731 3732 3733
            }
        }
        else
        {
hu's avatar
hu committed
3734 3735 3736 3737
            if (TPMS_Matching.T04 == 1u)
            {
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai1, GUI_TPMS_PIC_X[1u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
            }
hu's avatar
hu committed
3738
            else
hu's avatar
hu committed
3739 3740 3741
            {
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai2, GUI_TPMS_PIC_X[1u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
            }
hu's avatar
hu committed
3742 3743
        }

hu's avatar
hu committed
3744 3745 3746 3747
        /*0x31*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_0x31, GUI_BLENDMODE_SRC_OVER);/*0x31*/

        if (User_set_Num.User_Tpms == 5u)
hu's avatar
hu committed
3748
        {
hu's avatar
hu committed
3749
            if (User_set_Num.User_TpmsStatus == 1u)
hu's avatar
hu committed
3750
            {
hu's avatar
hu committed
3751
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai3, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
3752
            }
hu's avatar
hu committed
3753
            else if (User_set_Num.User_TpmsStatus == 2u)
hu's avatar
hu committed
3754
            {
hu's avatar
hu committed
3755 3756
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai1, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);

hu's avatar
hu committed
3757
                if (FLASH_SYNC_1Hz)
hu's avatar
hu committed
3758 3759 3760
                {
                    GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai_guang, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3761
                else
hu's avatar
hu committed
3762 3763 3764
                {
                    GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3765 3766 3767
            }
            else
            {
hu's avatar
hu committed
3768 3769 3770 3771
                if (TPMS_Matching.T05 == 1u)
                {
                    GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai1, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3772
                else
hu's avatar
hu committed
3773 3774 3775
                {
                    GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai2, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3776 3777 3778 3779
            }
        }
        else
        {
hu's avatar
hu committed
3780 3781 3782 3783
            if (TPMS_Matching.T05 == 1u)
            {
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai1, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
            }
hu's avatar
hu committed
3784
            else
hu's avatar
hu committed
3785 3786 3787
            {
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai2, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
            }
hu's avatar
hu committed
3788 3789
        }

hu's avatar
hu committed
3790 3791 3792 3793
        /*0x32*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_0x32, GUI_BLENDMODE_SRC_OVER);/*0x32*/

        if (User_set_Num.User_Tpms == 6u)
hu's avatar
hu committed
3794
        {
hu's avatar
hu committed
3795
            if (User_set_Num.User_TpmsStatus == 1u)
hu's avatar
hu committed
3796
            {
hu's avatar
hu committed
3797
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai3, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[2u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
3798
            }
hu's avatar
hu committed
3799
            else if (User_set_Num.User_TpmsStatus == 2u)
hu's avatar
hu committed
3800
            {
hu's avatar
hu committed
3801 3802
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai1, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[2u], GUI_BLENDMODE_CUSTOM);

hu's avatar
hu committed
3803
                if (FLASH_SYNC_1Hz)
hu's avatar
hu committed
3804 3805 3806
                {
                    GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai_guang, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[2u], GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3807
                else
hu's avatar
hu committed
3808 3809 3810
                {
                    GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3811 3812 3813
            }
            else
            {
hu's avatar
hu committed
3814 3815 3816 3817
                if (TPMS_Matching.T06 == 1u)
                {
                    GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai1, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[2u], GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3818
                else
hu's avatar
hu committed
3819 3820 3821
                {
                    GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai2, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[2u], GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3822 3823 3824 3825
            }
        }
        else
        {
hu's avatar
hu committed
3826 3827 3828 3829
            if (TPMS_Matching.T06 == 1u)
            {
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai1, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[2u], GUI_BLENDMODE_CUSTOM);
            }
hu's avatar
hu committed
3830
            else
hu's avatar
hu committed
3831 3832 3833
            {
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai2, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[2u], GUI_BLENDMODE_CUSTOM);
            }
hu's avatar
hu committed
3834
        }
hu's avatar
hu committed
3835

hu's avatar
hu committed
3836 3837 3838 3839
        /*0x33*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_0x33, GUI_BLENDMODE_SRC_OVER);/*0x33*/

        if (User_set_Num.User_Tpms == 7u)
hu's avatar
hu committed
3840
        {
hu's avatar
hu committed
3841
            if (User_set_Num.User_TpmsStatus == 1u)
hu's avatar
hu committed
3842
            {
hu's avatar
hu committed
3843
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai3, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[1u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
3844
            }
hu's avatar
hu committed
3845
            else if (User_set_Num.User_TpmsStatus == 2u)
hu's avatar
hu committed
3846
            {
hu's avatar
hu committed
3847 3848
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai1, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[1u], GUI_BLENDMODE_CUSTOM);

hu's avatar
hu committed
3849
                if (FLASH_SYNC_1Hz)
hu's avatar
hu committed
3850 3851 3852
                {
                    GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai_guang, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[1u], GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3853
                else
hu's avatar
hu committed
3854 3855 3856
                {
                    GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3857 3858 3859
            }
            else
            {
hu's avatar
hu committed
3860 3861 3862 3863
                if (TPMS_Matching.T07 == 1u)
                {
                    GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai1, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[1u], GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3864
                else
hu's avatar
hu committed
3865 3866 3867
                {
                    GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai2, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[1u], GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3868 3869 3870 3871
            }
        }
        else
        {
hu's avatar
hu committed
3872 3873 3874 3875
            if (TPMS_Matching.T07 == 1u)
            {
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai1, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[1u], GUI_BLENDMODE_CUSTOM);
            }
hu's avatar
hu committed
3876
            else
hu's avatar
hu committed
3877 3878 3879
            {
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai2, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[1u], GUI_BLENDMODE_CUSTOM);
            }
hu's avatar
hu committed
3880
        }
hu's avatar
hu committed
3881

hu's avatar
hu committed
3882 3883 3884 3885
        /*0x34*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_0x34, GUI_BLENDMODE_SRC_OVER);/*0x34*/

        if (User_set_Num.User_Tpms == 8u)
hu's avatar
hu committed
3886
        {
hu's avatar
hu committed
3887
            if (User_set_Num.User_TpmsStatus == 1u)
hu's avatar
hu committed
3888
            {
hu's avatar
hu committed
3889
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai3, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
3890
            }
hu's avatar
hu committed
3891
            else if (User_set_Num.User_TpmsStatus == 2u)
hu's avatar
hu committed
3892
            {
hu's avatar
hu committed
3893 3894
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai1, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);

hu's avatar
hu committed
3895
                if (FLASH_SYNC_1Hz)
hu's avatar
hu committed
3896 3897 3898
                {
                    GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai_guang, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3899
                else
hu's avatar
hu committed
3900 3901 3902
                {
                    GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3903 3904 3905
            }
            else
            {
hu's avatar
hu committed
3906 3907 3908 3909
                if (TPMS_Matching.T08 == 1u)
                {
                    GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai1, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3910
                else
hu's avatar
hu committed
3911 3912 3913
                {
                    GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai2, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3914 3915 3916 3917
            }
        }
        else
        {
hu's avatar
hu committed
3918 3919 3920 3921
            if (TPMS_Matching.T08 == 1u)
            {
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai1, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
            }
hu's avatar
hu committed
3922
            else
hu's avatar
hu committed
3923 3924 3925
            {
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai2, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
            }
hu's avatar
hu committed
3926
        }
hu's avatar
hu committed
3927

hu's avatar
hu committed
3928 3929 3930 3931
        /*0x41*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_0x41, GUI_BLENDMODE_SRC_OVER);/*0x41*/

        if (User_set_Num.User_Tpms == 9u)
hu's avatar
hu committed
3932
        {
hu's avatar
hu committed
3933
            if (User_set_Num.User_TpmsStatus == 1u)
hu's avatar
hu committed
3934
            {
hu's avatar
hu committed
3935
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai3, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
3936
            }
hu's avatar
hu committed
3937
            else if (User_set_Num.User_TpmsStatus == 2u)
hu's avatar
hu committed
3938
            {
hu's avatar
hu committed
3939 3940
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai1, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);

hu's avatar
hu committed
3941
                if (FLASH_SYNC_1Hz)
hu's avatar
hu committed
3942 3943 3944
                {
                    GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai_guang, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3945
                else
hu's avatar
hu committed
3946 3947 3948
                {
                    GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3949 3950 3951
            }
            else
            {
hu's avatar
hu committed
3952 3953 3954 3955
                if (TPMS_Matching.T09 == 1u)
                {
                    GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai1, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3956
                else
hu's avatar
hu committed
3957 3958 3959
                {
                    GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai2, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3960 3961 3962 3963
            }
        }
        else
        {
hu's avatar
hu committed
3964 3965 3966 3967
            if (TPMS_Matching.T09 == 1u)
            {
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai1, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
            }
hu's avatar
hu committed
3968
            else
hu's avatar
hu committed
3969 3970 3971
            {
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai2, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
            }
hu's avatar
hu committed
3972
        }
hu's avatar
hu committed
3973

hu's avatar
hu committed
3974 3975 3976 3977
        /*0x42*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_0x42, GUI_BLENDMODE_SRC_OVER);/*0x42*/

        if (User_set_Num.User_Tpms == 10u)
hu's avatar
hu committed
3978
        {
hu's avatar
hu committed
3979
            if (User_set_Num.User_TpmsStatus == 1u)
hu's avatar
hu committed
3980
            {
hu's avatar
hu committed
3981
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai3, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[2u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
3982
            }
hu's avatar
hu committed
3983
            else if (User_set_Num.User_TpmsStatus == 2u)
hu's avatar
hu committed
3984
            {
hu's avatar
hu committed
3985 3986
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai1, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[2u], GUI_BLENDMODE_CUSTOM);

hu's avatar
hu committed
3987
                if (FLASH_SYNC_1Hz)
hu's avatar
hu committed
3988 3989 3990
                {
                    GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai_guang, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[2u], GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3991
                else
hu's avatar
hu committed
3992 3993 3994
                {
                    GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
3995 3996 3997
            }
            else
            {
hu's avatar
hu committed
3998 3999 4000 4001
                if (TPMS_Matching.T10 == 1u)
                {
                    GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai1, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[2u], GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
4002
                else
hu's avatar
hu committed
4003 4004 4005
                {
                    GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai2, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[2u], GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
4006 4007 4008 4009
            }
        }
        else
        {
hu's avatar
hu committed
4010 4011 4012 4013
            if (TPMS_Matching.T10 == 1u)
            {
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai1, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[2u], GUI_BLENDMODE_CUSTOM);
            }
hu's avatar
hu committed
4014
            else
hu's avatar
hu committed
4015 4016 4017
            {
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai2, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[2u], GUI_BLENDMODE_CUSTOM);
            }
hu's avatar
hu committed
4018
        }
hu's avatar
hu committed
4019

hu's avatar
hu committed
4020 4021 4022 4023
        /*0x43*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_0x43, GUI_BLENDMODE_SRC_OVER);/*0x43*/

        if (User_set_Num.User_Tpms == 11u)
hu's avatar
hu committed
4024
        {
hu's avatar
hu committed
4025
            if (User_set_Num.User_TpmsStatus == 1u)
hu's avatar
hu committed
4026
            {
hu's avatar
hu committed
4027
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai3, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[1u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
4028
            }
hu's avatar
hu committed
4029
            else if (User_set_Num.User_TpmsStatus == 2u)
hu's avatar
hu committed
4030
            {
hu's avatar
hu committed
4031 4032
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai1, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[1u], GUI_BLENDMODE_CUSTOM);

hu's avatar
hu committed
4033
                if (FLASH_SYNC_1Hz)
hu's avatar
hu committed
4034 4035 4036
                {
                    GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai_guang, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[1u], GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
4037
                else
hu's avatar
hu committed
4038 4039 4040
                {
                    GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
4041 4042 4043
            }
            else
            {
hu's avatar
hu committed
4044 4045 4046 4047
                if (TPMS_Matching.T11 == 1u)
                {
                    GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai1, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[1u], GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
4048
                else
hu's avatar
hu committed
4049 4050 4051
                {
                    GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai2, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[1u], GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
4052 4053 4054 4055
            }
        }
        else
        {
hu's avatar
hu committed
4056 4057 4058 4059
            if (TPMS_Matching.T11 == 1u)
            {
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai1, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[1u], GUI_BLENDMODE_CUSTOM);
            }
hu's avatar
hu committed
4060
            else
hu's avatar
hu committed
4061 4062 4063
            {
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai2, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[1u], GUI_BLENDMODE_CUSTOM);
            }
hu's avatar
hu committed
4064
        }
hu's avatar
hu committed
4065

hu's avatar
hu committed
4066 4067 4068 4069
        /*0x44*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_0x44, GUI_BLENDMODE_SRC_OVER);/*0x44*/

        if (User_set_Num.User_Tpms == 12u)
hu's avatar
hu committed
4070
        {
hu's avatar
hu committed
4071
            if (User_set_Num.User_TpmsStatus == 1u)
hu's avatar
hu committed
4072
            {
hu's avatar
hu committed
4073
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai3, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
4074
            }
hu's avatar
hu committed
4075
            else if (User_set_Num.User_TpmsStatus == 2u)
hu's avatar
hu committed
4076
            {
hu's avatar
hu committed
4077 4078
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai1, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);

hu's avatar
hu committed
4079
                if (FLASH_SYNC_1Hz)
hu's avatar
hu committed
4080 4081 4082
                {
                    GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai_guang, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
4083
                else
hu's avatar
hu committed
4084 4085 4086
                {
                    GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
4087 4088 4089
            }
            else
            {
hu's avatar
hu committed
4090 4091 4092 4093
                if (TPMS_Matching.T12 == 1u)
                {
                    GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai1, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
4094
                else
hu's avatar
hu committed
4095 4096 4097
                {
                    GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai2, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
4098 4099 4100 4101
            }
        }
        else
        {
hu's avatar
hu committed
4102 4103 4104 4105
            if (TPMS_Matching.T12 == 1u)
            {
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai1, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
            }
hu's avatar
hu committed
4106
            else
hu's avatar
hu committed
4107 4108 4109
            {
                GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_03_luntai2, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
            }
hu's avatar
hu committed
4110
        }
hu's avatar
hu committed
4111

hu's avatar
hu committed
4112
        /*清楚闪烁*/
hu's avatar
hu committed
4113
        if (User_set_Num.User_TpmsStatus != 2)
hu's avatar
hu committed
4114 4115 4116
        {
            GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
        }
hu's avatar
hu committed
4117

hu's avatar
hu committed
4118 4119 4120 4121 4122 4123
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
hu's avatar
hu committed
4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177




















/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_Enter_Return_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_Enter_Return_Display(uint8_t Mode)
{
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        /*显示*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_wenzi, GUI_BLENDMODE_SRC_OVER); /*menu*/
        GUI_General_Display(MENU_Sprite, CN_fengexian, GUI_BLENDMODE_SRC_OVER);           /*line*/

        if (State_Flag.ENTER_RETURN == 0)
        {
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_7, GUI_BLENDMODE_SRC_OVER);
            GUI_General_Display(MENU_Sprite, CN_white_yes, GUI_BLENDMODE_SRC_OVER);
            GUI_General_Display(MENU_Sprite, CN_white_no, GUI_BLENDMODE_SRC_OVER);
        }
        else
        {
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_8, GUI_BLENDMODE_SRC_OVER);
            GUI_General_Display(MENU_Sprite, CN_grey_yes, GUI_BLENDMODE_SRC_OVER);
            GUI_General_Display(MENU_Sprite, CN_grey_no, GUI_BLENDMODE_SRC_OVER);
        }
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}