GUI.c 218 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
#include "CAN_FUNC.h"
hu's avatar
hu committed
26
#include "key.h"
27
#include "Data_Voltmeter.h"
28
#include "Data_AirPressure.h"
hu's avatar
hu committed
29

hu's avatar
hu committed
30 31
#define TRAPA 0u
#define TRAPB 1u
hu's avatar
hu committed
32

hu's avatar
hu committed
33 34
uint32_t HYQ_TEST = 3;

hu's avatar
hu committed
35
volatile _Display_State_Flag State_Flag; /*0-常态 1-小于0 2-小于1000 3-无此功能*/
hu's avatar
hu committed
36 37 38
_TPMS TPMS_Matching;
_UserSet User_set_Num;
_UserSet User_App;
hu's avatar
hu committed
39

hu's avatar
hu committed
40 41
/*-------------------------------------------------------------------------
 * Function Name  : GUI_Display_KL15_ON_Init
hu's avatar
hu committed
42
 * Description    :
hu's avatar
hu committed
43 44 45 46 47 48 49
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : None
 --------------------------------------------------------------------------*/
void GUI_Display_KL15_ON_Init(void)
{
hu's avatar
hu committed
50
    loc_enable_mem(WET_Sprite, Calendar_Sprite);
hu's avatar
hu committed
51
    GUI_Display_Value_Init();
hu's avatar
hu committed
52
    GUI_Display_background();
hu's avatar
hu committed
53 54 55
}
/*-------------------------------------------------------------------------
 * Function Name  : GUI_Display_KL15_OFF_Init
hu's avatar
hu committed
56
 * Description    :
hu's avatar
hu committed
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
 * 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)
{
78
    GUI_General_Display(WET_Sprite, ditu_2, GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
79
}
hu's avatar
hu committed
80 81 82

void GUI_Display_Value_Init(void)
{
hu's avatar
hu committed
83 84 85 86 87
    /*菜单状态初始化*/
    State_Flag.FState_GZM     = 1u ;
    State_Flag.FState_WXTZ    = 2u ;
    State_Flag.FState_WXSD    = 2u ;
    State_Flag.FState_YHSD    = 2u ;
hu's avatar
hu committed
88
    State_Flag.FState_SYSYS   = 2u ;
hu's avatar
hu committed
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 115 116 117
    State_Flag.FState_TPMS    = 2u ;
    State_Flag.FState_ECO     = 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
118
    State_Flag.USER_LANGUAGE  = 2u ;
hu's avatar
hu committed
119 120 121
    State_Flag.USER_COMPANY   = 2u ;
    State_Flag.USER_LIGHT     = 2u ;
    State_Flag.FState_TPMSSET = 2u ;
hu's avatar
hu committed
122

hu's avatar
hu committed
123 124 125 126 127
    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
128 129 130
    State_Flag.FState_ClearOilTx = 0u;
    State_Flag.FState_ClearOilRx = 1u;
    State_Flag.FState_COilTimeOut = FState_COilTimeOutNum;
hu's avatar
hu committed
131 132 133 134

    /*应用*/
    User_App.User_Language        = 1u ;
    User_App.User_Company         = 1u ;
hu's avatar
hu committed
135
    User_App.User_Light           = 10u ;        /*背光初始化*/
hu's avatar
hu committed
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189

    /*保养状态标识*/
    if (K_Line_Set.K_Line_LID4F)
        State_Flag.User_FDJYLQQ_FLAG = 0u;
    else
        State_Flag.User_FDJYLQQ_FLAG = 3u;

    if (K_Line_User_RYLQQ)
        State_Flag.User_RYLQQ_FLAG  = 0u;
    else
        State_Flag.User_RYLQQ_FLAG  = 3u;

    if (K_Line_Set.K_Line_LID4A)
        State_Flag.User_BSXY_FLAG   = 0u;
    else
        State_Flag.User_BSXY_FLAG   = 3u;

    if (K_Line_Set.K_Line_LID4B)
        State_Flag.User_CSQY_FLAG   = 0u;
    else
        State_Flag.User_CSQY_FLAG   = 3u;

    if (K_Line_User_KQGZJ)
        State_Flag.User_KQGZJ_FLAG  = 0u;
    else
        State_Flag.User_KQGZJ_FLAG  = 3u;

    if (K_Line_Set.K_Line_LID4D)
        State_Flag.User_DLZXY_FLAG  = 0u;
    else
        State_Flag.User_DLZXY_FLAG  = 3u;

    if (K_Line_Set.K_Line_LID4E)
        State_Flag.User_LT_FLAG     = 0u;
    else
        State_Flag.User_LT_FLAG     = 3u;

    User_App.User_FDJYLQQ         = (uint32_t)K_Line_Set.K_Line_LID4F * 1000u ;  /*发动机油*/
    User_App.User_RYLQQ           = (uint32_t)K_Line_User_RYLQQ * 1000u       ;  /*燃油滤清器*/
    User_App.User_BSXY            = (uint32_t)K_Line_Set.K_Line_LID4A * 1000u ;  /*变速箱油*/
    User_App.User_CSQY            = (uint32_t)K_Line_Set.K_Line_LID4B * 1000u ;  /*差速器油*/
    User_App.User_KQGZJ           = (uint32_t)K_Line_User_KQGZJ * 1000u       ;  /*空气干燥剂*/
    User_App.User_DLZXY           = (uint32_t)K_Line_Set.K_Line_LID4D * 1000u ;  /*动力转向油*/
    User_App.User_LT              = (uint32_t)K_Line_Set.K_Line_LID4E * 1000u ;  /*轮胎*/

    User_set_Num.User_FDJYLQQ     =  User_App.User_FDJYLQQ ;
    User_set_Num.User_RYLQQ       =  User_App.User_RYLQQ   ;
    User_set_Num.User_BSXY        =  User_App.User_BSXY    ;
    User_set_Num.User_CSQY        =  User_App.User_CSQY    ;
    User_set_Num.User_KQGZJ       =  User_App.User_KQGZJ   ;
    User_set_Num.User_DLZXY       =  User_App.User_DLZXY   ;
    User_set_Num.User_LT          =  User_App.User_LT      ;

    /*用户设定*/
hu's avatar
hu committed
190 191 192
    User_set_Num.User_Language    =  User_App.User_Language;
    User_set_Num.User_Company     =  User_App.User_Company ;
    User_set_Num.User_Light       =  User_App.User_Light   ;
hu's avatar
hu committed
193 194 195

    User_App.User_Gsl             = 0xFFu;
    User_App.User_Ybl             = 0xFFu;
hu's avatar
hu committed
196 197 198 199 200
    User_App.User_Speed           = K_Line_Set.K_Line_LID45;   /*发动机转速*/
    User_App.User_JADD            = K_Line_Set.K_Line_LID46;   /*急加速*/
    User_App.User_JSUB            = K_Line_Set.K_Line_LID47;   /*急减速*/
    User_App.User_IDLING          = K_Line_Set.K_Line_LID48;   /*长时间怠速*/
    User_App.User_Parking         = K_Line_Set.K_Line_LID49;   /*辅助驻车*/
hu's avatar
hu committed
201

hu's avatar
hu committed
202 203 204 205 206 207 208
    User_set_Num.User_Gsl         = User_App.User_Gsl      ;
    User_set_Num.User_Ybl         = User_App.User_Ybl      ;
    User_set_Num.User_Speed       = User_App.User_Speed    ;
    User_set_Num.User_JADD        = User_App.User_JADD     ;
    User_set_Num.User_JSUB        = User_App.User_JSUB     ;
    User_set_Num.User_IDLING      = User_App.User_IDLING   ;
    User_set_Num.User_Parking     = User_App.User_Parking  ;
hu's avatar
hu committed
209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379

    //MenuFlag.Sig.Menu_Flag = 0;
#if 0
    User_TPMS12.Tire_Pressure         = 0 ;
    User_TPMS12.Tire_Temperature_Sign = 0 ;
    User_TPMS12.Tire_Temperature      = 0 ;
    User_TPMS12.Data_updating         = 0 ;
    User_TPMS12.Data_invalid          = 0 ;

    User_TPMS12.Low_Presure_Alarm     = 0 ;
    User_TPMS12.High_Presure_Alarm    = 0 ;
    User_TPMS12.High_Temperature_Alarm = 0 ;
    User_TPMS12.Fast_air_leakage_Alarm = 0 ;
    User_TPMS12.Low_Voltage_Alarm     = 0 ;
    User_TPMS12.No_signal_Alarm       = 0 ;
    User_TPMS12.Sensor_fault_information = 0 ;

    User_TPMS13.Tire_Pressure         = 0 ;
    User_TPMS13.Tire_Temperature_Sign = 0 ;
    User_TPMS13.Tire_Temperature      = 0 ;
    User_TPMS13.Data_updating         = 0 ;
    User_TPMS13.Data_invalid          = 0 ;

    User_TPMS13.Low_Presure_Alarm     = 0 ;
    User_TPMS13.High_Presure_Alarm    = 0 ;
    User_TPMS13.High_Temperature_Alarm = 0 ;
    User_TPMS13.Fast_air_leakage_Alarm = 0 ;
    User_TPMS13.Low_Voltage_Alarm     = 0 ;
    User_TPMS13.No_signal_Alarm       = 0 ;
    User_TPMS13.Sensor_fault_information = 0 ;

    User_TPMS22.Tire_Pressure         = 0 ;
    User_TPMS22.Tire_Temperature_Sign = 0 ;
    User_TPMS22.Tire_Temperature      = 0 ;
    User_TPMS22.Data_updating         = 0 ;
    User_TPMS22.Data_invalid          = 0 ;

    User_TPMS22.Low_Presure_Alarm     = 0 ;
    User_TPMS22.High_Presure_Alarm    = 0 ;
    User_TPMS22.High_Temperature_Alarm = 0 ;
    User_TPMS22.Fast_air_leakage_Alarm = 0 ;
    User_TPMS22.Low_Voltage_Alarm     = 0 ;
    User_TPMS22.No_signal_Alarm       = 0 ;
    User_TPMS22.Sensor_fault_information = 0 ;

    User_TPMS23.Tire_Pressure         = 0 ;
    User_TPMS23.Tire_Temperature_Sign = 0 ;
    User_TPMS23.Tire_Temperature      = 0 ;
    User_TPMS23.Data_updating         = 0 ;
    User_TPMS23.Data_invalid          = 0 ;

    User_TPMS23.Low_Presure_Alarm     = 0 ;
    User_TPMS23.High_Presure_Alarm    = 0 ;
    User_TPMS23.High_Temperature_Alarm = 0 ;
    User_TPMS23.Fast_air_leakage_Alarm = 0 ;
    User_TPMS23.Low_Voltage_Alarm     = 0 ;
    User_TPMS23.No_signal_Alarm       = 0 ;
    User_TPMS23.Sensor_fault_information = 0 ;

    User_TPMS31.Tire_Pressure         = 0 ;
    User_TPMS31.Tire_Temperature_Sign = 0 ;
    User_TPMS31.Tire_Temperature      = 0 ;
    User_TPMS31.Data_updating         = 0 ;
    User_TPMS31.Data_invalid          = 0 ;

    User_TPMS31.Low_Presure_Alarm     = 0 ;
    User_TPMS31.High_Presure_Alarm    = 0 ;
    User_TPMS31.High_Temperature_Alarm = 0 ;
    User_TPMS31.Fast_air_leakage_Alarm = 0 ;
    User_TPMS31.Low_Voltage_Alarm     = 0 ;
    User_TPMS31.No_signal_Alarm       = 0 ;
    User_TPMS31.Sensor_fault_information = 0 ;

    User_TPMS32.Tire_Pressure         = 0 ;
    User_TPMS32.Tire_Temperature_Sign = 0 ;
    User_TPMS32.Tire_Temperature      = 0 ;
    User_TPMS32.Data_updating         = 0 ;
    User_TPMS32.Data_invalid          = 0 ;

    User_TPMS32.Low_Presure_Alarm     = 0 ;
    User_TPMS32.High_Presure_Alarm    = 0 ;
    User_TPMS32.High_Temperature_Alarm = 0 ;
    User_TPMS32.Fast_air_leakage_Alarm = 0 ;
    User_TPMS32.Low_Voltage_Alarm     = 0 ;
    User_TPMS32.No_signal_Alarm       = 0 ;
    User_TPMS32.Sensor_fault_information = 0 ;

    User_TPMS33.Tire_Pressure         = 0 ;
    User_TPMS33.Tire_Temperature_Sign = 0 ;
    User_TPMS33.Tire_Temperature      = 0 ;
    User_TPMS33.Data_updating         = 0 ;
    User_TPMS33.Data_invalid          = 0 ;

    User_TPMS33.Low_Presure_Alarm     = 0 ;
    User_TPMS33.High_Presure_Alarm    = 0 ;
    User_TPMS33.High_Temperature_Alarm = 0 ;
    User_TPMS33.Fast_air_leakage_Alarm = 0 ;
    User_TPMS33.Low_Voltage_Alarm     = 0 ;
    User_TPMS33.No_signal_Alarm       = 0 ;
    User_TPMS33.Sensor_fault_information = 0 ;

    User_TPMS34.Tire_Pressure         = 0 ;
    User_TPMS34.Tire_Temperature_Sign = 0 ;
    User_TPMS34.Tire_Temperature      = 0 ;
    User_TPMS34.Data_updating         = 0 ;
    User_TPMS34.Data_invalid          = 0 ;

    User_TPMS34.Low_Presure_Alarm     = 0 ;
    User_TPMS34.High_Presure_Alarm    = 0 ;
    User_TPMS34.High_Temperature_Alarm = 0 ;
    User_TPMS34.Fast_air_leakage_Alarm = 0 ;
    User_TPMS34.Low_Voltage_Alarm     = 0 ;
    User_TPMS34.No_signal_Alarm       = 0 ;
    User_TPMS34.Sensor_fault_information = 0 ;

    User_TPMS41.Tire_Pressure         = 0 ;
    User_TPMS41.Tire_Temperature_Sign = 0 ;
    User_TPMS41.Tire_Temperature      = 0 ;
    User_TPMS41.Data_updating         = 0 ;
    User_TPMS41.Data_invalid          = 0 ;

    User_TPMS41.Low_Presure_Alarm     = 0 ;
    User_TPMS41.High_Presure_Alarm    = 0 ;
    User_TPMS41.High_Temperature_Alarm = 0 ;
    User_TPMS41.Fast_air_leakage_Alarm = 0 ;
    User_TPMS41.Low_Voltage_Alarm     = 0 ;
    User_TPMS41.No_signal_Alarm       = 0 ;
    User_TPMS41.Sensor_fault_information = 0 ;

    User_TPMS42.Tire_Pressure         = 0 ;
    User_TPMS42.Tire_Temperature_Sign = 0 ;
    User_TPMS42.Tire_Temperature      = 0 ;
    User_TPMS42.Data_updating         = 0 ;
    User_TPMS42.Data_invalid          = 0 ;

    User_TPMS42.Low_Presure_Alarm     = 0 ;
    User_TPMS42.High_Presure_Alarm    = 0 ;
    User_TPMS42.High_Temperature_Alarm = 0 ;
    User_TPMS42.Fast_air_leakage_Alarm = 0 ;
    User_TPMS42.Low_Voltage_Alarm     = 0 ;
    User_TPMS42.No_signal_Alarm       = 0 ;
    User_TPMS42.Sensor_fault_information = 0 ;

    User_TPMS43.Tire_Pressure         = 0 ;
    User_TPMS43.Tire_Temperature_Sign = 0 ;
    User_TPMS43.Tire_Temperature      = 0 ;
    User_TPMS43.Data_updating         = 0 ;
    User_TPMS43.Data_invalid          = 0 ;

    User_TPMS43.Low_Presure_Alarm     = 0 ;
    User_TPMS43.High_Presure_Alarm    = 0 ;
    User_TPMS43.High_Temperature_Alarm = 0 ;
    User_TPMS43.Fast_air_leakage_Alarm = 0 ;
    User_TPMS43.Low_Voltage_Alarm     = 0 ;
    User_TPMS43.No_signal_Alarm       = 0 ;
    User_TPMS43.Sensor_fault_information = 0 ;

    User_TPMS44.Tire_Pressure         = 0 ;
    User_TPMS44.Tire_Temperature_Sign = 0 ;
    User_TPMS44.Tire_Temperature      = 0 ;
    User_TPMS44.Data_updating         = 0 ;
    User_TPMS44.Data_invalid          = 0 ;

    User_TPMS44.Low_Presure_Alarm     = 0 ;
    User_TPMS44.High_Presure_Alarm    = 0 ;
    User_TPMS44.High_Temperature_Alarm = 0 ;
    User_TPMS44.Fast_air_leakage_Alarm = 0 ;
    User_TPMS44.Low_Voltage_Alarm     = 0 ;
    User_TPMS44.No_signal_Alarm       = 0 ;
    User_TPMS44.Sensor_fault_information = 0 ;
#endif
hu's avatar
hu committed
380
}
hu's avatar
hu committed
381 382 383 384 385 386
/*-------------------------------------------------------------------------
 * Function Name  : GUI_Display_OftenShow_Group
 * Description    : 常显界面
 * Input          : None
 * Output         : None
 * Return         : None
hu's avatar
hu committed
387
 * onther         : 常显功能界面均放在此处 此处显示区域 1 2 3 8
hu's avatar
hu committed
388
 --------------------------------------------------------------------------*/
hu's avatar
hu committed
389
void GUI_OftenShow_Display(void)
hu's avatar
hu committed
390
{
hu's avatar
hu committed
391
    GUI_AC_Temp_Dispaly(GUI_DISP_MODE_BLANK);
hu's avatar
hu committed
392 393 394 395 396 397
    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
398

hu's avatar
hu committed
399 400 401 402 403 404 405 406
    if (1)
    {
        Gui_TRIPA_Display(GUI_DISP_MODE_NORMAL);
    }
    else
    {
        Gui_TRIPB_Display(GUI_DISP_MODE_NORMAL);
    }
hu's avatar
hu committed
407
}
hu's avatar
hu committed
408

hu's avatar
hu committed
409
/*-------------------------------------------------------------------------
hu's avatar
hu committed
410 411
 * Function Name  : GUI_Dynamic_DIsplay
 * Description    : 常显界面
hu's avatar
hu committed
412 413 414
 * Input          : None
 * Output         : None
 * Return         : None
hu's avatar
hu committed
415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 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
 * 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
470
void GUI_Time_Dispaly(uint8_t Mode)
hu's avatar
hu committed
471
{
hu's avatar
hu committed
472
    uint8_t Time_Hours = 0u;
hu's avatar
hu committed
473 474 475 476 477 478
    uint8_t Time_Minutes = 0u;

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

hu's avatar
hu committed
480
        if (0u) /*12小时*/
hu's avatar
hu committed
481 482 483
        {
            if (Time_Hours == 0)
            {
hu's avatar
hu committed
484
                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
485 486 487
            }
            else if (Time_Hours > 12u)
            {
hu's avatar
hu committed
488
                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
489 490 491
            }
            else
            {
hu's avatar
hu committed
492
                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
493 494 495 496
            }
        }
        else
        {
hu's avatar
hu committed
497
            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
498 499 500 501 502 503 504 505 506 507 508
        }

        /*分钟*/
        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);
        }
hu's avatar
hu committed
509 510 511 512 513

        Time_Minutes = Get_RTC_MINUTE();

        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
514 515 516 517 518 519 520 521 522 523 524 525 526 527 528
    }
    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
529
void GUI_Data_Dispaly(uint8_t Mode)
hu's avatar
hu committed
530
{
hu's avatar
hu committed
531 532 533 534
    uint16_t Year = 0u; /*年*/
    uint8_t Month = 0u; /*月*/
    uint8_t Date = 0u;  /*日*/
    uint8_t Week = 0u;  /*星期*/
hu's avatar
hu committed
535 536 537

    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
538
        Year = 2000 + Get_RTC_YEAR();
hu's avatar
hu committed
539
        Month = Get_RTC_MONTH();
hu's avatar
hu committed
540 541
        Date = Get_RTC_DATE();
        Week = Get_RTC_WEEK();
hu's avatar
hu committed
542 543 544 545

        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
546
        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
547
        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
548
        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
549 550

        GUI_General_Display(Calendar_Sprite, GUIWedk[Week], GUI_BLENDMODE_SRC_OVER); /*星期 */
hu's avatar
hu committed
551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567
    }
    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
568 569 570
    uint32_t Veh_SpeedLim = 0u;
    uint32_t Veh_Speed = 0u;

hu's avatar
hu committed
571 572
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
573 574 575 576 577
        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
578 579 580 581 582
        {
            GUI_General_Display(WarningLight_Sprite, CN_Alarm_01, GUI_BLENDMODE_SRC_OVER);
        }
        else
        {
hu's avatar
hu committed
583
            GUI_General_Display(WarningLight_Sprite, SpriteSize, GUI_BLENDMODE_CUSTOM );
hu's avatar
hu committed
584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599
        }
    }
    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
600
void GUI_WetGas_Dispaly(uint8_t Mode)
hu's avatar
hu committed
601 602
{
    uint8_t current_value = 0u;
603
    uint8_t current_Flag = 1u; /*有效性*/
hu's avatar
hu committed
604 605 606

    if (Mode == GUI_DISP_MODE_NORMAL)
    {
607
        current_value = GetGaugesCurrentPos(WETGasGauges);
608
        //current_Flag = Common_Get_WET_Valid();  /*有效性判断用*/
hu's avatar
hu committed
609

610
        if ((current_value <= 17u) && (current_Flag == 1u))
hu's avatar
hu committed
611
        {
hu's avatar
hu committed
612
            GUI_General_Display(WET_Sprite, CN_qiya, GUI_BLENDMODE_SRC_OVER); /*刷长条的气压表框。*/
hu's avatar
hu committed
613 614 615 616 617 618 619 620
        }
        else
        {
            GUI_General_Display(WET_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
        }

        switch (current_value)
        {
hu's avatar
hu committed
621 622 623 624 625 626 627
        case 0x14u: /*20*/
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x13), 405u, GUI_BLENDMODE_SRC_OVER);
        case 0x13u:
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x12), 405u, GUI_BLENDMODE_SRC_OVER);
        case 0x12u:
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x11), 405u, GUI_BLENDMODE_SRC_OVER);
        case 0x11u: /*17*/
hu's avatar
hu committed
628
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x10), 405u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
629
        case 0x10u:
hu's avatar
hu committed
630
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x0F), 405u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
631
        case 0x0Fu:
hu's avatar
hu committed
632
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x0E), 405u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
633
        case 0x0Eu:
hu's avatar
hu committed
634
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x0D), 405u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
635
        case 0x0Du:
hu's avatar
hu committed
636
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x0C), 405u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
637
        case 0x0Cu:
hu's avatar
hu committed
638
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x0B), 405u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
639
        case 0x0Bu:
hu's avatar
hu committed
640
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x0A), 405u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
641
        case 0x0Au:
hu's avatar
hu committed
642
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x09), 405u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
643
        case 0x09u:
hu's avatar
hu committed
644
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x08), 405u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
645
        case 0x08u:
hu's avatar
hu committed
646
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x07), 405u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
647
        case 0x07u:
hu's avatar
hu committed
648
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x06), 405u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
649
        case 0x06u:
hu's avatar
hu committed
650
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x05), 405u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
651
        case 0x05u:
hu's avatar
hu committed
652
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x04), 405u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
653
        case 0x04u:
hu's avatar
hu committed
654
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x03), 405u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
655
        case 0x03u:
hu's avatar
hu committed
656
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x02), 405u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
657
        case 0x02u:
hu's avatar
hu committed
658
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x01), 405u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
659
        case 0x01u:
hu's avatar
hu committed
660 661
            GUI_Translate_Display(WET_Sprite, CN_qiyazouge_01, (145u + 8u * 0x00), 405u, GUI_BLENDMODE_SRC_OVER);
            break;
hu's avatar
hu committed
662
        default:
hu's avatar
hu committed
663 664 665
            GUI_General_Display(WET_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
            break;
        }
hu's avatar
hu committed
666 667

        GUI_General_Display(WET_Sprite, CN_qiyafuhaodeng, GUI_BLENDMODE_SRC_OVER); /*气压符号灯。*/
hu's avatar
hu committed
668 669 670 671 672 673 674 675 676 677 678 679 680 681
    }
    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
682
void GUI_AdBlue_Dispaly(uint8_t Mode)
hu's avatar
hu committed
683
{
hu's avatar
hu committed
684 685 686
    uint8_t Tank_value = 0u;
    uint8_t CanStatus = 0u;
    uint8_t Level_blinking = 0u;
hu's avatar
hu committed
687 688 689

    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
690
        if ((K_Line_Set.K_Line_LID33 == 1u) || (K_Line_Set.K_Line_LID33 == 3u))
hu's avatar
hu committed
691 692
        {
            CanStatus = CAN_MSG_Status(ID_CanMsg18FF2300_Msg_Count);
hu's avatar
hu committed
693

hu's avatar
hu committed
694 695 696 697 698 699 700 701
            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
702

hu's avatar
hu committed
703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748
                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:
hu's avatar
hu committed
749
                GUI_General_Display(AdBlue_Sprite, CN_tianlanye, GUI_BLENDMODE_SRC_OVER); /*框*/
hu's avatar
hu committed
750 751 752 753
                GUI_Translate_Display(AdBlue_Sprite, CN_tianlanyezouge_01, (152u + 31u * 0x00u), 450u, GUI_BLENDMODE_SRC_OVER);
                break;

            case 0x01u:
hu's avatar
hu committed
754
                GUI_General_Display(AdBlue_Sprite, CN_tianlanye, GUI_BLENDMODE_SRC_OVER); /*框*/
hu's avatar
hu committed
755 756 757 758 759 760 761 762 763
                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
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
        {
            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
790
        GUI_General_Display(TRIP_Sprite, CN_TRIP, GUI_BLENDMODE_SRC_OVER);   /*显示文字 “ TRIP ”*/
hu's avatar
hu committed
791 792 793 794 795 796 797
        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
798
        GUI_Translate_Display(TRIP_Sprite, CN_ODO_danwei, 699u, 400u, GUI_BLENDMODE_SRC_OVER); /*显示文字 “ km ”*/
hu's avatar
hu committed
799 800 801 802 803 804 805 806 807 808 809 810 811 812 813
    }
    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
814
        GUI_General_Display(TRIP_Sprite, CN_TRIP, GUI_BLENDMODE_SRC_OVER);   /*显示文字 “ TRIP ”*/
hu's avatar
hu committed
815 816 817 818 819 820 821
        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
822
        GUI_Translate_Display(TRIP_Sprite, CN_ODO_danwei, 699u, 400u, GUI_BLENDMODE_SRC_OVER); /*显示文字 “ km ”*/
hu's avatar
hu committed
823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843
    }
    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)
    {
hu's avatar
hu committed
844
        ODO_value = (Data_ODO_Read() / 10u); /*此处需将ODO函数返回值赋给变量,ODO函数在其他文件中实现。*/
hu's avatar
hu committed
845

hu's avatar
hu committed
846
        GUI_General_Display(ODO_Sprite, CN_ODO, GUI_BLENDMODE_SRC_OVER);                                              /*显示文/*字 “ ODO ”*/
hu's avatar
hu committed
847
        GUI_Translate_Display(ODO_Sprite, CN_ODO_danwei, 699u, 436u, GUI_BLENDMODE_SRC_OVER);                         /*显示文字 “ km ”*/
hu's avatar
hu committed
848
        GUI_General_Digit_Display(ODO_Sprite, ODO_value, Nb_19_0, 7u, 6u, GUI_DISP_ODO, 425u, GUI_BLENDMODE_SRC_OVER); /*显示ODO的数值*/
hu's avatar
hu committed
849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866
    }
    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
867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886

    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
887 888 889 890 891

    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        if (K_Line_Set.K_Line_LID28 == 0x01)
        {
hu's avatar
hu committed
892 893 894
            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
895

hu's avatar
hu committed
896
            if ((CanStatusA1 == CAN_SIG_LOST) && (CanStatus2A == CAN_SIG_LOST) && (CanStatusA0 == CAN_SIG_LOST))
hu's avatar
hu committed
897 898 899 900 901
            {
                GUI_General_Display(ADAS_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
            }
            else
            {
hu's avatar
hu committed
902 903 904 905 906 907 908 909
                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
910 911 912 913 914 915 916 917
                /*刷文字“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
918
                if ((((Sys_Sta_A1 == 0u) || (Sys_Sta_A1 == 4u)) && (CanStatusA1 == CAN_SIG_NORMAL)) ||
hu's avatar
hu committed
919 920
                        (((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
921 922 923 924
                {
                    if (FLASH_SYNC_1Hz)
                    {
                        /*车*/
hu's avatar
hu committed
925
                        GUI_General_Display(ADAS_Sprite, CN_che_yinying_1, GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
926
                        /*道*/
hu's avatar
hu committed
927 928 929
                        GUI_General_Display(ADAS_Sprite, CN_Road1_yinying_1, GUI_BLENDMODE_SRC_OVER);
                        GUI_General_Display(ADAS_Sprite, CN_Road2_yinying_1, GUI_BLENDMODE_SRC_OVER);
                        GUI_General_Display(ADAS_Sprite, CN_Road3_yinying_1, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
930 931 932 933 934 935
                    }
                    else
                    {
                        GUI_General_Display(ADAS_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
                    }
                }
hu's avatar
hu committed
936 937 938 939 940
                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))))
                {
                    /*车*/
hu's avatar
hu committed
941
                    GUI_General_Display(ADAS_Sprite, CN_che_yinying_1, GUI_BLENDMODE_CUSTOM);
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

                    /*道*/
                    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
962 963
                {
                    /*车*/
hu's avatar
hu committed
964
                    GUI_General_Display(ADAS_Sprite, CN_che, GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
965 966

                    /*道*/
hu's avatar
hu committed
967
                    ADAS_Value = 3u;
hu's avatar
hu committed
968 969
                    switch (ADAS_Value)
                    {
hu's avatar
hu committed
970
                    case 3u:
hu's avatar
hu committed
971
                        GUI_General_Display(ADAS_Sprite, CN_Road1, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
972 973 974
                    case 2u:
                        GUI_General_Display(ADAS_Sprite, CN_Road2, GUI_BLENDMODE_SRC_OVER);
                    case 1u:
hu's avatar
hu committed
975
                        GUI_General_Display(ADAS_Sprite, CN_Road3, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
976
                        break;
hu's avatar
hu committed
977
                    default:
hu's avatar
hu committed
978
                        GUI_General_Display(ADAS_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
979 980 981 982 983
                        break;
                    }
                }
                else
                {
hu's avatar
hu committed
984
                    GUI_General_Display(ADAS_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
985 986 987 988 989 990 991 992
                }
            }
        }
        else
        {
            GUI_General_Display(ADAS_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
        }

hu's avatar
hu committed
993
        if (K_Line_Set.K_Line_LID27 == 0x01u)
hu's avatar
hu committed
994
        {
hu's avatar
hu committed
995
            LDW_Sys_Sta = Get_ID_18FE5BE8_Sig_Lane_Departure_Warning_Sys_Sta();
hu's avatar
hu committed
996

hu's avatar
hu committed
997 998
            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
999

hu's avatar
hu committed
1000 1001 1002 1003 1004 1005 1006 1007
            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)
                {
hu's avatar
hu committed
1008
                    GUI_General_Display(ADAS_Sprite, CN_LeftRoad_yinying_1, GUI_BLENDMODE_CUSTOM); /*虚*/
hu's avatar
hu committed
1009 1010 1011
                }
                else
                {
hu's avatar
hu committed
1012
                    GUI_General_Display(ADAS_Sprite, SpriteSize, GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
1013 1014 1015 1016 1017
                }

                /*右车道线*/
                if (FLASH_SYNC_1Hz == 1u)
                {
hu's avatar
hu committed
1018
                    GUI_General_Display(ADAS_Sprite, CN_RightRoad_yiying_1, GUI_BLENDMODE_CUSTOM); /*虚*/
hu's avatar
hu committed
1019 1020 1021
                }
                else
                {
hu's avatar
hu committed
1022
                    GUI_General_Display(ADAS_Sprite, SpriteSize, GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
1023 1024 1025 1026 1027 1028 1029
                }
            }
            else
            {
                /*左车道线*/
                if ((LDW_Sys_Sta == 3u) && (LLDW_Sta == 0u))
                {
hu's avatar
hu committed
1030
                    GUI_General_Display(ADAS_Sprite, CN_LeftRoad_yinying_1, GUI_BLENDMODE_CUSTOM); /*虚*/
hu's avatar
hu committed
1031 1032 1033
                }
                else if ((LDW_Sys_Sta == 3u) && (LLDW_Sta == 1u))
                {
hu's avatar
hu committed
1034
                    GUI_General_Display(ADAS_Sprite, CN_LeftRoad, GUI_BLENDMODE_CUSTOM); /*绿*/
hu's avatar
hu committed
1035 1036 1037
                }
                else if ((LDW_Sys_Sta == 5u) && (LLDI_Sta == 1u))
                {
hu's avatar
hu committed
1038 1039
                    GUI_General_Display(ADAS_Sprite, CN_LeftRoad_1, GUI_BLENDMODE_CUSTOM); /*黄*/

hu's avatar
hu committed
1040 1041
                    if (FLASH_SYNC_2_5_Hz == 1u)
                    {
hu's avatar
hu committed
1042
                        GUI_Translate_Display(ADAS_Sprite, CN_tanhao1, 125u, 257u, GUI_BLENDMODE_CUSTOM); /*左叹号*/
hu's avatar
hu committed
1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056
                    }
                    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))
                {
hu's avatar
hu committed
1057
                    GUI_General_Display(ADAS_Sprite, CN_RightRoad_yiying_1, GUI_BLENDMODE_CUSTOM); /*虚*/
hu's avatar
hu committed
1058 1059 1060
                }
                else if ((LDW_Sys_Sta == 3u) && (RLDW_Sta == 1u))
                {
hu's avatar
hu committed
1061
                    GUI_General_Display(ADAS_Sprite, CN_RightRoad, GUI_BLENDMODE_CUSTOM); /*绿*/
hu's avatar
hu committed
1062 1063 1064
                }
                else if ((LDW_Sys_Sta == 5u) && (RLDI_Sta == 1u))
                {
hu's avatar
hu committed
1065 1066
                    GUI_General_Display(ADAS_Sprite, CN_RightRoad_1, GUI_BLENDMODE_CUSTOM); /*黄*/

hu's avatar
hu committed
1067 1068
                    if (FLASH_SYNC_2_5_Hz == 1u)
                    {
hu's avatar
hu committed
1069
                        GUI_Translate_Display(ADAS_Sprite, CN_tanhao1, 339u, 257u, GUI_BLENDMODE_CUSTOM); /*右叹号*/
hu's avatar
hu committed
1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080
                    }
                    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
1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102
        }
        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
1103 1104 1105
    uint8_t VariableSLD_Disp = 0u;
    uint8_t VariableSLD_Status = 0u;
    uint8_t Var_SpeedValue = 0u;
hu's avatar
hu committed
1106 1107 1108 1109

    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        /*定速巡航图标*/
hu's avatar
hu committed
1110
        VariableSLD_Status = Get_ID_18FF4100_Sig_Cruise_VariableSLD_Cont_Staus(); /*3-5*/
hu's avatar
hu committed
1111
        VariableSLD_Disp = Get_ID_18FF4100_Sig_Cruise_VariableSLD_Disp();         /*6-8*/
hu's avatar
hu committed
1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182

        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
1183

hu's avatar
hu committed
1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208
        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
1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230
    }
    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;
1231 1232
    uint8_t Automatic_or_Manual_Mode = 0u;
    uint8_t CanStatus1 = 0u;
hu's avatar
hu committed
1233 1234 1235

    if (Mode == GUI_DISP_MODE_NORMAL)
    {
1236
        /*G1 自动挡 EOL设定为ZF变速器*/
hu's avatar
hu committed
1237 1238 1239 1240 1241 1242 1243
        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
1244

hu's avatar
hu committed
1245 1246 1247 1248 1249 1250 1251
            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
1252 1253 1254 1255 1256 1257 1258
            {
                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
1259
                    GUI_General_Display(Gear_Sprite, GUIGear[Temp], GUI_BLENDMODE_SRC_OVER); /*1-12*/
hu's avatar
hu committed
1260 1261 1262 1263
                }
            }
            else if (Current_Gear == 0x7Bu)
            {
hu's avatar
hu committed
1264
                GUI_General_Display(Gear_Sprite, CN_dangwei_R2, GUI_BLENDMODE_SRC_OVER); /*R2*/
hu's avatar
hu committed
1265 1266 1267 1268 1269
            }
            else if (Current_Gear == 0x7Cu)
            {
                if (Manouvering_Mode == 0x01u)
                {
hu's avatar
hu committed
1270
                    GUI_General_Display(Gear_Sprite, CN_dangwei_RM, GUI_BLENDMODE_SRC_OVER); /*RM*/
hu's avatar
hu committed
1271 1272 1273
                }
                else
                {
hu's avatar
hu committed
1274
                    GUI_General_Display(Gear_Sprite, CN_dangwei_R1, GUI_BLENDMODE_SRC_OVER); /*R1*/
hu's avatar
hu committed
1275 1276 1277 1278 1279 1280
                }
            }
            else if (Current_Gear == 0x7Du)
            {
                if (Transmission_Sift_Mode == 0x01u)
                {
hu's avatar
hu committed
1281
                    GUI_General_Display(Gear_Sprite, CN_dangwei_NE, GUI_BLENDMODE_SRC_OVER); /*NE*/
hu's avatar
hu committed
1282 1283 1284
                }
                else
                {
hu's avatar
hu committed
1285
                    GUI_General_Display(Gear_Sprite, CN_dangwei_N, GUI_BLENDMODE_SRC_OVER); /*N*/
hu's avatar
hu committed
1286 1287 1288 1289
                }
            }
            else
            {
hu's avatar
hu committed
1290
                GUI_General_Display(Gear_Sprite, CN_dangwei_buming, GUI_BLENDMODE_SRC_OVER); /*-*/
hu's avatar
hu committed
1291 1292 1293 1294 1295 1296 1297
            }
        }
        else
        {
            GUI_General_Display(Gear_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER); /*K未配*/
        }

1298 1299 1300 1301 1302
        /*G2*/
        Automatic_or_Manual_Mode = Get_ID_18FF8503_Sig_Automatic_or_Manual_Mode();

        if (CanStatus1 == CAN_SIG_LOST)
        {
hu's avatar
hu committed
1303
            GUI_General_Display(Gear_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER); /*不显示*/
1304 1305 1306
        }
        else if (Automatic_or_Manual_Mode == 0x00u)
        {
hu's avatar
hu committed
1307 1308 1309 1310 1311
            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 无图*/
1312 1313 1314
        }
        else
        {
hu's avatar
hu committed
1315
            GUI_General_Display(Gear_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER); /*不显示*/
1316
        }
hu's avatar
hu committed
1317 1318 1319 1320 1321 1322 1323
    }
    else
    {
        GUI_General_Display(Gear_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336
/*--------------------------------------------------------------------------
 * 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
1337
    else if (Mode == GUI_DISP_MODE_BLANK)
1338
    {
hu's avatar
hu committed
1339 1340 1341 1342
        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);

1343 1344
        switch (0u)
        {
hu's avatar
hu committed
1345 1346 1347 1348 1349
        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);
1350
            break;
hu's avatar
hu committed
1351 1352 1353 1354 1355 1356

        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);
1357
            break;
hu's avatar
hu committed
1358

hu's avatar
hu committed
1359
        default:
1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376
            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
1377
void GUI_Drive_Info_Avg_Speed_Display(uint16_t Speed)
1378 1379
{
    uint8_t CanStatus1 = 0u;
hu's avatar
hu committed
1380
    uint32_t Average_Speed = 0;
1381

hu's avatar
hu committed
1382
    CanStatus1 = CAN_MSG_Status(ID_CanMsg18EF1718_Msg_Count);
1383 1384 1385 1386 1387 1388 1389 1390

    if (CanStatus1 == CAN_SIG_LOST)
    {
        GUI_General_Display(MultiPurpose_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
    else
    {
        /*单位切换*/
hu's avatar
hu committed
1391
        if (1u)
1392
        {
hu's avatar
hu committed
1393
            GUI_General_Display(MultiPurpose_Sprite, CN_PJchesu_kmh, GUI_BLENDMODE_SRC_OVER); /*km/H*/
1394
        }
hu's avatar
hu committed
1395
        else
1396
        {
hu's avatar
hu committed
1397
            if (Speed == TRAPB) /*Trip B*/
1398
            {
hu's avatar
hu committed
1399
                GUI_General_Display(MultiPurpose_Sprite, CN_PJchesu_kmh, GUI_BLENDMODE_SRC_OVER); /*MPH*/
1400
            }
hu's avatar
hu committed
1401
            else /*Trip A ODO*/
1402
            {
hu's avatar
hu committed
1403
                GUI_General_Display(MultiPurpose_Sprite, CN_PJchesu_kmh, GUI_BLENDMODE_SRC_OVER); /*MPH*/
1404 1405
            }
        }
hu's avatar
hu committed
1406 1407

        /*单位切换*/
hu's avatar
hu committed
1408
        if (1u)
1409
        {
hu's avatar
hu committed
1410
            if (Speed == TRAPB) /*Trip B*/
1411
            {
hu's avatar
hu committed
1412 1413
                Average_Speed = Common_Data_Get_TripB_Average_Speed();

hu's avatar
hu committed
1414
                if (Average_Speed < 1000u)
1415
                {
hu's avatar
hu committed
1416
                    GUI_General_Digit_Display(MultiPurpose_Sprite, (Average_Speed / 10u), Nb_21_0, 4u, 3u, GUIBGAVGSpeedPosX, 305u, GUI_BLENDMODE_SRC_OVER);
1417 1418 1419
                }
                else
                {
hu's avatar
hu committed
1420 1421
                    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);
1422 1423 1424 1425
                }
            }
            else
            {
hu's avatar
hu committed
1426 1427
                Average_Speed = Common_Data_Get_TripA_Average_Speed();

hu's avatar
hu committed
1428
                if (Average_Speed < 1000u)
1429
                {
hu's avatar
hu committed
1430
                    GUI_General_Digit_Display(MultiPurpose_Sprite, (Average_Speed / 10u), Nb_21_0, 4u, 3u, GUIBGAVGSpeedPosX, 305u, GUI_BLENDMODE_SRC_OVER);
1431 1432 1433
                }
                else
                {
hu's avatar
hu committed
1434 1435
                    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);
1436 1437 1438
                }
            }
        }
hu's avatar
hu committed
1439 1440 1441 1442
        else
        {
            ;
        }
1443 1444 1445 1446 1447 1448 1449 1450 1451 1452
    }
}
/*--------------------------------------------------------------------------
 * Function Name  : GUI_Drive_Info_Avg_Fuel_Display
 * Description    : 平均油耗
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
hu's avatar
hu committed
1453
void GUI_Drive_Info_Avg_Fuel_Display(uint16_t Fuel)
1454 1455
{
    uint8_t CanStatus1 = 0u;
hu's avatar
hu committed
1456
    uint32_t AVGFuel = 0u;
1457

hu's avatar
hu committed
1458
    CanStatus1 = CAN_MSG_Status(ID_CanMsg18EF1718_Msg_Count);
1459 1460 1461 1462 1463 1464 1465 1466

    if (CanStatus1 == CAN_SIG_LOST)
    {
        GUI_General_Display(MultiPurpose_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
    else
    {
        /*单位切换*/
hu's avatar
hu committed
1467
        if (1u)
hu's avatar
hu committed
1468
        {
hu's avatar
hu committed
1469
            GUI_General_Display(MultiPurpose_Sprite, CN_PJyouhao_L100km, GUI_BLENDMODE_SRC_OVER); /*L/km*/
hu's avatar
hu committed
1470
        }
1471 1472
        else
        {
hu's avatar
hu committed
1473
            if (Fuel == TRAPB) /*Trip B*/
hu's avatar
hu committed
1474
            {
hu's avatar
hu committed
1475
                GUI_General_Display(MultiPurpose_Sprite, CN_PJyouhao_L100km, GUI_BLENDMODE_SRC_OVER); /*MPG*/
hu's avatar
hu committed
1476
            }
hu's avatar
hu committed
1477
            else /*Trip A ODO*/
hu's avatar
hu committed
1478
            {
hu's avatar
hu committed
1479
                GUI_General_Display(MultiPurpose_Sprite, CN_PJyouhao_L100km, GUI_BLENDMODE_SRC_OVER); /*L/m*/
hu's avatar
hu committed
1480
            }
1481 1482
        }

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

hu's avatar
hu committed
1485
        if (1u)
1486
        {
hu's avatar
hu committed
1487
            if (Fuel == TRAPB) /*Trip B*/
1488
            {
hu's avatar
hu committed
1489 1490 1491
                AVGFuel = Common_Data_Get_TripB_Fuel();

                if (AVGFuel > 1000u)
1492
                {
hu's avatar
hu committed
1493
                    GUI_General_Digit_Display(MultiPurpose_Sprite, (1000000u / AVGFuel), Nb_21_0, 4u, 2u, GUIBGAVGFuelPosX, 262u, GUI_BLENDMODE_SRC_OVER);
1494 1495 1496
                }
                else
                {
hu's avatar
hu committed
1497 1498 1499
                    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);
1500 1501 1502 1503
                }
            }
            else
            {
hu's avatar
hu committed
1504 1505 1506
                AVGFuel = Common_Data_Get_TripA_Fuel();

                if (AVGFuel > 1000u)
1507
                {
hu's avatar
hu committed
1508
                    GUI_General_Digit_Display(MultiPurpose_Sprite, (1000000u / AVGFuel), Nb_21_0, 4u, 2u, GUIBGAVGFuelPosX, 262u, GUI_BLENDMODE_SRC_OVER);
1509 1510 1511
                }
                else
                {
hu's avatar
hu committed
1512 1513 1514
                    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);
1515 1516 1517 1518 1519
                }
            }
        }
        else
        {
hu's avatar
hu committed
1520
            if (Fuel == TRAPB) /*Trip B   系数1.069*/
1521
            {
hu's avatar
hu committed
1522 1523 1524
                AVGFuel = Common_Data_Get_TripB_Fuel();

                if (AVGFuel > 1000u)
1525
                {
hu's avatar
hu committed
1526
                    GUI_General_Digit_Display(MultiPurpose_Sprite, ((1000000u / AVGFuel) * 1069u / 1000u), Nb_21_0, 4u, 2u, GUIBGAVGFuelPosX, 262u, GUI_BLENDMODE_SRC_OVER);
1527 1528 1529
                }
                else
                {
hu's avatar
hu committed
1530 1531 1532
                    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);
1533 1534
                }
            }
hu's avatar
hu committed
1535
            else /*Trip A ODO */
1536
            {
hu's avatar
hu committed
1537 1538 1539
                AVGFuel = Common_Data_Get_TripA_Fuel();

                if (AVGFuel > 1000u)
1540
                {
hu's avatar
hu committed
1541
                    GUI_General_Digit_Display(MultiPurpose_Sprite, (10u / AVGFuel), Nb_21_0, 4u, 2u, GUIBGAVGFuelPosX, 262u, GUI_BLENDMODE_SRC_OVER);
1542 1543 1544
                }
                else
                {
hu's avatar
hu committed
1545 1546 1547
                    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);
1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564
                }
            }
        }
    }
}

/*--------------------------------------------------------------------------
 * 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;
1565
    uint8_t current_Flag = 0u;
1566 1567 1568 1569

    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        GUI_General_Display(MultiPurpose_Sprite, CN_dianyaji_tubiao, GUI_BLENDMODE_SRC_OVER); /*电池*/
hu's avatar
hu committed
1570 1571 1572
        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*/
1573

1574 1575
        current_value = Gui_Get_Voltmeter_DisplayMode();

hu's avatar
hu committed
1576
        if ((current_value > 4u) && (current_value <= 12u))
1577 1578 1579 1580 1581 1582 1583 1584
        {
            current_Flag = 1u; /*白*/
        }
        else
        {
            current_Flag = 0u;/*红*/
        }

1585 1586
        switch (current_value)
        {
hu's avatar
hu committed
1587
        case 0x0Du:
1588 1589 1590 1591 1592 1593 1594 1595
            if (current_Flag == 1u)
            {
                GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_white, (536 + 17u * 0x0Cu), 276u, GUI_BLENDMODE_CUSTOM);
            }
            else
            {
                GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_red, (536 + 17u * 0x0Cu), 276u, GUI_BLENDMODE_CUSTOM);
            }
hu's avatar
hu committed
1596
        case 0x0Cu:
1597 1598 1599 1600 1601 1602 1603 1604
            if (current_Flag == 1u)
            {
                GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_white, (536 + 17u * 0x0Bu), 276u, GUI_BLENDMODE_CUSTOM);
            }
            else
            {
                GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_red, (536 + 17u * 0x0Bu), 276u, GUI_BLENDMODE_CUSTOM);
            }
hu's avatar
hu committed
1605
        case 0x0Bu:
1606 1607 1608 1609 1610 1611 1612 1613
            if (current_Flag == 1u)
            {
                GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_white, (536 + 17u * 0x0Au), 276u, GUI_BLENDMODE_CUSTOM);
            }
            else
            {
                GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_red, (536 + 17u * 0x0Au), 276u, GUI_BLENDMODE_CUSTOM);
            }
hu's avatar
hu committed
1614
        case 0x0Au:
1615 1616 1617 1618 1619 1620 1621 1622
            if (current_Flag == 1u)
            {
                GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_white, (536 + 17u * 0x09u), 276u, GUI_BLENDMODE_CUSTOM);
            }
            else
            {
                GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_red, (536 + 17u * 0x09u), 276u, GUI_BLENDMODE_CUSTOM);
            }
hu's avatar
hu committed
1623
        case 0x09u:
1624 1625 1626 1627 1628 1629 1630 1631
            if (current_Flag == 1u)
            {
                GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_white, (536 + 17u * 0x08u), 276u, GUI_BLENDMODE_CUSTOM);
            }
            else
            {
                GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_red, (536 + 17u * 0x08u), 276u, GUI_BLENDMODE_CUSTOM);
            }
hu's avatar
hu committed
1632
        case 0x08u:
1633 1634 1635 1636 1637 1638 1639 1640
            if (current_Flag == 1u)
            {
                GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_white, (536 + 17u * 0x07u), 276u, GUI_BLENDMODE_CUSTOM);
            }
            else
            {
                GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_red, (536 + 17u * 0x07u), 276u, GUI_BLENDMODE_CUSTOM);
            }
hu's avatar
hu committed
1641
        case 0x07u:
1642 1643 1644 1645 1646 1647 1648 1649
            if (current_Flag == 1u)
            {
                GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_white, (536 + 17u * 0x06u), 276u, GUI_BLENDMODE_CUSTOM);
            }
            else
            {
                GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_red, (536 + 17u * 0x06u), 276u, GUI_BLENDMODE_CUSTOM);
            }
hu's avatar
hu committed
1650
        case 0x06u:
1651 1652 1653 1654 1655 1656 1657 1658
            if (current_Flag == 1u)
            {
                GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_white, (536 + 17u * 0x05u), 276u, GUI_BLENDMODE_CUSTOM);
            }
            else
            {
                GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_red, (536 + 17u * 0x05u), 276u, GUI_BLENDMODE_CUSTOM);
            }
hu's avatar
hu committed
1659
        case 0x05u:
1660 1661 1662 1663 1664 1665 1666 1667
            if (current_Flag == 1u)
            {
                GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_white, (536 + 17u * 0x04u), 276u, GUI_BLENDMODE_CUSTOM);
            }
            else
            {
                GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_red, (536 + 17u * 0x04u), 276u, GUI_BLENDMODE_CUSTOM);
            }
hu's avatar
hu committed
1668
        case 0x04u:
1669 1670 1671 1672 1673 1674 1675 1676
            if (current_Flag == 1u)
            {
                GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_white, (536 + 17u * 0x03u), 276u, GUI_BLENDMODE_CUSTOM);
            }
            else
            {
                GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_red, (536 + 17u * 0x03u), 276u, GUI_BLENDMODE_CUSTOM);
            }
hu's avatar
hu committed
1677
        case 0x03u:
1678 1679 1680 1681 1682 1683 1684 1685
            if (current_Flag == 1u)
            {
                GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_white, (536 + 17u * 0x02u), 276u, GUI_BLENDMODE_CUSTOM);
            }
            else
            {
                GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_red, (536 + 17u * 0x02u), 276u, GUI_BLENDMODE_CUSTOM);
            }
hu's avatar
hu committed
1686
        case 0x02u:
1687 1688 1689 1690 1691 1692 1693 1694
            if (current_Flag == 1u)
            {
                GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_white, (536 + 17u * 0x01u), 276u, GUI_BLENDMODE_CUSTOM);
            }
            else
            {
                GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_red, (536 + 17u * 0x01u), 276u, GUI_BLENDMODE_CUSTOM);
            }
hu's avatar
hu committed
1695
        case 0x01u:
1696 1697 1698 1699 1700 1701 1702 1703
            if (current_Flag == 1u)
            {
                GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_white, (536 + 17u * 0x00u), 276u, GUI_BLENDMODE_CUSTOM);
            }
            else
            {
                GUI_Translate_Display(MultiPurpose_Sprite, CN_dianyaji_zouge_red, (536 + 17u * 0x00u), 276u, GUI_BLENDMODE_CUSTOM);
            }
1704
            break;
hu's avatar
hu committed
1705
        default:
1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726
            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
1727

1728 1729 1730 1731
    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
1732 1733
            value = Get_ID_18FED900_Sig_DPF_storage();
            value = value * 20u / 5u;
hu's avatar
hu committed
1734
            // Get_ID_18FED900_Sig_DPF_Regeneration_Status();/*8 4-5*/
1735 1736 1737 1738 1739 1740 1741 1742
            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
1743

1744
            if (value <= 100u)
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
            {
                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
1782 1783 1784

            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*/
1785 1786 1787 1788 1789 1790 1791
        }
    }
    else
    {
        GUI_General_Display(MultiPurpose_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
hu's avatar
hu committed
1792

1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807
/*--------------------------------------------------------------------------
 * 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
1808
        Temp = Get_ID_18FEE518_Sig_Total_Engine_Hours();
1809 1810 1811
        CanStatus1 = CAN_MSG_Status(ID_CanMsg18FEE518_Msg_Count);

        /*时间*/
hu's avatar
hu committed
1812 1813
        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*/
1814 1815 1816 1817 1818

        if (CanStatus1 == CAN_SIG_LOST)
        {
            GUI_General_Display(MultiPurpose_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
        }
hu's avatar
hu committed
1819
        else if (Temp <= 0xFAFFFFFFu)
1820 1821 1822 1823 1824
        {
            Temp = Temp / 20u;

            if (Temp >= 9999999u)
            {
hu's avatar
hu committed
1825
                GUI_General_Digit_Display(MultiPurpose_Sprite, 9999999u, Nb_20_0, 7u, 5u, GUI_DISP_OILTEMP, 221u, GUI_BLENDMODE_SRC_OVER); /*显示ODO的数值*/
1826 1827 1828
            }
            else
            {
hu's avatar
hu committed
1829
                GUI_General_Digit_Display(MultiPurpose_Sprite, Temp, Nb_20_0, 7u, 5u, GUI_DISP_OILTEMP, 221u, GUI_BLENDMODE_SRC_OVER); /*显示ODO的数值*/
1830 1831
            }

hu's avatar
hu committed
1832
            GUI_Translate_Display(MultiPurpose_Sprite, Nb_20_dian, 719u, 241u, GUI_BLENDMODE_CUSTOM); /*点*/
1833 1834 1835 1836 1837 1838 1839 1840 1841 1842
        }
        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
1843
            GUI_Translate_Display(MultiPurpose_Sprite, Nb_20_dian, 719u, 241u, GUI_BLENDMODE_CUSTOM); /*点*/
1844 1845 1846 1847 1848 1849 1850 1851 1852 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
        }
    }
    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
1881
    uint8_t Time_Hours = 0u;
hu's avatar
hu committed
1882
    uint8_t Time_Minutes = 0u;
hu's avatar
hu committed
1883 1884 1885 1886
    uint8_t Month = 0u; /*月*/
    uint8_t Date = 0u;  /*日*/
    uint8_t Week = 0u;  /*星期*/
    uint16_t Year = 0u; /*年*/
hu's avatar
hu committed
1887

1888 1889
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
1890
        Year = 2000 + Get_RTC_YEAR();
hu's avatar
hu committed
1891
        Month = Get_RTC_MONTH();
hu's avatar
hu committed
1892
        Date = Get_RTC_DATE();
1893
        /*年月日*/
hu's avatar
hu committed
1894
        if (1u)
1895
        {
hu's avatar
hu committed
1896 1897 1898
            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
1899

hu's avatar
hu committed
1900 1901 1902
            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);
1903 1904
        }
        /*月日年*/
hu's avatar
hu committed
1905
        else if (0)
1906
        {
hu's avatar
hu committed
1907 1908 1909 1910 1911 1912
            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);
1913 1914 1915 1916
        }
        /*日月年*/
        else
        {
hu's avatar
hu committed
1917 1918 1919 1920 1921 1922
            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
1923 1924
        }
        /*星期 */
hu's avatar
hu committed
1925
        Week = Get_RTC_WEEK();
hu's avatar
hu committed
1926
        GUI_General_Display(MultiPurpose_Sprite, CN_kuohao, GUI_BLENDMODE_SRC_OVER); /*括号*/
hu's avatar
hu committed
1927
        GUI_General_Display(MultiPurpose_Sprite, GUIMenuWedk[Week], GUI_BLENDMODE_CUSTOM);
1928

hu's avatar
hu committed
1929 1930
        Time_Hours = Get_RTC_HOUR();
        /*时间*/
hu's avatar
hu committed
1931
        if (0u)
hu's avatar
hu committed
1932
        {
hu's avatar
hu committed
1933
            if (Time_Hours < 12)
hu's avatar
hu committed
1934
            {
hu's avatar
hu committed
1935
                GUI_General_Display(MultiPurpose_Sprite, CN_AM, GUI_BLENDMODE_SRC_OVER); /*AM*/
hu's avatar
hu committed
1936 1937 1938
            }
            else
            {
hu's avatar
hu committed
1939
                GUI_General_Display(MultiPurpose_Sprite, CN_PM, GUI_BLENDMODE_SRC_OVER); /*PM*/
hu's avatar
hu committed
1940
            }
1941

hu's avatar
hu committed
1942
            if (Time_Hours == 0)
1943
            {
hu's avatar
hu committed
1944
                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
1945 1946 1947
            }
            else if (Time_Hours > 12)
            {
hu's avatar
hu committed
1948
                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
1949 1950 1951
            }
            else
            {
hu's avatar
hu committed
1952
                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
1953 1954 1955 1956
            }
        }
        else
        {
hu's avatar
hu committed
1957
            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
1958
        }
1959

hu's avatar
hu committed
1960
        Time_Minutes = Get_RTC_MINUTE();
hu's avatar
hu committed
1961
        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
1962

hu's avatar
hu committed
1963
        GUI_Translate_Display(MultiPurpose_Sprite, Nb_17_maohao, 592u, 282u, GUI_BLENDMODE_CUSTOM); /*冒号*/
hu's avatar
hu committed
1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982
    }
    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)
    {
hu's avatar
hu committed
1983
        // GUI_Translate_Display(MultiPurpose_Sprite, Nb_12_dian, 801u, 481u, GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
1984
        GUI_General_Display(MultiPurpose_Sprite, SpriteSize, GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
1985 1986 1987 1988 1989 1990 1991 1992 1993
    }
    else
    {
        GUI_General_Display(MultiPurpose_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_Menu_Display
hu's avatar
hu committed
1994
 * Description    :
hu's avatar
hu committed
1995 1996 1997 1998 1999 2000 2001
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_Menu_Display(uint8_t Mode)
{
hu's avatar
hu committed
2002 2003 2004 2005
    uint8_t CanStatus1 = 0u;

    CanStatus1 = CAN_MSG_Status(ID_CanMsg0CF00400_Msg_Count);

hu's avatar
hu committed
2006 2007 2008 2009
    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
2010 2011
        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
2012

hu's avatar
hu committed
2013
        if ((bCurMenuIDX >= _MN_DSP_LEVEL2MENU_1) && (bCurMenuIDX <= _MN_DSP_LEVEL2MENU_4))
hu's avatar
hu committed
2014
        {
hu's avatar
hu committed
2015
            if (bCurMenuIDX != _MN_DSP_LEVEL2MENU_1)
hu's avatar
hu committed
2016
            {
hu's avatar
hu committed
2017
                if (CanStatus1 == CAN_SIG_LOST) /*有故障码*/
2018
                {
hu's avatar
hu committed
2019
                    GUI_General_Display(MENU_Sprite, CN_User_Menu1_01white, GUI_BLENDMODE_SRC_OVER);
2020 2021 2022
                }
                else
                {
hu's avatar
hu committed
2023
                    GUI_General_Display(MENU_Sprite, CN_User_Menu1_01grey, GUI_BLENDMODE_SRC_OVER);
2024 2025
                }
            }
hu's avatar
hu committed
2026
            if (bCurMenuIDX != _MN_DSP_LEVEL2MENU_2)
hu's avatar
hu committed
2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044
            {
                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
2045
            if (bCurMenuIDX != _MN_DSP_LEVEL2MENU_3)
hu's avatar
hu committed
2046 2047 2048
            {
                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
2049
            if (bCurMenuIDX != _MN_DSP_LEVEL2MENU_4)
hu's avatar
hu committed
2050 2051 2052
            {
                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
2053
            if (bCurMenuIDX != _MN_DSP_LEVEL2MENU_5)
hu's avatar
hu committed
2054
            {
hu's avatar
hu committed
2055
                GUI_Translate_Display(MENU_Sprite, (CN_User_Menu1_05black + State_Flag.FState_SYSYS), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
2056
            }
2057 2058 2059
        }
        else
        {
hu's avatar
hu committed
2060
            if (bCurMenuIDX != _MN_DSP_LEVEL2MENU_3)
hu's avatar
hu committed
2061 2062 2063
            {
                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
2064
            if (bCurMenuIDX != _MN_DSP_LEVEL2MENU_4)
hu's avatar
hu committed
2065 2066 2067
            {
                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
2068
            if (bCurMenuIDX != _MN_DSP_LEVEL2MENU_5)
hu's avatar
hu committed
2069
            {
hu's avatar
hu committed
2070
                GUI_Translate_Display(MENU_Sprite, (CN_User_Menu1_05black + State_Flag.FState_SYSYS), 225u, GUI_DISP_MENU_Y[2u], GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
2071
            }
hu's avatar
hu committed
2072
            if (bCurMenuIDX != _MN_DSP_LEVEL2MENU_6)
hu's avatar
hu committed
2073 2074 2075
            {
                GUI_Translate_Display(MENU_Sprite, (CN_User_Menu1_06black + State_Flag.FState_TPMS), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
            }
2076 2077
        }
    }
hu's avatar
hu committed
2078 2079
    else
    {
hu's avatar
hu committed
2080
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
2081
    }
2082
}
hu's avatar
hu committed
2083

hu's avatar
hu committed
2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 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 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203
/*--------------------------------------------------------------------------
 * 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
2204

hu's avatar
hu committed
2205
/*--------------------------------------------------------------------------
hu's avatar
hu committed
2206
 * Function Name  : GUI_BG_Rep_Menu_Display
hu's avatar
hu committed
2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220
 * 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
2221

hu's avatar
hu committed
2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240
        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);
            }
        }
hu's avatar
hu committed
2241
        else if (bCurMenuIDX == _MN_DSP_LEVEL2_2_MENU_7)
hu's avatar
hu committed
2242 2243 2244 2245 2246
        {
            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);
        }
hu's avatar
hu committed
2247
        else
hu's avatar
hu committed
2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258
        {
            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);
        }
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
hu's avatar
hu committed
2259

hu's avatar
hu committed
2260
/*--------------------------------------------------------------------------
hu's avatar
hu committed
2261
 * Function Name  : GUI_BG_RepMenu1_Display
hu's avatar
hu committed
2262 2263 2264 2265 2266 2267 2268
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_RepMenu1_Display(uint8_t Mode)
hu's avatar
hu committed
2269
{
hu's avatar
hu committed
2270
    uint8_t Flag = 0;
hu's avatar
hu committed
2271 2272
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
2273 2274 2275 2276 2277 2278 2279 2280
        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
2281
 * Function Name  : GUI_BG_RepMenu2_Display
hu's avatar
hu committed
2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299
 * 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
2300

hu's avatar
hu committed
2301
/*--------------------------------------------------------------------------
hu's avatar
hu committed
2302
 * Function Name  : GUI_BG_RepMenu3_Display
hu's avatar
hu committed
2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314
 * 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
2315 2316 2317
    }
    else
    {
hu's avatar
hu committed
2318
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
2319
    }
hu's avatar
hu committed
2320
}
hu's avatar
hu committed
2321 2322

/*--------------------------------------------------------------------------
hu's avatar
hu committed
2323
 * Function Name  : GUI_BG_RepMenu4_Display
hu's avatar
hu committed
2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343
 * 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
2344
 * Function Name  : GUI_BG_RepMenu5_Display
hu's avatar
hu committed
2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363
 * 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
2364
 * Function Name  : GUI_BG_RepMenu6_Display
hu's avatar
hu committed
2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384
 * 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
2385
 * Function Name  : GUI_BG_RepMenu7_Display
hu's avatar
hu committed
2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405
 * 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
2406
 * Function Name  : GUI_BG_RepMenu8_Display
hu's avatar
hu committed
2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426
 * 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
2427
 * Function Name  : GUI_BG_RepMenu9_Display
hu's avatar
hu committed
2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446
 * 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
2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462
/*--------------------------------------------------------------------------
 * 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
2463

hu's avatar
hu committed
2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482
        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);
            }
        }
hu's avatar
hu committed
2483
        else if (bCurMenuIDX == _MN_DSP_LEVEL2_3_MENU_6)
hu's avatar
hu committed
2484 2485 2486 2487 2488
        {
            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);
        }
hu's avatar
hu committed
2489
        else if (bCurMenuIDX == _MN_DSP_LEVEL2_3_MENU_7)
hu's avatar
hu committed
2490 2491 2492
        {
            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);
hu's avatar
hu committed
2493
            GUI_Translate_Display(MENU_Sprite, (CN_User_Menu2_03_06black + State_Flag.WXSD_DLZXY), 225u, GUI_DISP_MENU_Y[2u], GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
2494
        }
hu's avatar
hu committed
2495 2496 2497 2498
        else
        {
            ;/*Do Nothing*/
        }
hu's avatar
hu committed
2499 2500 2501 2502 2503 2504
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
hu's avatar
hu committed
2505 2506

/*--------------------------------------------------------------------------
hu's avatar
hu committed
2507
 * Function Name  : GUI_BG_RepSetMenu1_Display
hu's avatar
hu committed
2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518
 * 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
2519
        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
2520 2521 2522 2523 2524 2525 2526 2527
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
hu's avatar
hu committed
2528
 * Function Name  : GUI_BG_RepSetMenu2_Display
hu's avatar
hu committed
2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539
 * 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
2540
        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
2541 2542 2543 2544 2545 2546 2547 2548
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
hu's avatar
hu committed
2549
 * Function Name  : GUI_BG_RepSetMenu3_Display
hu's avatar
hu committed
2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560
 * 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
2561
        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
2562 2563 2564 2565 2566 2567 2568 2569
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
hu's avatar
hu committed
2570
 * Function Name  : GUI_BG_RepSetMenu4_Display
hu's avatar
hu committed
2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581
 * 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
2582
        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
2583 2584 2585 2586 2587 2588 2589 2590
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
hu's avatar
hu committed
2591
 * Function Name  : GUI_BG_RepSetMenu5_Display
hu's avatar
hu committed
2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602
 * 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
2603
        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
2604 2605 2606 2607 2608 2609 2610 2611
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
hu's avatar
hu committed
2612
 * Function Name  : GUI_BG_RepSetMenu6_Display
hu's avatar
hu committed
2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623
 * 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
2624
        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
2625 2626 2627 2628 2629 2630 2631 2632
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
hu's avatar
hu committed
2633
 * Function Name  : GUI_BG_RepSetMenu7_Display
hu's avatar
hu committed
2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644
 * 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
2645
        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
2646 2647 2648 2649 2650 2651 2652 2653
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
hu's avatar
hu committed
2654
 * Function Name  : GUI_BG_RepSetMenu8_Display
hu's avatar
hu committed
2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665
 * 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
2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689
        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
2690

hu's avatar
hu committed
2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702
        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
2703
                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
2704 2705 2706 2707 2708 2709
            }
            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
2710
        else
hu's avatar
hu committed
2711 2712
        {
            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
2713
            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
2714 2715
            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
2716 2717 2718 2719 2720 2721 2722 2723
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
hu's avatar
hu committed
2724
 * Function Name  : GUI_BG_UserSetMenu1_Display
hu's avatar
hu committed
2725 2726 2727 2728 2729 2730
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
hu's avatar
hu committed
2731
void GUI_BG_UserSetMenu1_Display(uint8_t Mode)
hu's avatar
hu committed
2732 2733 2734 2735
{
    uint8_t Flag = 0;
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
2736
        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
2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755
    }
    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
2756
        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
2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775
    }
    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
2776
        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
2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795
    }
    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
2796
        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
2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815
    }
    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
2816
        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
2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835
    }
    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
2836
        //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
2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855
    }
    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
2856
        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
2857 2858 2859 2860 2861
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
hu's avatar
hu committed
2862 2863
}

hu's avatar
hu committed
2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 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 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008
/*--------------------------------------------------------------------------
 * 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
3009 3010 3011 3012 3013 3014 3015
}
/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_TPMS_GasPIC_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
hu's avatar
hu committed
3016
 * onther         : 区域   K_Line_Set.K_Line_LID3E
hu's avatar
hu committed
3017 3018 3019
 --------------------------------------------------------------------------*/
void GUI_BG_TPMS_GasPIC_Display(uint8_t Mode)
{
hu's avatar
hu committed
3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032
    uint8_t User_Tpms12 = 0u;
    uint8_t User_Tpms13 = 0u;
    uint8_t User_Tpms22 = 0u;
    uint8_t User_Tpms23 = 0u;
    uint8_t User_Tpms31 = 0u;
    uint8_t User_Tpms32 = 0u;
    uint8_t User_Tpms33 = 0u;
    uint8_t User_Tpms34 = 0u;
    uint8_t User_Tpms41 = 0u;
    uint8_t User_Tpms42 = 0u;
    uint8_t User_Tpms43 = 0u;
    uint8_t User_Tpms44 = 0u;

hu's avatar
hu committed
3033 3034
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
3035
        /*低气压-高气压-快速漏气*/
hu's avatar
hu committed
3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047
        User_Tpms12 = Get_TPMSPresure_Alarm(FirstLOut);
        User_Tpms13 = Get_TPMSPresure_Alarm(FirstROut);
        User_Tpms22 = Get_TPMSPresure_Alarm(SecondLIn);
        User_Tpms23 = Get_TPMSPresure_Alarm(SecondRIn);
        User_Tpms31 = Get_TPMSPresure_Alarm(ThirdLOut);
        User_Tpms32 = Get_TPMSPresure_Alarm(ThirdLIn);
        User_Tpms33 = Get_TPMSPresure_Alarm(ThirdRIn);
        User_Tpms34 = Get_TPMSPresure_Alarm(ThirdROut);
        User_Tpms41 = Get_TPMSPresure_Alarm(FourthLOut);
        User_Tpms42 = Get_TPMSPresure_Alarm(FourthLIn);
        User_Tpms43 = Get_TPMSPresure_Alarm(FourthRIn);
        User_Tpms44 = Get_TPMSPresure_Alarm(FourthROut);
hu's avatar
hu committed
3048

hu's avatar
hu committed
3049 3050 3051
        /*显示*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_04_che, GUI_BLENDMODE_SRC_OVER); /*车*/

hu's avatar
hu committed
3052 3053 3054
        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);   /*胎温*/
hu's avatar
hu committed
3055 3056 3057
        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); /*箭头*/

hu's avatar
hu committed
3058 3059 3060 3061 3062 3063 3064
        /*0x12*/
        if (User_Tpms12 == 1u)
        {
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[0U], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
        }
        else
        {
hu's avatar
hu committed
3065
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai, GUI_TPMS_PIC_X[0u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
3066 3067 3068 3069 3070 3071 3072 3073 3074
        }

        /*0x13*/
        if (User_Tpms13 == 1u)
        {
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[0u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
        }
        else
        {
hu's avatar
hu committed
3075
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai, GUI_TPMS_PIC_X[0u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
3076
        }
hu's avatar
hu committed
3077

hu's avatar
hu committed
3078 3079 3080 3081 3082 3083 3084
        /*0x22*/
        if (User_Tpms22 == 1u)
        {
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[1u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
        }
        else
        {
hu's avatar
hu committed
3085
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai, GUI_TPMS_PIC_X[1u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
3086 3087 3088 3089 3090 3091 3092 3093 3094
        }

        /*0x23*/
        if (User_Tpms23 == 1u)
        {
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[1u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
        }
        else
        {
hu's avatar
hu committed
3095
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai, GUI_TPMS_PIC_X[1u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
3096 3097 3098 3099 3100 3101 3102 3103 3104
        }

        /*0x31*/
        if (User_Tpms31 == 1u)
        {
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[2U], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
        }
        else
        {
hu's avatar
hu committed
3105
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
3106 3107 3108 3109 3110 3111 3112 3113 3114
        }

        /*0x32*/
        if (User_Tpms32 == 1u)
        {
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[2U], GUI_TPMS_PIC_Y[2u], GUI_BLENDMODE_CUSTOM);
        }
        else
        {
hu's avatar
hu committed
3115
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[2u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
3116 3117 3118 3119 3120 3121 3122 3123 3124
        }

        /*0x33*/
        if (User_Tpms33 == 1u)
        {
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[2U], GUI_TPMS_PIC_Y[1u], GUI_BLENDMODE_CUSTOM);
        }
        else
        {
hu's avatar
hu committed
3125
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[1u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
3126 3127 3128 3129 3130 3131 3132 3133 3134
        }

        /*0x34*/
        if (User_Tpms34 == 1u)
        {
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[2U], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
        }
        else
        {
hu's avatar
hu committed
3135
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
3136 3137 3138 3139 3140 3141 3142 3143 3144
        }

        /*0x41*/
        if (User_Tpms41 == 1u)
        {
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
        }
        else
        {
hu's avatar
hu committed
3145
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
3146 3147 3148 3149 3150 3151 3152 3153 3154
        }

        /*0x42*/
        if (User_Tpms42 == 1u)
        {
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[2u], GUI_BLENDMODE_CUSTOM);
        }
        else
        {
hu's avatar
hu committed
3155
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[2u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
3156 3157 3158 3159 3160 3161 3162 3163 3164
        }

        /*0x43*/
        if (User_Tpms43 == 1u)
        {
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[1u], GUI_BLENDMODE_CUSTOM);
        }
        else
        {
hu's avatar
hu committed
3165
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[1u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
3166 3167 3168 3169 3170 3171 3172 3173 3174
        }

        /*0x44*/
        if (User_Tpms44 == 1u)
        {
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
        }
        else
        {
hu's avatar
hu committed
3175
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
3176
        }
hu's avatar
hu committed
3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189
    }
    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
3190
 * onther         : 区域   K_Line_Set.K_Line_LID3E
hu's avatar
hu committed
3191 3192 3193
 --------------------------------------------------------------------------*/
void GUI_BG_TPMS_TempPIC_Display(uint8_t Mode)
{
hu's avatar
hu committed
3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206
    uint8_t User_Tpms12 = 0u;
    uint8_t User_Tpms13 = 0u;
    uint8_t User_Tpms22 = 0u;
    uint8_t User_Tpms23 = 0u;
    uint8_t User_Tpms31 = 0u;
    uint8_t User_Tpms32 = 0u;
    uint8_t User_Tpms33 = 0u;
    uint8_t User_Tpms34 = 0u;
    uint8_t User_Tpms41 = 0u;
    uint8_t User_Tpms42 = 0u;
    uint8_t User_Tpms43 = 0u;
    uint8_t User_Tpms44 = 0u;

hu's avatar
hu committed
3207 3208
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
3209
        /*高温报警*/
hu's avatar
hu committed
3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221
        User_Tpms12 = Get_DataTPMS_TyreTempWarningSig_Value(FirstLOut);
        User_Tpms13 = Get_DataTPMS_TyreTempWarningSig_Value(FirstROut);
        User_Tpms22 = Get_DataTPMS_TyreTempWarningSig_Value(SecondLIn);
        User_Tpms23 = Get_DataTPMS_TyreTempWarningSig_Value(SecondRIn);
        User_Tpms31 = Get_DataTPMS_TyreTempWarningSig_Value(ThirdLOut);
        User_Tpms32 = Get_DataTPMS_TyreTempWarningSig_Value(ThirdLIn);
        User_Tpms33 = Get_DataTPMS_TyreTempWarningSig_Value(ThirdRIn);
        User_Tpms34 = Get_DataTPMS_TyreTempWarningSig_Value(ThirdROut);
        User_Tpms41 = Get_DataTPMS_TyreTempWarningSig_Value(FourthLOut);
        User_Tpms42 = Get_DataTPMS_TyreTempWarningSig_Value(FourthLIn);
        User_Tpms43 = Get_DataTPMS_TyreTempWarningSig_Value(FourthRIn);
        User_Tpms44 = Get_DataTPMS_TyreTempWarningSig_Value(FourthROut);
hu's avatar
hu committed
3222

hu's avatar
hu committed
3223 3224 3225
        /*显示*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_04_che, GUI_BLENDMODE_SRC_OVER); /*车*/

hu's avatar
hu committed
3226 3227 3228
        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);   /*胎温*/
hu's avatar
hu committed
3229 3230 3231
        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); /*箭头*/

hu's avatar
hu committed
3232 3233 3234 3235 3236 3237 3238
        /*0x12*/
        if (User_Tpms12 == 1u)
        {
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[0u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
        }
        else
        {
hu's avatar
hu committed
3239
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai, GUI_TPMS_PIC_X[0u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
3240 3241 3242 3243 3244 3245 3246 3247 3248
        }

        /*0x13*/
        if (User_Tpms13 == 1u)
        {
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[0u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
        }
        else
        {
hu's avatar
hu committed
3249
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai, GUI_TPMS_PIC_X[0u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
3250 3251 3252 3253 3254 3255 3256 3257 3258
        }

        /*0x22*/
        if (User_Tpms22 == 1u)
        {
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[1u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
        }
        else
        {
hu's avatar
hu committed
3259
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai, GUI_TPMS_PIC_X[1u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
3260 3261 3262 3263 3264 3265 3266 3267 3268
        }

        /*0x23*/
        if (User_Tpms23 == 1u)
        {
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[1u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
        }
        else
        {
hu's avatar
hu committed
3269
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai, GUI_TPMS_PIC_X[1u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
3270 3271 3272 3273 3274 3275 3276 3277 3278
        }

        /*0x31*/
        if (User_Tpms31 == 1u)
        {
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
        }
        else
        {
hu's avatar
hu committed
3279
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
3280 3281 3282 3283 3284 3285 3286 3287 3288
        }

        /*0x32*/
        if (User_Tpms32 == 1u)
        {
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[2u], GUI_BLENDMODE_CUSTOM);
        }
        else
        {
hu's avatar
hu committed
3289
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai, GUI_TPMS_PIC_X[2], GUI_TPMS_PIC_Y[2u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
3290 3291 3292 3293 3294 3295 3296 3297 3298
        }

        /*0x33*/
        if (User_Tpms33 == 1u)
        {
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[1u], GUI_BLENDMODE_CUSTOM);
        }
        else
        {
hu's avatar
hu committed
3299
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[1u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
3300 3301 3302 3303 3304 3305 3306 3307 3308
        }

        /*0x34*/
        if (User_Tpms34 == 1u)
        {
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
        }
        else
        {
hu's avatar
hu committed
3309
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai, GUI_TPMS_PIC_X[2u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
3310 3311 3312 3313 3314 3315 3316 3317 3318
        }

        /*0x41*/
        if (User_Tpms41 == 1u)
        {
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
        }
        else
        {
hu's avatar
hu committed
3319
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[3u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
3320 3321 3322 3323 3324 3325 3326 3327 3328
        }

        /*0x42*/
        if (User_Tpms42 == 1u)
        {
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[2u], GUI_BLENDMODE_CUSTOM);
        }
        else
        {
hu's avatar
hu committed
3329
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[2u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
3330 3331 3332 3333 3334 3335 3336 3337 3338
        }

        /*0x43*/
        if (User_Tpms43 == 1u)
        {
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[1u], GUI_BLENDMODE_CUSTOM);
        }
        else
        {
hu's avatar
hu committed
3339
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[1u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
3340 3341 3342 3343 3344 3345 3346 3347 3348
        }

        /*0x44*/
        if (User_Tpms44 == 1u)
        {
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai2, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
        }
        else
        {
hu's avatar
hu committed
3349
            GUI_Translate_Display(MENU_Sprite, CN_User_Menu3_04_luntai, GUI_TPMS_PIC_X[3u], GUI_TPMS_PIC_Y[0u], GUI_BLENDMODE_CUSTOM);
hu's avatar
hu committed
3350
        }
hu's avatar
hu committed
3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362
    }
    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
3363
 * onther         : 区域   K_Line_Set.K_Line_LID3E
hu's avatar
hu committed
3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381
 --------------------------------------------------------------------------*/
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)
    {
hu's avatar
hu committed
3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394
        Gas_Value_0x12 = Get_DataTPMS_Pressure_Value(FirstLOut);
        Gas_Value_0x13 = Get_DataTPMS_Pressure_Value(FirstROut);
        Gas_Value_0x22 = Get_DataTPMS_Pressure_Value(SecondLIn);
        Gas_Value_0x23 = Get_DataTPMS_Pressure_Value(SecondRIn);
        Gas_Value_0x31 = Get_DataTPMS_Pressure_Value(ThirdLOut);
        Gas_Value_0x32 = Get_DataTPMS_Pressure_Value(ThirdLIn);
        Gas_Value_0x33 = Get_DataTPMS_Pressure_Value(ThirdRIn);
        Gas_Value_0x34 = Get_DataTPMS_Pressure_Value(ThirdROut);
        Gas_Value_0x41 = Get_DataTPMS_Pressure_Value(FourthLOut);
        Gas_Value_0x42 = Get_DataTPMS_Pressure_Value(FourthLIn);
        Gas_Value_0x43 = Get_DataTPMS_Pressure_Value(FourthRIn);
        Gas_Value_0x44 = Get_DataTPMS_Pressure_Value(FourthROut);

hu's avatar
hu committed
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
        /*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);
hu's avatar
hu committed
3430
    }
hu's avatar
hu committed
3431

hu's avatar
hu committed
3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443
    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
3444
 * onther         : 区域   K_Line_Set.K_Line_LID3E
hu's avatar
hu committed
3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460
 --------------------------------------------------------------------------*/
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;

hu's avatar
hu committed
3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473
    uint8_t Temp_Sta_0x12 = STATUS_NONNEGATIVE;
    uint8_t Temp_Sta_0x13 = STATUS_NONNEGATIVE;
    uint8_t Temp_Sta_0x22 = STATUS_NONNEGATIVE;
    uint8_t Temp_Sta_0x23 = STATUS_NONNEGATIVE;
    uint8_t Temp_Sta_0x31 = STATUS_NONNEGATIVE;
    uint8_t Temp_Sta_0x32 = STATUS_NONNEGATIVE;
    uint8_t Temp_Sta_0x33 = STATUS_NONNEGATIVE;
    uint8_t Temp_Sta_0x34 = STATUS_NONNEGATIVE;
    uint8_t Temp_Sta_0x41 = STATUS_NONNEGATIVE;
    uint8_t Temp_Sta_0x42 = STATUS_NONNEGATIVE;
    uint8_t Temp_Sta_0x43 = STATUS_NONNEGATIVE;
    uint8_t Temp_Sta_0x44 = STATUS_NONNEGATIVE;

hu's avatar
hu committed
3474 3475
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
3476 3477 3478 3479 3480 3481 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
        Temp_Value_0x12 = Get_DataTPMS_Temp_Value(FirstLOut);
        Temp_Value_0x13 = Get_DataTPMS_Temp_Value(FirstROut);
        Temp_Value_0x22 = Get_DataTPMS_Temp_Value(SecondLIn);
        Temp_Value_0x23 = Get_DataTPMS_Temp_Value(SecondRIn);
        Temp_Value_0x31 = Get_DataTPMS_Temp_Value(ThirdLOut);
        Temp_Value_0x32 = Get_DataTPMS_Temp_Value(ThirdLIn);
        Temp_Value_0x33 = Get_DataTPMS_Temp_Value(ThirdRIn);
        Temp_Value_0x34 = Get_DataTPMS_Temp_Value(ThirdROut);
        Temp_Value_0x41 = Get_DataTPMS_Temp_Value(FourthLOut);
        Temp_Value_0x42 = Get_DataTPMS_Temp_Value(FourthLIn);
        Temp_Value_0x43 = Get_DataTPMS_Temp_Value(FourthRIn);
        Temp_Value_0x44 = Get_DataTPMS_Temp_Value(FourthROut);

        Temp_Sta_0x12 = Get_DataTPMS_Temp_Sta(FirstLOut);
        Temp_Sta_0x13 = Get_DataTPMS_Temp_Sta(FirstROut);
        Temp_Sta_0x22 = Get_DataTPMS_Temp_Sta(SecondLIn);
        Temp_Sta_0x23 = Get_DataTPMS_Temp_Sta(SecondRIn);
        Temp_Sta_0x31 = Get_DataTPMS_Temp_Sta(ThirdLOut);
        Temp_Sta_0x32 = Get_DataTPMS_Temp_Sta(ThirdLIn);
        Temp_Sta_0x33 = Get_DataTPMS_Temp_Sta(ThirdRIn);
        Temp_Sta_0x34 = Get_DataTPMS_Temp_Sta(ThirdROut);
        Temp_Sta_0x41 = Get_DataTPMS_Temp_Sta(FourthLOut);
        Temp_Sta_0x42 = Get_DataTPMS_Temp_Sta(FourthLIn);
        Temp_Sta_0x43 = Get_DataTPMS_Temp_Sta(FourthRIn);
        Temp_Sta_0x44 = Get_DataTPMS_Temp_Sta(FourthROut);

        /*0x12*/
        if (Temp_Sta_0x12 == STATUS_NEGATIVE)
        {
            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);
        }
        else // if (Temp_Sta_0x12 == STATUS_NONNEGATIVE)
        {
            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);
        }

        /*0x13*/
        if (Temp_Sta_0x13 == STATUS_NEGATIVE)
        {
            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);
        }
hu's avatar
hu committed
3519
        else // if (Temp_Sta_0x13 == STATUS_NONNEGATIVE)
hu's avatar
hu committed
3520 3521 3522 3523 3524 3525 3526 3527 3528 3529
        {
            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);
        }

        /*0x22*/
        if (Temp_Sta_0x22 == STATUS_NEGATIVE)
        {
            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);
        }
hu's avatar
hu committed
3530
        else // if (Temp_Sta_0x22 == STATUS_NONNEGATIVE)
hu's avatar
hu committed
3531 3532 3533 3534 3535 3536 3537 3538 3539 3540
        {
            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);
        }

        /*0x23*/
        if (Temp_Sta_0x23 == STATUS_NEGATIVE)
        {
            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);
        }
hu's avatar
hu committed
3541
        else // if (Temp_Sta_0x23 == STATUS_NONNEGATIVE)
hu's avatar
hu committed
3542 3543 3544 3545 3546 3547 3548 3549 3550 3551
        {
            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);
        }

        /*0x31*/
        if (Temp_Sta_0x31 == STATUS_NEGATIVE)
        {
            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);
        }
hu's avatar
hu committed
3552
        else // if (Temp_Sta_0x31 == STATUS_NONNEGATIVE)
hu's avatar
hu committed
3553 3554 3555 3556 3557 3558 3559 3560 3561 3562
        {
            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);
        }

        /*0x32*/
        if (Temp_Sta_0x32 == STATUS_NEGATIVE)
        {
            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);
        }
hu's avatar
hu committed
3563
        else // if (Temp_Sta_0x32 == STATUS_NONNEGATIVE)
hu's avatar
hu committed
3564 3565 3566 3567 3568 3569 3570 3571 3572 3573
        {
            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);
        }

        /*0x33*/
        if (Temp_Sta_0x33 == STATUS_NEGATIVE)
        {
            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);
        }
hu's avatar
hu committed
3574
        else // if (Temp_Sta_0x33 == STATUS_NONNEGATIVE)
hu's avatar
hu committed
3575 3576 3577 3578 3579 3580 3581 3582 3583 3584
        {
            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);
        }

        /*0x34*/
        if (Temp_Sta_0x34 == STATUS_NEGATIVE)
        {
            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);
        }
hu's avatar
hu committed
3585
        else // if (Temp_Sta_0x34 == STATUS_NONNEGATIVE)
hu's avatar
hu committed
3586 3587 3588 3589 3590 3591 3592 3593 3594 3595
        {
            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);
        }

        /*0x41*/
        if (Temp_Sta_0x41 == STATUS_NEGATIVE)
        {
            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);
        }
hu's avatar
hu committed
3596
        else // if (Temp_Sta_0x41 == STATUS_NONNEGATIVE)
hu's avatar
hu committed
3597 3598 3599 3600 3601 3602 3603 3604 3605 3606
        {
            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);
        }

        /*0x42*/
        if (Temp_Sta_0x42 == STATUS_NEGATIVE)
        {
            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);
        }
hu's avatar
hu committed
3607
        else // if (Temp_Sta_0x42 == STATUS_NONNEGATIVE)
hu's avatar
hu committed
3608 3609 3610 3611 3612 3613 3614 3615 3616 3617
        {
            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);
        }

        /*0x43*/
        if (Temp_Sta_0x43 == STATUS_NEGATIVE)
        {
            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);
        }
hu's avatar
hu committed
3618
        else // if (Temp_Sta_0x43 == STATUS_NONNEGATIVE)
hu's avatar
hu committed
3619 3620 3621 3622 3623 3624 3625 3626 3627 3628
        {
            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);
        }

        /*0x44*/
        if (Temp_Sta_0x44 == STATUS_NEGATIVE)
        {
            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);
        }
hu's avatar
hu committed
3629
        else // if (Temp_Sta_0x44 == STATUS_NONNEGATIVE)
hu's avatar
hu committed
3630 3631 3632
        {
            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);
        }
hu's avatar
hu committed
3633 3634 3635 3636 3637 3638 3639 3640
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
hu's avatar
hu committed
3641
 * Function Name  : GUI_BG_RepMenu_Display
hu's avatar
hu committed
3642 3643 3644 3645
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
hu's avatar
hu committed
3646
 * onther         :
hu's avatar
hu committed
3647
 --------------------------------------------------------------------------*/
hu's avatar
hu committed
3648
void GUI_BG_RepMenu_Display(uint8_t Mode)
hu's avatar
hu committed
3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663
{
    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
3664 3665 3666 3667 3668 3669 3670 3671 3672 3673
/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_RepMenu_3_1_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         :
 --------------------------------------------------------------------------*/
void GUI_BG_RepMenu_3_1_Display(uint8_t Mode)
{
hu's avatar
hu committed
3674 3675
    uint16_t User_Value = 0u;
    uint8_t User_FLAG = 0u;
hu's avatar
hu committed
3676 3677 3678

    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
3679 3680 3681 3682
        User_Value = User_App.User_FDJYLQQ; /*显示数据*/
        User_FLAG = State_Flag.User_FDJYLQQ_FLAG; /*显示状态*/

        if (User_Value > 0u)
hu's avatar
hu committed
3683
        {
hu's avatar
hu committed
3684
            if (User_Value > 999u)
hu's avatar
hu committed
3685
            {
hu's avatar
hu committed
3686 3687
                GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_12, GUI_BLENDMODE_SRC_OVER); /*距离更换*/

hu's avatar
hu committed
3688
                //if (User_Value > 1000)
hu's avatar
hu committed
3689 3690 3691 3692 3693 3694 3695 3696
                //{
                //    GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_12, GUI_BLENDMODE_SRC_OVER); /*距离更换*/
                //}
                //else
                //{
                //    GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_14, GUI_BLENDMODE_SRC_OVER); /*即将更换*/
                //}

hu's avatar
hu committed
3697 3698 3699 3700
                GUI_Translate_Display(MENU_Sprite, Nb_15_douhao, 534u, 281u, GUI_BLENDMODE_SRC_OVER); /*逗号*/
            }
            else
            {
hu's avatar
hu committed
3701
                GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_12, GUI_BLENDMODE_SRC_OVER); /*请更换*/
hu's avatar
hu committed
3702 3703 3704
                GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
            }

hu's avatar
hu committed
3705
            GUI_General_Digit_Display(MENU_Sprite, User_Value, Nb_15_0, 6u, 5u, GUI_REP1_X, 277u, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
3706 3707 3708
        }
        else
        {
hu's avatar
hu committed
3709 3710
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_13, GUI_BLENDMODE_SRC_OVER); /*请更换*/

hu's avatar
hu committed
3711
            if (User_FLAG == 1u)
hu's avatar
hu committed
3712 3713
            {
                GUI_Translate_Display(MENU_Sprite, Nb_15_douhao, 534u, 281u, GUI_BLENDMODE_SRC_OVER); /*逗号*/
hu's avatar
hu committed
3714
                GUI_Translate_Display(MENU_Sprite, Nb_15_fuhao, 506u, 279u, GUI_BLENDMODE_SRC_OVER);  /*负号*/
hu's avatar
hu committed
3715 3716 3717

                GUI_General_Digit_Display(MENU_Sprite, 1000u, Nb_15_0, 4u, 3u, GUI_REP_X, 277u, GUI_BLENDMODE_SRC_OVER);
            }
hu's avatar
hu committed
3718
            else if (User_FLAG == 3u)
hu's avatar
hu committed
3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739
            {
                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)
{
hu's avatar
hu committed
3740 3741 3742
    uint16_t User_Value = 0u;
    uint8_t User_FLAG = 1u;

hu's avatar
hu committed
3743 3744
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
3745 3746
        User_Value = User_App.User_RYLQQ; /*显示数据*/
        User_FLAG = State_Flag.User_RYLQQ_FLAG; /*显示状态*/
hu's avatar
hu committed
3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774

        if (User_Value > 0u)
        {
            if (User_Value > 999u)
            {
                GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_24, GUI_BLENDMODE_SRC_OVER); /*距离更换*/

                //if (User_Value > 1000)
                //{
                //    GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_24, GUI_BLENDMODE_SRC_OVER); /*距离更换*/
                //}
                //else
                //{
                //    GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_26, GUI_BLENDMODE_SRC_OVER); /*即将更换*/
                //}

                GUI_Translate_Display(MENU_Sprite, Nb_15_douhao, 534u, 281u, GUI_BLENDMODE_SRC_OVER); /*逗号*/
            }
            else
            {
                GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_25, GUI_BLENDMODE_SRC_OVER); /*请更换*/
                GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
            }

            GUI_General_Digit_Display(MENU_Sprite, User_Value, Nb_15_0, 6u, 5u, GUI_REP1_X, 277u, GUI_BLENDMODE_SRC_OVER);
        }
        else
        {
hu's avatar
hu committed
3775 3776
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_25, GUI_BLENDMODE_SRC_OVER); /*请更换*/

hu's avatar
hu committed
3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788
            if (User_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_FLAG == 3u)
            {
                GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
            }
        }
hu's avatar
hu committed
3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805
    }
    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)
{
hu's avatar
hu committed
3806 3807 3808
    uint16_t User_Value = 0u;
    uint8_t User_FLAG = 1u;

hu's avatar
hu committed
3809 3810
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
3811 3812
        User_Value = User_App.User_BSXY; /*显示数据*/
        User_FLAG = State_Flag.User_BSXY_FLAG; /*显示状态*/
hu's avatar
hu committed
3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840

        if (User_Value > 0u)
        {
            if (User_Value > 999u)
            {
                GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_1, GUI_BLENDMODE_SRC_OVER); /*距离更换*/

                //if (User_Value > 1000)
                //{
                //    GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_1, GUI_BLENDMODE_SRC_OVER); /*距离更换*/
                //}
                //else
                //{
                //    GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_3, GUI_BLENDMODE_SRC_OVER); /*即将更换*/
                //}

                GUI_Translate_Display(MENU_Sprite, Nb_15_douhao, 534u, 281u, GUI_BLENDMODE_SRC_OVER); /*逗号*/
            }
            else
            {
                GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_2, GUI_BLENDMODE_SRC_OVER); /*请更换*/
                GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
            }

            GUI_General_Digit_Display(MENU_Sprite, User_Value, Nb_15_0, 6u, 5u, GUI_REP1_X, 277u, GUI_BLENDMODE_SRC_OVER);
        }
        else
        {
hu's avatar
hu committed
3841 3842
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_2, GUI_BLENDMODE_SRC_OVER); /*请更换*/

hu's avatar
hu committed
3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854
            if (User_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_FLAG == 3u)
            {
                GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
            }
        }
hu's avatar
hu committed
3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

/*--------------------------------------------------------------------------
 * 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)
{
hu's avatar
hu committed
3872 3873 3874
    uint16_t User_Value = 0u;
    uint8_t User_FLAG = 1u;

hu's avatar
hu committed
3875 3876
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
3877 3878
        User_Value = User_App.User_CSQY; /*显示数据*/
        User_FLAG = State_Flag.User_CSQY_FLAG; /*显示状态*/
hu's avatar
hu committed
3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906

        if (User_Value > 0u)
        {
            if (User_Value > 999u)
            {
                GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_4, GUI_BLENDMODE_SRC_OVER); /*距离更换*/

                //if (User_Value > 1000)
                //{
                //    GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_4, GUI_BLENDMODE_SRC_OVER); /*距离更换*/
                //}
                //else
                //{
                //    GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_6, GUI_BLENDMODE_SRC_OVER); /*即将更换*/
                //}

                GUI_Translate_Display(MENU_Sprite, Nb_15_douhao, 534u, 281u, GUI_BLENDMODE_SRC_OVER); /*逗号*/
            }
            else
            {
                GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_5, GUI_BLENDMODE_SRC_OVER); /*请更换*/
                GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
            }

            GUI_General_Digit_Display(MENU_Sprite, User_Value, Nb_15_0, 6u, 5u, GUI_REP1_X, 277u, GUI_BLENDMODE_SRC_OVER);
        }
        else
        {
hu's avatar
hu committed
3907 3908
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_5, GUI_BLENDMODE_SRC_OVER); /*请更换*/

hu's avatar
hu committed
3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920
            if (User_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_FLAG == 3u)
            {
                GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
            }
        }
hu's avatar
hu committed
3921 3922 3923 3924 3925 3926
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
hu's avatar
hu committed
3927

hu's avatar
hu committed
3928 3929 3930 3931 3932 3933 3934 3935 3936 3937
/*--------------------------------------------------------------------------
 * 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)
{
hu's avatar
hu committed
3938 3939 3940
    uint16_t User_Value = 0u;
    uint8_t User_FLAG = 1u;

hu's avatar
hu committed
3941 3942
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972
        //User_Value = User_App.User_FDJYLQQ; /*显示数据*/
        //User_FLAG = State_Flag.User_FDJYLQQ_FLAG; /*显示状态*/

        if (User_Value > 0u)
        {
            if (User_Value > 999u)
            {
                GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_24, GUI_BLENDMODE_SRC_OVER); /*距离更换*/

                //if (User_Value > 1000)
                //{
                //    GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_24, GUI_BLENDMODE_SRC_OVER); /*距离更换*/
                //}
                //else
                //{
                //    GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_26, GUI_BLENDMODE_SRC_OVER); /*即将更换*/
                //}

                GUI_Translate_Display(MENU_Sprite, Nb_15_douhao, 534u, 281u, GUI_BLENDMODE_SRC_OVER); /*逗号*/
            }
            else
            {
                GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_25, GUI_BLENDMODE_SRC_OVER); /*请更换*/
                GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
            }

            GUI_General_Digit_Display(MENU_Sprite, User_Value, Nb_15_0, 6u, 5u, GUI_REP1_X, 277u, GUI_BLENDMODE_SRC_OVER);
        }
        else
        {
hu's avatar
hu committed
3973 3974
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_25, GUI_BLENDMODE_SRC_OVER); /*请更换*/

hu's avatar
hu committed
3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986
            if (User_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_FLAG == 3u)
            {
                GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
            }
        }
hu's avatar
hu committed
3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003
    }
    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)
{
hu's avatar
hu committed
4004 4005 4006
    uint16_t User_Value = 0u;
    uint8_t User_FLAG = 1u;

hu's avatar
hu committed
4007 4008
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
4009 4010
        User_Value = User_App.User_DLZXY; /*显示数据*/
        User_FLAG = State_Flag.User_DLZXY_FLAG; /*显示状态*/
hu's avatar
hu committed
4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038

        if (User_Value > 0u)
        {
            if (User_Value > 999u)
            {
                GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_7, GUI_BLENDMODE_SRC_OVER); /*距离更换*/

                //if (User_Value > 1000)
                //{
                //    GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_7, GUI_BLENDMODE_SRC_OVER); /*距离更换*/
                //}
                //else
                //{
                //    GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_9, GUI_BLENDMODE_SRC_OVER); /*即将更换*/
                //}

                GUI_Translate_Display(MENU_Sprite, Nb_15_douhao, 534u, 281u, GUI_BLENDMODE_SRC_OVER); /*逗号*/
            }
            else
            {
                GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_8, GUI_BLENDMODE_SRC_OVER); /*请更换*/
                GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
            }

            GUI_General_Digit_Display(MENU_Sprite, User_Value, Nb_15_0, 6u, 5u, GUI_REP1_X, 277u, GUI_BLENDMODE_SRC_OVER);
        }
        else
        {
hu's avatar
hu committed
4039 4040 4041

            GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_8, GUI_BLENDMODE_SRC_OVER); /*请更换*/

hu's avatar
hu committed
4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053
            if (User_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_FLAG == 3u)
            {
                GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
            }
        }
hu's avatar
hu committed
4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070
    }
    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)
{
hu's avatar
hu committed
4071 4072 4073
    uint16_t User_Value = 0u;
    uint8_t User_FLAG = 1u;

hu's avatar
hu committed
4074 4075
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
4076 4077
        User_Value = User_App.User_LT; /*显示数据*/
        User_FLAG = State_Flag.User_LT_FLAG; /*显示状态*/
hu's avatar
hu committed
4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105

        if (User_Value > 0u)
        {
            if (User_Value > 999u)
            {
                GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_18, GUI_BLENDMODE_SRC_OVER); /*距离更换*/

                //if (User_Value > 1000)
                //{
                //    GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_18, GUI_BLENDMODE_SRC_OVER); /*距离更换*/
                //}
                //else
                //{
                //    GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_20, GUI_BLENDMODE_SRC_OVER); /*即将更换*/
                //}

                GUI_Translate_Display(MENU_Sprite, Nb_15_douhao, 534u, 281u, GUI_BLENDMODE_SRC_OVER); /*逗号*/
            }
            else
            {
                GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_19, GUI_BLENDMODE_SRC_OVER); /*请更换*/
                GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
            }

            GUI_General_Digit_Display(MENU_Sprite, User_Value, Nb_15_0, 6u, 5u, GUI_REP1_X, 277u, GUI_BLENDMODE_SRC_OVER);
        }
        else
        {
hu's avatar
hu committed
4106 4107
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_19, GUI_BLENDMODE_SRC_OVER); /*请更换*/

hu's avatar
hu committed
4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119
            if (User_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_FLAG == 3u)
            {
                GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
            }
        }
hu's avatar
hu committed
4120 4121 4122 4123 4124 4125
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
hu's avatar
hu committed
4126

hu's avatar
hu committed
4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148
/*--------------------------------------------------------------------------
 * 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_white_queding, GUI_BLENDMODE_SRC_OVER);       /*ENTER*/
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
hu's avatar
hu committed
4149 4150 4151 4152 4153 4154 4155 4156 4157

/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_RepSetMenu_3_1_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         :
 --------------------------------------------------------------------------*/
hu's avatar
hu committed
4158 4159 4160 4161
void GUI_BG_RepSetMenu_3_1_Display(uint8_t Mode)
{
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_02_1, GUI_BLENDMODE_SRC_OVER); /*menu*/

        if (User_set_Num.User_FDJYLQQ)
        {
            if (User_set_Num.User_FDJYLQQ > 999)
            {
                GUI_Translate_Display(MENU_Sprite, Nb_15_douhao, 471u, 255u, GUI_BLENDMODE_SRC_OVER);      /*逗号*/
            }
            else
            {
                GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
            }

            GUI_General_Digit_Display(MENU_Sprite, User_set_Num.User_FDJYLQQ , Nb_15_0, 6u, 5u, GUI_SETREP_X, 255u, GUI_BLENDMODE_SRC_OVER);
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_02_km, GUI_BLENDMODE_SRC_OVER);    /*KM*/
        }
        else
        {
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_02_10, GUI_BLENDMODE_SRC_OVER);       /*不设定*/
        }
hu's avatar
hu committed
4182 4183 4184 4185 4186 4187
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
hu's avatar
hu committed
4188 4189 4190 4191 4192 4193 4194 4195 4196

/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_RepSetMenu_3_2_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         :
 --------------------------------------------------------------------------*/
hu's avatar
hu committed
4197 4198 4199 4200
void GUI_BG_RepSetMenu_3_2_Display(uint8_t Mode)
{
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_02_2, GUI_BLENDMODE_SRC_OVER); /*menu*/

        if (User_set_Num.User_FDJYLQQ)
        {
            if (User_set_Num.User_FDJYLQQ > 999)
            {
                GUI_Translate_Display(MENU_Sprite, Nb_15_douhao, 471u, 255u, GUI_BLENDMODE_SRC_OVER);      /*逗号*/
            }
            else
            {
                GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
            }

            GUI_General_Digit_Display(MENU_Sprite, User_set_Num.User_FDJYLQQ , Nb_15_0, 6u, 5u, GUI_SETREP_X, 255u, GUI_BLENDMODE_SRC_OVER);
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_02_km, GUI_BLENDMODE_SRC_OVER);    /*KM*/
        }
        else
        {
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_02_10, GUI_BLENDMODE_SRC_OVER);       /*不设定*/
        }
hu's avatar
hu committed
4221 4222 4223 4224 4225 4226
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
hu's avatar
hu committed
4227 4228 4229 4230 4231 4232 4233 4234 4235

/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_RepSetMenu_3_3_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         :
 --------------------------------------------------------------------------*/
hu's avatar
hu committed
4236 4237 4238 4239
void GUI_BG_RepSetMenu_3_3_Display(uint8_t Mode)
{
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_02_3, GUI_BLENDMODE_SRC_OVER); /*menu*/

        if (User_set_Num.User_FDJYLQQ)
        {
            if (User_set_Num.User_FDJYLQQ > 999)
            {
                GUI_Translate_Display(MENU_Sprite, Nb_15_douhao, 471u, 255u, GUI_BLENDMODE_SRC_OVER);      /*逗号*/
            }
            else
            {
                GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
            }

            GUI_General_Digit_Display(MENU_Sprite, User_set_Num.User_FDJYLQQ , Nb_15_0, 6u, 5u, GUI_SETREP_X, 255u, GUI_BLENDMODE_SRC_OVER);
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_02_km, GUI_BLENDMODE_SRC_OVER);    /*KM*/
        }
        else
        {
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_02_10, GUI_BLENDMODE_SRC_OVER);       /*不设定*/
        }
hu's avatar
hu committed
4260 4261 4262 4263 4264 4265
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
hu's avatar
hu committed
4266 4267 4268 4269 4270 4271 4272 4273 4274

/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_RepSetMenu_3_4_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         :
 --------------------------------------------------------------------------*/
hu's avatar
hu committed
4275 4276 4277 4278
void GUI_BG_RepSetMenu_3_4_Display(uint8_t Mode)
{
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_02_4, GUI_BLENDMODE_SRC_OVER); /*menu*/

        if (User_set_Num.User_FDJYLQQ)
        {
            if (User_set_Num.User_FDJYLQQ > 999)
            {
                GUI_Translate_Display(MENU_Sprite, Nb_15_douhao, 471u, 255u, GUI_BLENDMODE_SRC_OVER);      /*逗号*/
            }
            else
            {
                GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
            }

            GUI_General_Digit_Display(MENU_Sprite, User_set_Num.User_FDJYLQQ , Nb_15_0, 6u, 5u, GUI_SETREP_X, 255u, GUI_BLENDMODE_SRC_OVER);
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_02_km, GUI_BLENDMODE_SRC_OVER);    /*KM*/
        }
        else
        {
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_02_10, GUI_BLENDMODE_SRC_OVER);       /*不设定*/
        }
hu's avatar
hu committed
4299 4300 4301 4302 4303 4304
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
hu's avatar
hu committed
4305 4306 4307 4308 4309 4310 4311 4312 4313

/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_RepSetMenu_3_5_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         :
 --------------------------------------------------------------------------*/
hu's avatar
hu committed
4314 4315 4316 4317
void GUI_BG_RepSetMenu_3_5_Display(uint8_t Mode)
{
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_02_5, GUI_BLENDMODE_SRC_OVER); /*menu*/

        if (User_set_Num.User_FDJYLQQ)
        {
            if (User_set_Num.User_FDJYLQQ > 999)
            {
                GUI_Translate_Display(MENU_Sprite, Nb_15_douhao, 471u, 255u, GUI_BLENDMODE_SRC_OVER);      /*逗号*/
            }
            else
            {
                GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
            }

            GUI_General_Digit_Display(MENU_Sprite, User_set_Num.User_FDJYLQQ , Nb_15_0, 6u, 5u, GUI_SETREP_X, 255u, GUI_BLENDMODE_SRC_OVER);
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_02_km, GUI_BLENDMODE_SRC_OVER);    /*KM*/
        }
        else
        {
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_02_10, GUI_BLENDMODE_SRC_OVER);       /*不设定*/
        }
hu's avatar
hu committed
4338 4339 4340 4341 4342 4343
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
hu's avatar
hu committed
4344 4345 4346 4347 4348 4349 4350 4351 4352

/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_RepSetMenu_3_6_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         :
 --------------------------------------------------------------------------*/
hu's avatar
hu committed
4353 4354 4355 4356
void GUI_BG_RepSetMenu_3_6_Display(uint8_t Mode)
{
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_02_5, GUI_BLENDMODE_SRC_OVER); /*menu*/

        if (User_set_Num.User_FDJYLQQ)
        {
            if (User_set_Num.User_FDJYLQQ > 999)
            {
                GUI_Translate_Display(MENU_Sprite, Nb_15_douhao, 471u, 255u, GUI_BLENDMODE_SRC_OVER);      /*逗号*/
            }
            else
            {
                GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
            }

            GUI_General_Digit_Display(MENU_Sprite, User_set_Num.User_FDJYLQQ , Nb_15_0, 6u, 5u, GUI_SETREP_X, 255u, GUI_BLENDMODE_SRC_OVER);
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_02_km, GUI_BLENDMODE_SRC_OVER);    /*KM*/
        }
        else
        {
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_02_10, GUI_BLENDMODE_SRC_OVER);       /*不设定*/
        }
hu's avatar
hu committed
4377 4378 4379 4380 4381 4382 4383 4384 4385 4386
    }
    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)
    {
hu's avatar
hu committed
4387
        // GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_16, GUI_BLENDMODE_SRC_OVER); /*menu*/
hu's avatar
hu committed
4388 4389 4390 4391 4392 4393 4394
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

hu's avatar
hu committed
4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425
/*--------------------------------------------------------------------------
 * 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)
{
hu's avatar
hu committed
4426
    uint16_t YEAR_Value = 0u;
hu's avatar
hu committed
4427
    uint8_t MOnth_Value = 0u;
hu's avatar
hu committed
4428
    uint8_t Data_Value = 0u;
hu's avatar
hu committed
4429 4430 4431

    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
4432 4433 4434 4435
        YEAR_Value = User_set_Num.Year;
        MOnth_Value = User_set_Num.Month;
        Data_Value = User_set_Num.Date;

hu's avatar
hu committed
4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459
        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;

hu's avatar
hu committed
4460
        default:
hu's avatar
hu committed
4461 4462 4463 4464 4465
            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
4466

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

hu's avatar
hu committed
4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488
        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
4489

hu's avatar
hu committed
4490 4491
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
4492 4493 4494
        Hour_Value = User_set_Num.Hour;
        Minute_Value = User_set_Num.Minute;

hu's avatar
hu committed
4495
        GUI_Translate_Display(MENU_Sprite, Nb_20_maohao, 440u, 218u, GUI_BLENDMODE_SRC_OVER); /*冒号*/
hu's avatar
hu committed
4496

hu's avatar
hu committed
4497 4498 4499
        switch (bCurMenuIDX)
        {
        case _MN_DSP_LEVEL3_4_MENU_21:
hu's avatar
hu committed
4500 4501 4502
            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
4503
            break;
hu's avatar
hu committed
4504

hu's avatar
hu committed
4505
        case _MN_DSP_LEVEL3_4_MENU_22:
hu's avatar
hu committed
4506 4507 4508
            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
4509
            break;
hu's avatar
hu committed
4510

hu's avatar
hu committed
4511 4512 4513
        default:
            break;
        }
hu's avatar
hu committed
4514

hu's avatar
hu committed
4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537
        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)
    {
hu's avatar
hu committed
4538
        Options_Val = User_set_Num.User_Language;
hu's avatar
hu committed
4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578
        /*英语*/
        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*/
hu's avatar
hu committed
4579
        GUI_General_Display(MENU_Sprite, CN_gundongtiao, GUI_BLENDMODE_SRC_OVER);         /*长度条*/
hu's avatar
hu committed
4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599

        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);
            }
        }
hu's avatar
hu committed
4600
        else if (bCurMenuIDX == _MN_DSP_LEVEL3_4_MENU_45)
hu's avatar
hu committed
4601 4602 4603 4604 4605
        {
            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);
        }
hu's avatar
hu committed
4606
        else if (bCurMenuIDX == _MN_DSP_LEVEL3_4_MENU_46)
hu's avatar
hu committed
4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686
        {
            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
4687

hu's avatar
hu committed
4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701
/*--------------------------------------------------------------------------
 * 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
4702 4703 4704 4705 4706 4707
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
hu's avatar
hu committed
4708

hu's avatar
hu committed
4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772
/*--------------------------------------------------------------------------
 * 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);
    }
}

/*--------------------------------------------------------------------------
hu's avatar
hu committed
4773
 * Function Name  : GUI_BG_TPMS_PictureSet_Display
hu's avatar
hu committed
4774 4775 4776 4777 4778 4779 4780 4781 4782 4783
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         :
 --------------------------------------------------------------------------*/
void GUI_BG_TPMS_PictureSet_Display(uint8_t Mode)
{
    if (Mode == GUI_DISP_MODE_NORMAL)
    {
hu's avatar
hu committed
4784
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_che, GUI_BLENDMODE_SRC_OVER); /*车*/
hu's avatar
hu committed
4785

hu's avatar
hu committed
4786
        /*0x12*/
hu's avatar
hu committed
4787
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_0x12, GUI_BLENDMODE_SRC_OVER); /*0x12*/
hu's avatar
hu committed
4788 4789

        if (User_set_Num.User_Tpms == 1u)
hu's avatar
hu committed
4790
        {
hu's avatar
hu committed
4791
            if (User_set_Num.User_TpmsStatus == 1u)
hu's avatar
hu committed
4792
            {
hu's avatar
hu committed
4793
                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
4794
            }
hu's avatar
hu committed
4795
            else if (User_set_Num.User_TpmsStatus == 2u)
hu's avatar
hu committed
4796
            {
hu's avatar
hu committed
4797 4798
                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
4799
                if (FLASH_SYNC_1Hz)
hu's avatar
hu committed
4800
                {
hu's avatar
hu committed
4801
                    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
4802
                }
hu's avatar
hu committed
4803
                else
hu's avatar
hu committed
4804 4805 4806
                {
                    GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
4807 4808 4809
            }
            else
            {
hu's avatar
hu committed
4810 4811 4812 4813
                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
4814
                else
hu's avatar
hu committed
4815 4816 4817
                {
                    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
4818 4819 4820 4821
            }
        }
        else
        {
hu's avatar
hu committed
4822 4823 4824 4825
            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
4826
            else
hu's avatar
hu committed
4827 4828 4829
            {
                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
4830 4831
        }

hu's avatar
hu committed
4832
        /*0x13*/
hu's avatar
hu committed
4833
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_0x13, GUI_BLENDMODE_SRC_OVER); /*0x13*/
hu's avatar
hu committed
4834 4835

        if (User_set_Num.User_Tpms == 2u)
hu's avatar
hu committed
4836
        {
hu's avatar
hu committed
4837
            if (User_set_Num.User_TpmsStatus == 1u)
hu's avatar
hu committed
4838
            {
hu's avatar
hu committed
4839
                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
4840
            }
hu's avatar
hu committed
4841
            else if (User_set_Num.User_TpmsStatus == 2u)
hu's avatar
hu committed
4842
            {
hu's avatar
hu committed
4843 4844
                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
4845
                if (FLASH_SYNC_1Hz)
hu's avatar
hu committed
4846 4847 4848
                {
                    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
4849
                else
hu's avatar
hu committed
4850 4851 4852
                {
                    GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
4853 4854 4855
            }
            else
            {
hu's avatar
hu committed
4856 4857 4858 4859
                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
4860
                else
hu's avatar
hu committed
4861 4862 4863
                {
                    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
4864 4865 4866 4867
            }
        }
        else
        {
hu's avatar
hu committed
4868 4869 4870 4871
            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
4872
            else
hu's avatar
hu committed
4873 4874 4875
            {
                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
4876
        }
hu's avatar
hu committed
4877

hu's avatar
hu committed
4878
        /*0x22*/
hu's avatar
hu committed
4879
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_0x22, GUI_BLENDMODE_SRC_OVER); /*0x22*/
hu's avatar
hu committed
4880 4881

        if (User_set_Num.User_Tpms == 3u)
hu's avatar
hu committed
4882
        {
hu's avatar
hu committed
4883
            if (User_set_Num.User_TpmsStatus == 1u)
hu's avatar
hu committed
4884
            {
hu's avatar
hu committed
4885
                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
4886
            }
hu's avatar
hu committed
4887
            else if (User_set_Num.User_TpmsStatus == 2u)
hu's avatar
hu committed
4888
            {
hu's avatar
hu committed
4889 4890
                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
4891
                if (FLASH_SYNC_1Hz)
hu's avatar
hu committed
4892 4893 4894
                {
                    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
4895
                else
hu's avatar
hu committed
4896 4897 4898
                {
                    GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
4899 4900 4901
            }
            else
            {
hu's avatar
hu committed
4902 4903 4904 4905
                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
4906
                else
hu's avatar
hu committed
4907 4908 4909
                {
                    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
4910 4911 4912 4913
            }
        }
        else
        {
hu's avatar
hu committed
4914 4915 4916 4917
            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
4918
            else
hu's avatar
hu committed
4919 4920 4921
            {
                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
4922 4923
        }

hu's avatar
hu committed
4924
        /*0x23*/
hu's avatar
hu committed
4925
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_0x23, GUI_BLENDMODE_SRC_OVER); /*0x23*/
hu's avatar
hu committed
4926 4927

        if (User_set_Num.User_Tpms == 4u)
hu's avatar
hu committed
4928
        {
hu's avatar
hu committed
4929
            if (User_set_Num.User_TpmsStatus == 1u)
hu's avatar
hu committed
4930
            {
hu's avatar
hu committed
4931
                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
4932
            }
hu's avatar
hu committed
4933
            else if (User_set_Num.User_TpmsStatus == 2u)
hu's avatar
hu committed
4934
            {
hu's avatar
hu committed
4935 4936
                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
4937
                if (FLASH_SYNC_1Hz)
hu's avatar
hu committed
4938 4939 4940
                {
                    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
4941
                else
hu's avatar
hu committed
4942 4943 4944
                {
                    GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
4945 4946 4947
            }
            else
            {
hu's avatar
hu committed
4948 4949 4950 4951
                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
4952
                else
hu's avatar
hu committed
4953 4954 4955
                {
                    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
4956 4957 4958 4959
            }
        }
        else
        {
hu's avatar
hu committed
4960 4961 4962 4963
            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
4964
            else
hu's avatar
hu committed
4965 4966 4967
            {
                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
4968 4969
        }

hu's avatar
hu committed
4970
        /*0x31*/
hu's avatar
hu committed
4971
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_0x31, GUI_BLENDMODE_SRC_OVER); /*0x31*/
hu's avatar
hu committed
4972 4973

        if (User_set_Num.User_Tpms == 5u)
hu's avatar
hu committed
4974
        {
hu's avatar
hu committed
4975
            if (User_set_Num.User_TpmsStatus == 1u)
hu's avatar
hu committed
4976
            {
hu's avatar
hu committed
4977
                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
4978
            }
hu's avatar
hu committed
4979
            else if (User_set_Num.User_TpmsStatus == 2u)
hu's avatar
hu committed
4980
            {
hu's avatar
hu committed
4981 4982
                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
4983
                if (FLASH_SYNC_1Hz)
hu's avatar
hu committed
4984 4985 4986
                {
                    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
4987
                else
hu's avatar
hu committed
4988 4989 4990
                {
                    GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
4991 4992 4993
            }
            else
            {
hu's avatar
hu committed
4994 4995 4996 4997
                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
4998
                else
hu's avatar
hu committed
4999 5000 5001
                {
                    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
5002 5003 5004 5005
            }
        }
        else
        {
hu's avatar
hu committed
5006 5007 5008 5009
            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
5010
            else
hu's avatar
hu committed
5011 5012 5013
            {
                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
5014 5015
        }

hu's avatar
hu committed
5016
        /*0x32*/
hu's avatar
hu committed
5017
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_0x32, GUI_BLENDMODE_SRC_OVER); /*0x32*/
hu's avatar
hu committed
5018 5019

        if (User_set_Num.User_Tpms == 6u)
hu's avatar
hu committed
5020
        {
hu's avatar
hu committed
5021
            if (User_set_Num.User_TpmsStatus == 1u)
hu's avatar
hu committed
5022
            {
hu's avatar
hu committed
5023
                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
5024
            }
hu's avatar
hu committed
5025
            else if (User_set_Num.User_TpmsStatus == 2u)
hu's avatar
hu committed
5026
            {
hu's avatar
hu committed
5027 5028
                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
5029
                if (FLASH_SYNC_1Hz)
hu's avatar
hu committed
5030 5031 5032
                {
                    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
5033
                else
hu's avatar
hu committed
5034 5035 5036
                {
                    GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
5037 5038 5039
            }
            else
            {
hu's avatar
hu committed
5040 5041 5042 5043
                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
5044
                else
hu's avatar
hu committed
5045 5046 5047
                {
                    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
5048 5049 5050 5051
            }
        }
        else
        {
hu's avatar
hu committed
5052 5053 5054 5055
            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
5056
            else
hu's avatar
hu committed
5057 5058 5059
            {
                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
5060
        }
hu's avatar
hu committed
5061

hu's avatar
hu committed
5062
        /*0x33*/
hu's avatar
hu committed
5063
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_0x33, GUI_BLENDMODE_SRC_OVER); /*0x33*/
hu's avatar
hu committed
5064 5065

        if (User_set_Num.User_Tpms == 7u)
hu's avatar
hu committed
5066
        {
hu's avatar
hu committed
5067
            if (User_set_Num.User_TpmsStatus == 1u)
hu's avatar
hu committed
5068
            {
hu's avatar
hu committed
5069
                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
5070
            }
hu's avatar
hu committed
5071
            else if (User_set_Num.User_TpmsStatus == 2u)
hu's avatar
hu committed
5072
            {
hu's avatar
hu committed
5073 5074
                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
5075
                if (FLASH_SYNC_1Hz)
hu's avatar
hu committed
5076 5077 5078
                {
                    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
5079
                else
hu's avatar
hu committed
5080 5081 5082
                {
                    GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
5083 5084 5085
            }
            else
            {
hu's avatar
hu committed
5086 5087 5088 5089
                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
5090
                else
hu's avatar
hu committed
5091 5092 5093
                {
                    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
5094 5095 5096 5097
            }
        }
        else
        {
hu's avatar
hu committed
5098 5099 5100 5101
            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
5102
            else
hu's avatar
hu committed
5103 5104 5105
            {
                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
5106
        }
hu's avatar
hu committed
5107

hu's avatar
hu committed
5108
        /*0x34*/
hu's avatar
hu committed
5109
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_0x34, GUI_BLENDMODE_SRC_OVER); /*0x34*/
hu's avatar
hu committed
5110 5111

        if (User_set_Num.User_Tpms == 8u)
hu's avatar
hu committed
5112
        {
hu's avatar
hu committed
5113
            if (User_set_Num.User_TpmsStatus == 1u)
hu's avatar
hu committed
5114
            {
hu's avatar
hu committed
5115
                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
5116
            }
hu's avatar
hu committed
5117
            else if (User_set_Num.User_TpmsStatus == 2u)
hu's avatar
hu committed
5118
            {
hu's avatar
hu committed
5119 5120
                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
5121
                if (FLASH_SYNC_1Hz)
hu's avatar
hu committed
5122 5123 5124
                {
                    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
5125
                else
hu's avatar
hu committed
5126 5127 5128
                {
                    GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
5129 5130 5131
            }
            else
            {
hu's avatar
hu committed
5132 5133 5134 5135
                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
5136
                else
hu's avatar
hu committed
5137 5138 5139
                {
                    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
5140 5141 5142 5143
            }
        }
        else
        {
hu's avatar
hu committed
5144 5145 5146 5147
            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
5148
            else
hu's avatar
hu committed
5149 5150 5151
            {
                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
5152
        }
hu's avatar
hu committed
5153

hu's avatar
hu committed
5154
        /*0x41*/
hu's avatar
hu committed
5155
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_0x41, GUI_BLENDMODE_SRC_OVER); /*0x41*/
hu's avatar
hu committed
5156 5157

        if (User_set_Num.User_Tpms == 9u)
hu's avatar
hu committed
5158
        {
hu's avatar
hu committed
5159
            if (User_set_Num.User_TpmsStatus == 1u)
hu's avatar
hu committed
5160
            {
hu's avatar
hu committed
5161
                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
5162
            }
hu's avatar
hu committed
5163
            else if (User_set_Num.User_TpmsStatus == 2u)
hu's avatar
hu committed
5164
            {
hu's avatar
hu committed
5165 5166
                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
5167
                if (FLASH_SYNC_1Hz)
hu's avatar
hu committed
5168 5169 5170
                {
                    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
5171
                else
hu's avatar
hu committed
5172 5173 5174
                {
                    GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
5175 5176 5177
            }
            else
            {
hu's avatar
hu committed
5178 5179 5180 5181
                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
5182
                else
hu's avatar
hu committed
5183 5184 5185
                {
                    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
5186 5187 5188 5189
            }
        }
        else
        {
hu's avatar
hu committed
5190 5191 5192 5193
            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
5194
            else
hu's avatar
hu committed
5195 5196 5197
            {
                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
5198
        }
hu's avatar
hu committed
5199

hu's avatar
hu committed
5200
        /*0x42*/
hu's avatar
hu committed
5201
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_0x42, GUI_BLENDMODE_SRC_OVER); /*0x42*/
hu's avatar
hu committed
5202 5203

        if (User_set_Num.User_Tpms == 10u)
hu's avatar
hu committed
5204
        {
hu's avatar
hu committed
5205
            if (User_set_Num.User_TpmsStatus == 1u)
hu's avatar
hu committed
5206
            {
hu's avatar
hu committed
5207
                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
5208
            }
hu's avatar
hu committed
5209
            else if (User_set_Num.User_TpmsStatus == 2u)
hu's avatar
hu committed
5210
            {
hu's avatar
hu committed
5211 5212
                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
5213
                if (FLASH_SYNC_1Hz)
hu's avatar
hu committed
5214 5215 5216
                {
                    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
5217
                else
hu's avatar
hu committed
5218 5219 5220
                {
                    GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
5221 5222 5223
            }
            else
            {
hu's avatar
hu committed
5224 5225 5226 5227
                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
5228
                else
hu's avatar
hu committed
5229 5230 5231
                {
                    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
5232 5233 5234 5235
            }
        }
        else
        {
hu's avatar
hu committed
5236 5237 5238 5239
            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
5240
            else
hu's avatar
hu committed
5241 5242 5243
            {
                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
5244
        }
hu's avatar
hu committed
5245

hu's avatar
hu committed
5246
        /*0x43*/
hu's avatar
hu committed
5247
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_0x43, GUI_BLENDMODE_SRC_OVER); /*0x43*/
hu's avatar
hu committed
5248 5249

        if (User_set_Num.User_Tpms == 11u)
hu's avatar
hu committed
5250
        {
hu's avatar
hu committed
5251
            if (User_set_Num.User_TpmsStatus == 1u)
hu's avatar
hu committed
5252
            {
hu's avatar
hu committed
5253
                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
5254
            }
hu's avatar
hu committed
5255
            else if (User_set_Num.User_TpmsStatus == 2u)
hu's avatar
hu committed
5256
            {
hu's avatar
hu committed
5257 5258
                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
5259
                if (FLASH_SYNC_1Hz)
hu's avatar
hu committed
5260 5261 5262
                {
                    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
5263
                else
hu's avatar
hu committed
5264 5265 5266
                {
                    GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
5267 5268 5269
            }
            else
            {
hu's avatar
hu committed
5270 5271 5272 5273
                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
5274
                else
hu's avatar
hu committed
5275 5276 5277
                {
                    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
5278 5279 5280 5281
            }
        }
        else
        {
hu's avatar
hu committed
5282 5283 5284 5285
            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
5286
            else
hu's avatar
hu committed
5287 5288 5289
            {
                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
5290
        }
hu's avatar
hu committed
5291

hu's avatar
hu committed
5292
        /*0x44*/
hu's avatar
hu committed
5293
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_0x44, GUI_BLENDMODE_SRC_OVER); /*0x44*/
hu's avatar
hu committed
5294 5295

        if (User_set_Num.User_Tpms == 12u)
hu's avatar
hu committed
5296
        {
hu's avatar
hu committed
5297
            if (User_set_Num.User_TpmsStatus == 1u)
hu's avatar
hu committed
5298
            {
hu's avatar
hu committed
5299
                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
5300
            }
hu's avatar
hu committed
5301
            else if (User_set_Num.User_TpmsStatus == 2u)
hu's avatar
hu committed
5302
            {
hu's avatar
hu committed
5303 5304
                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
5305
                if (FLASH_SYNC_1Hz)
hu's avatar
hu committed
5306 5307 5308
                {
                    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
5309
                else
hu's avatar
hu committed
5310 5311 5312
                {
                    GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_CUSTOM);
                }
hu's avatar
hu committed
5313 5314 5315
            }
            else
            {
hu's avatar
hu committed
5316 5317 5318 5319
                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
5320
                else
hu's avatar
hu committed
5321 5322 5323
                {
                    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
5324 5325 5326 5327
            }
        }
        else
        {
hu's avatar
hu committed
5328 5329 5330 5331
            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
5332
            else
hu's avatar
hu committed
5333 5334 5335
            {
                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
5336
        }
hu's avatar
hu committed
5337

hu's avatar
hu committed
5338
        /*清楚闪烁*/
hu's avatar
hu committed
5339
        if (User_set_Num.User_TpmsStatus != 2)
hu's avatar
hu committed
5340 5341 5342
        {
            GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
        }
hu's avatar
hu committed
5343 5344 5345 5346 5347 5348
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
hu's avatar
hu committed
5349

hu's avatar
hu committed
5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463
/*--------------------------------------------------------------------------
 * Function Name  : GUI_BG_UserSet_SYSD_GSL_Display
 * Description    :
 * Input          : None
 * Output         : None
 * Return         : None
 * onther         : 区域
 --------------------------------------------------------------------------*/
void GUI_BG_UserSet_SYSD_GSL_Display(uint8_t Mode)
{
    uint32_t User_Value = 0u;

    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        User_Value = User_set_Num.User_Gsl;

        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_12, GUI_BLENDMODE_SRC_OVER);/*Menu*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_kuang, GUI_BLENDMODE_SRC_OVER);/*框*/

        if (User_Value != 0xFF)
        {
            GUI_General_Digit_Display(MENU_Sprite, User_Value, Nb_15_0, 4u, 3u, GUI_SYSSET_X, 255u, GUI_BLENDMODE_SRC_OVER);/*数字*/
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_kmh, GUI_BLENDMODE_SRC_OVER);/*km/h*/
        }
        else
        {
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_22, GUI_BLENDMODE_SRC_OVER); /*不设定*/
        }
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

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

    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        User_Value = User_set_Num.User_Ybl;

        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_13, GUI_BLENDMODE_SRC_OVER);/*Menu*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_kuang, GUI_BLENDMODE_SRC_OVER);/*框*/

        if (User_Value != 0xFF)
        {
            GUI_General_Digit_Display(MENU_Sprite, User_Value, Nb_15_0, 4u, 3u, GUI_SYSSET_X, 255u, GUI_BLENDMODE_SRC_OVER);/*数字*/
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_kmh, GUI_BLENDMODE_SRC_OVER);/*km/h*/
        }
        else
        {
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_22, GUI_BLENDMODE_SRC_OVER); /*不设定*/
        }
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

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

    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        User_Value = User_set_Num.User_Speed;

        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_14, GUI_BLENDMODE_SRC_OVER);/*Menu*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_kuang, GUI_BLENDMODE_SRC_OVER);/*框*/

        if (User_Value != 0xFF)
        {
            if (User_Value != 0u)
            {
                GUI_Translate_Display(MENU_Sprite, Nb_15_0, 520u, 255u, GUI_BLENDMODE_CUSTOM);
                GUI_Translate_Display(MENU_Sprite, Nb_15_0, 503u, 255u, GUI_BLENDMODE_CUSTOM);
                GUI_General_Digit_Display(MENU_Sprite, User_Value, Nb_15_0, 2u, 1u, GUI_SYSSPEED, 255u, GUI_BLENDMODE_SRC_OVER);/*数字*/
            }
            else
            {
                GUI_General_Digit_Display(MENU_Sprite, User_Value, Nb_15_0, 4u, 3u, GUI_SYSSET_X, 255u, GUI_BLENDMODE_SRC_OVER);/*数字*/
            }

            GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_rpm, GUI_BLENDMODE_SRC_OVER);/*rmp*/
        }
        else
        {
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_22, GUI_BLENDMODE_SRC_OVER); /*不设定*/
        }
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
hu's avatar
hu committed
5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485

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

    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        User_Value = User_set_Num.User_JADD;

        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_15, GUI_BLENDMODE_SRC_OVER);/*Menu*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_kuang, GUI_BLENDMODE_SRC_OVER);/*框*/

        if (User_Value != 0xFF)
        {
hu's avatar
hu committed
5486 5487 5488
            GUI_General_Digit_Display(MENU_Sprite, User_Value, Nb_15_0, 2u, 0u, GUI_SYSJDD_X, 251u, GUI_BLENDMODE_SRC_OVER);/*数字*/
            GUI_Translate_Display(MENU_Sprite, Nb_15_dian, 454u, 254u, GUI_BLENDMODE_CUSTOM);/*dot*/
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_ms2, GUI_BLENDMODE_SRC_OVER);/*m/s2*/
hu's avatar
hu committed
5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521
        }
        else
        {
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_22, GUI_BLENDMODE_SRC_OVER); /*不设定*/
        }
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

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

    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        User_Value = User_set_Num.User_JSUB;

        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_16, GUI_BLENDMODE_SRC_OVER);/*Menu*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_kuang, GUI_BLENDMODE_SRC_OVER);/*框*/

        if (User_Value != 0xFF)
        {
hu's avatar
hu committed
5522 5523 5524
            GUI_General_Digit_Display(MENU_Sprite, User_Value, Nb_15_0, 2u, 0u, GUI_SYSJDD_X, 251u, GUI_BLENDMODE_SRC_OVER);/*数字*/
            GUI_Translate_Display(MENU_Sprite, Nb_15_dian, 454u, 254u, GUI_BLENDMODE_CUSTOM);/*dot*/
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_ms2, GUI_BLENDMODE_SRC_OVER);/*m/s2*/
hu's avatar
hu committed
5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604
        }
        else
        {
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_22, GUI_BLENDMODE_SRC_OVER); /*不设定*/
        }
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}


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

    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        User_Value = User_set_Num.User_IDLING;

        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_25, GUI_BLENDMODE_SRC_OVER);/*Menu*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_kuang, GUI_BLENDMODE_SRC_OVER);/*框*/

        if (User_Value == 0u) /*0x00-设定   0xFF-不设定*/
        {
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_21, GUI_BLENDMODE_SRC_OVER);/*设定*/
        }
        else
        {
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_22, GUI_BLENDMODE_SRC_OVER); /*不设定*/
        }
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}

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

    if (Mode == GUI_DISP_MODE_NORMAL)
    {
        User_Value = User_set_Num.User_Parking;

        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_26, GUI_BLENDMODE_SRC_OVER);/*Menu*/
        GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_kuang, GUI_BLENDMODE_SRC_OVER);/*框*/

        if (User_Value == 0u) /*0x00-设定   0xFF-不设定*/
        {
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_21, GUI_BLENDMODE_SRC_OVER);/*设定*/
        }
        else
        {
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_22, GUI_BLENDMODE_SRC_OVER); /*不设定*/
        }
    }
    else
    {
        GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
    }
}
hu's avatar
hu committed
5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620
/*--------------------------------------------------------------------------
 * 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*/

hu's avatar
hu committed
5621
        if (State_Flag.ENTER_RETURN == 0u)
hu's avatar
hu committed
5622
        {
hu's avatar
hu committed
5623
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_10, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
5624 5625 5626 5627 5628
            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
        {
hu's avatar
hu committed
5629
            GUI_General_Display(MENU_Sprite, CN_User_Menu3_01_11, GUI_BLENDMODE_SRC_OVER);
hu's avatar
hu committed
5630 5631 5632 5633 5634 5635 5636 5637
            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);
    }
hu's avatar
hu committed
5638 5639
}

hu's avatar
hu committed
5640 5641 5642 5643 5644 5645 5646 5647 5648 5649







void Common_EOL_User_Server(void)
{
    /*发动机油*/
hu's avatar
hu committed
5650
    if (State_Flag.User_FDJYLQQ_FLAG != 3u)
hu's avatar
hu committed
5651
    {
hu's avatar
hu committed
5652
        if (User_App.User_FDJYLQQ > 0 )
hu's avatar
hu committed
5653
        {
hu's avatar
hu committed
5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666
            if (User_App.User_FDJYLQQ >= (Data_Read_Trip(EM_TRIP_JY) / 10u))
            {
                User_App.User_FDJYLQQ = ((uint32_t)K_Line_Set.K_Line_LID4F * 1000u) - Data_Read_Trip(EM_TRIP_JY) / 10u;
            }
            else
            {
                User_App.User_FDJYLQQ = 0u;
            }

            if (User_App.User_FDJYLQQ <= 1000)
            {
                State_Flag.User_FDJYLQQ_FLAG = 2u;
            }
hu's avatar
hu committed
5667 5668 5669
        }
        else
        {
hu's avatar
hu committed
5670
            State_Flag.User_FDJYLQQ_FLAG = 1;
hu's avatar
hu committed
5671 5672 5673 5674
        }
    }

    /*燃油滤清器*/
hu's avatar
hu committed
5675
    if ( State_Flag.User_RYLQQ_FLAG != 3u)
hu's avatar
hu committed
5676
    {
hu's avatar
hu committed
5677
        if (User_App.User_RYLQQ > 0 )
hu's avatar
hu committed
5678
        {
hu's avatar
hu committed
5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691
            if (User_App.User_RYLQQ >= (Data_Read_Trip(EM_TRIP_RY) / 10u))
            {
                User_App.User_RYLQQ = ((uint32_t)K_Line_User_RYLQQ * 1000u ) - Data_Read_Trip(EM_TRIP_RY) / 10u;
            }
            else
            {
                User_App.User_RYLQQ = 0u;
            }

            if (User_App.User_RYLQQ <= 1000)
            {
                State_Flag.User_RYLQQ_FLAG = 2;
            }
hu's avatar
hu committed
5692 5693 5694
        }
        else
        {
hu's avatar
hu committed
5695
            State_Flag.User_RYLQQ_FLAG = 1;
hu's avatar
hu committed
5696 5697 5698 5699
        }
    }

    /*变速箱油*/
hu's avatar
hu committed
5700
    if (State_Flag.User_BSXY_FLAG != 3u)
hu's avatar
hu committed
5701
    {
hu's avatar
hu committed
5702
        if (User_App.User_BSXY > 0 )
hu's avatar
hu committed
5703
        {
hu's avatar
hu committed
5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716
            if (User_App.User_BSXY >= (Data_Read_Trip(EM_TRIP_BSX) / 10u))
            {
                User_App.User_BSXY = ((uint32_t)K_Line_Set.K_Line_LID4A * 1000u) - Data_Read_Trip(EM_TRIP_BSX) / 10u;
            }
            else
            {
                User_App.User_BSXY = 0u;
            }

            if (User_App.User_BSXY <= 1000)
            {
                State_Flag.User_BSXY_FLAG = 2;
            }
hu's avatar
hu committed
5717 5718 5719
        }
        else
        {
hu's avatar
hu committed
5720
            State_Flag.User_BSXY_FLAG = 1;
hu's avatar
hu committed
5721 5722 5723 5724
        }
    }

    /*差速器油*/
hu's avatar
hu committed
5725
    if (State_Flag.User_CSQY_FLAG != 3)
hu's avatar
hu committed
5726
    {
hu's avatar
hu committed
5727
        if (User_App.User_CSQY > 0 )
hu's avatar
hu committed
5728
        {
hu's avatar
hu committed
5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741
            if (User_App.User_CSQY >= (Data_Read_Trip(EM_TRIP_CSQ) / 10u))
            {
                User_App.User_CSQY = ((uint32_t)K_Line_Set.K_Line_LID4B * 1000u) - Data_Read_Trip(EM_TRIP_CSQ) / 10u;
            }
            else
            {
                User_App.User_CSQY = 0u;
            }

            if (User_App.User_CSQY <= 1000)
            {
                State_Flag.User_CSQY_FLAG = 2;
            }
hu's avatar
hu committed
5742 5743 5744
        }
        else
        {
hu's avatar
hu committed
5745
            State_Flag.User_CSQY_FLAG = 1;
hu's avatar
hu committed
5746 5747 5748 5749
        }
    }

    /*空气干燥剂*/
hu's avatar
hu committed
5750
    if (State_Flag.User_KQGZJ_FLAG != 3u)
hu's avatar
hu committed
5751
    {
hu's avatar
hu committed
5752
        if (User_App.User_KQGZJ > 0 )
hu's avatar
hu committed
5753
        {
hu's avatar
hu committed
5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766
            if (User_App.User_KQGZJ >= (Data_Read_Trip(EM_TRIP_KQGZJ) / 10u))
            {
                User_App.User_KQGZJ = ((uint32_t)K_Line_User_KQGZJ * 1000u) - Data_Read_Trip(EM_TRIP_KQGZJ) / 10u;
            }
            else
            {
                User_App.User_KQGZJ = 0u;
            }

            if (User_App.User_KQGZJ <= 1000)
            {
                State_Flag.User_KQGZJ_FLAG = 2;
            }
hu's avatar
hu committed
5767 5768 5769
        }
        else
        {
hu's avatar
hu committed
5770
            State_Flag.User_KQGZJ_FLAG = 1;
hu's avatar
hu committed
5771 5772 5773 5774
        }
    }

    /*动力转向油*/
hu's avatar
hu committed
5775
    if (State_Flag.User_DLZXY_FLAG != 3u)
hu's avatar
hu committed
5776
    {
hu's avatar
hu committed
5777
        if (User_App.User_DLZXY > 0 )
hu's avatar
hu committed
5778
        {
hu's avatar
hu committed
5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791
            if (User_App.User_DLZXY >= (Data_Read_Trip(EM_TRIP_DLZX) / 10u))
            {
                User_App.User_DLZXY = ((uint32_t)K_Line_Set.K_Line_LID4D * 1000u) - Data_Read_Trip(EM_TRIP_DLZX) / 10u;
            }
            else
            {
                User_App.User_DLZXY = 0u;
            }

            if (User_App.User_DLZXY <= 1000)
            {
                State_Flag.User_DLZXY_FLAG = 2 ;
            }
hu's avatar
hu committed
5792 5793 5794
        }
        else
        {
hu's avatar
hu committed
5795
            State_Flag.User_DLZXY_FLAG = 1;
hu's avatar
hu committed
5796 5797 5798 5799
        }
    }

    /*轮胎*/
hu's avatar
hu committed
5800
    if (State_Flag.User_LT_FLAG != 3u)
hu's avatar
hu committed
5801
    {
hu's avatar
hu committed
5802
        if (User_App.User_LT > 0 )
hu's avatar
hu committed
5803
        {
hu's avatar
hu committed
5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816
            if (User_App.User_LT >= (Data_Read_Trip(EM_TRIP_LT) / 10u))
            {
                User_App.User_LT = ((uint32_t)K_Line_Set.K_Line_LID4E * 1000u) - Data_Read_Trip(EM_TRIP_LT) / 10u;
            }
            else
            {
                User_App.User_LT = 0u;
            }

            if (User_App.User_LT <= 1000)
            {
                State_Flag.User_LT_FLAG = 2;
            }
hu's avatar
hu committed
5817 5818 5819
        }
        else
        {
hu's avatar
hu committed
5820
            State_Flag.User_LT_FLAG = 1;
hu's avatar
hu committed
5821 5822 5823
        }
    }
}