Telltales_user.c 56.4 KB
Newer Older
hu's avatar
hu committed
1 2 3 4 5 6 7 8 9 10 11 12 13
//ZH修改2021年8月27日16:58:42

#include "GPIO.h"
#include "Telltales.h"
#include "Telltales_user.h"
#include "CAN_Communication_Matrix.h"
#include "Flash_synchronizer.h"
#include "EOL_Para.h"
#include "Sound_Scheduler.h"
#include "SEG_DISPLAY.h"
#include "Maintenance.h"
#include "Line_in.h"
#include "IS31FL3236.h"
hu's avatar
hu committed
14
#include "Service_TPMS.h"
hu's avatar
hu committed
15
#include "Data_AirPressure.h"
16
#include "Data_CoolantTemperature.h"
hu's avatar
hu committed
17 18
#include "FuelConfig.h"
#include "Data_Fuel_User.h"
hu's avatar
hu committed
19

hu's avatar
hu committed
20
static uint8_t L12_Air_Sta ;
hu's avatar
hu committed
21 22 23 24 25 26 27 28 29 30 31 32 33 34

TelltaleLRCtrlStruct TelltaleLRCtrl;

const LED_Attribute_st LED_Attribute[LED_Max] =
{
    /*  指示灯索引                             是否自检         外部信号自检       工作电源状态       自检开始时间    自检持续时间       指示灯点亮条件                           指示灯执行函数               */
    {   em_LED_INTER_DIFF_LOCK_T          , NoSelfCheck ,     ExterNalCheck ,  LED_IGN_ON_OFF ,       0u,         3000ul,     LED_INTER_DIFF_LOCK_T_Judgement          , LED_INTER_DIFF_LOCK_T_Execution            },
    {   em_LED_FOUR_MUL_FOUR_T            , NoSelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_FOUR_MUL_FOUR_T_Judgement            , LED_FOUR_MUL_FOUR_T_Execution              },
    {   em_LED_EXH_BRAKE_T                , NoSelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_EXH_BRAKE_T_Judgement                , LED_EXH_BRAKE_T_Execution                  },
    {   em_LED_QOS_GLOW_T                 ,   SelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_QOS_GLOW_T_Judgement                 , LED_QOS_GLOW_T_Execution                   },
    {   em_LED_HI_BEAM_T                  , NoSelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_HI_BEAM_T_Judgement                  , LED_HI_BEAM_T_Execution                    },
    {   em_LED_Rr_FOG_LAMP_T              , NoSelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_Rr_FOG_LAMP_T_Judgement              , LED_Rr_FOG_LAMP_T_Execution                },
    {   em_LED_MIL_T                      ,   SelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_MIL_T_Judgement                      , LED_MIL_T_Execution                        },
    {   em_LED_SVS_T                      ,   SelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_SVS_T_Judgement                      , LED_SVS_T_Execution                        },
hu's avatar
hu committed
35
    {   em_LED_H_S_A__T                   , NoSelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_H_S_A_T_Judgement                    , LED_H_S_A_T_Execution                     },
hu's avatar
hu committed
36 37 38 39 40 41 42 43 44 45 46
    {   em_LED_RETARDER_T                 ,   SelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_RETARDER_T_Judgement                 , LED_RETARDER_T_Execution                   },
    {   em_LED_AUTO_LEVELING_T            , NoSelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_AUTO_LEVELING_T_Judgement            , LED_AUTO_LEVELING_T_Execution              },
    {   em_LED_ROWS_L                     , NoSelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_ROWS_L_Judgement                     , LED_ROWS_L_Execution                       },
    {   em_LED_BSM_OFF_L                  , NoSelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_BSM_OFF_L_Judgement                  , LED_BSM_OFF_L_Execution                    },
    {   em_LED_AEBS_OFF_L                 , NoSelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_AEBS_OFF_L_Judgement                 , LED_AEBS_OFF_L_Execution                   },
    {   em_LED_LDWS_L                     , NoSelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_LDWS_L_Judgement                     , LED_LDWS_L_Execution                       },
    {   em_LED_SRS_L                      , NoSelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_SRS_L_Judgement                      , LED_SRS_L_Execution                        },
    {   em_LED_ENG_OIL_L                  ,   SelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_ENG_OIL_L_Judgement                  , LED_ENG_OIL_L_Execution                    },
    {   em_LED_CHARG_L                    ,   SelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_CHARG_L_Judgement                    , LED_CHARG_L_Execution                      },
    {   em_LED_SEAT_BELT_L                ,   SelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_SEAT_BELT_L_Judgement                , LED_SEAT_BELT_L_Execution                  },
    {   em_LED_RR_DIFF_LOCK_L             ,   SelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_RR_DIFF_LOCK_L_Judgement             , LED_RR_DIFF_LOCK_L_Execution               },
hu's avatar
hu committed
47
    {   em_LED_TPMS_L                     ,   SelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_TPMS_L_Judgement                     , LED_TPMS_L_Execution                       },
hu's avatar
hu committed
48 49 50 51 52 53 54 55
    {   em_LED_ASR_or_EVSC_OFF_L          , NoSelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_ASR_or_EVSC_OFF_L_Judgement          , LED_ASR_or_EVSC_OFF_L_Execution            },
    {   em_LED_EVSC_L                     , NoSelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_EVSC_L_Judgement                     , LED_EVSC_L_Execution                       },
    {   em_LED_eco_stop_OFF_L             , NoSelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_eco_stop_OFF_L_Judgement             , LED_eco_stop_OFF_L_Execution               },
    {   em_LED_AMT_L                      , NoSelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_AMT_L_Judgement                      , LED_AMT_L_Execution                        },
    {   em_LED_WEAR_IND_L                 , NoSelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_WEAR_IND_L_Judgement                 , LED_WEAR_IND_L_Execution                   },
    {   em_LED_TRAILER_BRAKE_R            ,   SelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_TRAILER_BRAKE_R_Judgement            , LED_TRAILER_BRAKE_R_Execution              },
    {   em_LED_BRAKE_AIR_or_EBS_YELLOW_R  , NoSelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_BRAKE_AIR_or_EBS_YELLOW_R_Judgement  , LED_BRAKE_AIR_or_EBS_YELLOW_R_Execution    },
    {   em_LED_ACC_AIR_R                  , NoSelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_ACC_AIR_R_Judgement                  , LED_ACC_AIR_R_Execution                    },
hu's avatar
hu committed
56
    {   em_LED_ABS_R                      ,   SelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_ABS_R_Judgement                      , LED_ABS_R_Execution                        },
hu's avatar
hu committed
57 58 59 60 61 62 63
    {   em_LED_PARK_BRAKE_R               ,   SelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_PARK_BRAKE_R_Judgement               , LED_PARK_BRAKE_R_Execution                 },
    {   em_LED_BRAKE_AIR_or_EBS_RED_R     , NoSelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_BRAKE_AIR_or_EBS_RED_R_Judgement     , LED_BRAKE_AIR_or_EBS_RED_R_Execution       },
    {   em_LED_BRAKE_LOCK_R               , NoSelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_BRAKE_LOCK_R_Judgement               , LED_BRAKE_LOCK_R_Execution                 },
    {   em_LED_AIR_SUS_R                  ,   SelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_AIR_SUS_R_Judgement                  , LED_AIR_SUS_R_Execution                    },
    {   em_LED_TRAILER_ABS_U              ,   SelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_TRAILER_ABS_U_Judgement              , LED_TRAILER_ABS_U_Execution                },
    {   em_LED_WORKING_LAMP_U             , NoSelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_WORKING_LAMP_U_Judgement             , LED_WORKING_LAMP_U_Execution               },
    {   em_LED_TRAILER_ABS_INFO_U         , NoSelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_TRAILER_ABS_INFO_U_Judgement         , LED_TRAILER_ABS_INFO_U_Execution           },
hu's avatar
hu committed
64 65
    {   em_LED_TEMP                       , NoSelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_Temp_Judgement                       , LED_Temp_Execution                         },
    {   em_LED_FUEL                       , NoSelfCheck ,   NoExterNalCheck ,  LED_IGN_ON     ,       0u,         3000ul,     LED_Fuel_Judgement                       , LED_Fuel_Execution                         },
hu's avatar
hu committed
66 67 68 69 70 71 72 73 74 75 76
};

/*must put into 10ms task*/

void Telltales_Left_Right_KL30_Init(void);

void Telltales_Left_Right_KL30_Init(void)
{
    TelltaleLRCtrl.LastRight = 0u;
    TelltaleLRCtrl.LastLeft = 0u;
    TelltaleLRCtrl.Delay = 0u;
hu's avatar
hu committed
77 78

    L12_Air_Sta = 0u;
hu's avatar
hu committed
79
}
hu's avatar
hu committed
80

hu's avatar
hu committed
81
/******************************************************************************
hu's avatar
hu committed
82
  T3 L16 U1 U4 U5无灯   左右转向单独 气压1 气压2 指示灯是背光
hu's avatar
hu committed
83
 ******************************************************************************/
hu's avatar
hu committed
84

hu's avatar
hu committed
85 86 87 88
/******************************************************************************
  T0 左转向   T13 右转向
  信号接口:
  信号定义:
hu's avatar
hu committed
89
  输出信号:
hu's avatar
hu committed
90
 ******************************************************************************/
hu's avatar
hu committed
91 92 93 94 95 96 97 98 99 100 101 102 103 104
void Telltales_Left_Right_Management_Service(void) /*10ms*/
{
    uint8_t Edge;
    uint8_t RIGHT_ST = 0x00u;
    uint8_t LEFT_ST = 0x00u;

    RIGHT_ST = Line_In_Get_Status(LINE_IN_TURN_R);
    LEFT_ST = Line_In_Get_Status(LINE_IN_TURN_L);

    Edge = 0xffu ;

    if (LEFT_ST == 1u)//左转向
    {
        SEG_LED_TURN_LEFT(7);//左转向断码屏开
105
        IS31_CHIP0_CHANNEL36 = 0x3Fu;
hu's avatar
hu committed
106 107 108 109 110 111
    }
    else
    {
        SEG_LED_TURN_LEFT(0);
        IS31_CHIP0_CHANNEL36 = 0x00u;
    }
112
    if (TelltaleLRCtrl.LastLeft != LEFT_ST)
hu's avatar
hu committed
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161
    {
        TelltaleLRCtrl.LastLeft = LEFT_ST;
        Edge = LEFT_ST;
    }

    if (RIGHT_ST == 1u)//右转向
    {
        SEG_LED_TURN_RIGHT(7);//右转向断码屏开
        IS31_CHIP0_CHANNEL24 = 0x3Fu;
    }
    else
    {
        SEG_LED_TURN_RIGHT(0);
        IS31_CHIP0_CHANNEL24 = 0x00u;
    }

    if (TelltaleLRCtrl.LastRight != RIGHT_ST)
    {
        TelltaleLRCtrl.LastRight = RIGHT_ST;
        Edge = RIGHT_ST;
    }

    if (TelltaleLRCtrl.Delay > 0u)
    {
        TelltaleLRCtrl.Delay--;
    }
    else
    {
        if (Edge != 0xFFu)
        {
            if (Edge)
            {
                Sound_Request(SND_TICK, 1u);
            }
            else
            {
                Sound_Request(SND_TOCK, 1u);
            }

            TelltaleLRCtrl.Delay = 10u; /*200ms内不允许重复播放声音*/
        }
        else
        {
            Sound_Delete(SND_TICK);
            Sound_Delete(SND_TOCK);
        }
    }
}

hu's avatar
hu committed
162 163 164 165 166 167 168 169
void LED_Left_Right_Execution(void)
{
    SEG_LED_TURN_LEFT(7);/*左转向断码屏开*/
    IS31_CHIP0_CHANNEL36 = 0x3Fu;

    SEG_LED_TURN_RIGHT(7);/*右转向断码屏开*/
    IS31_CHIP0_CHANNEL24 = 0x3Fu;
}
hu's avatar
hu committed
170 171 172 173 174 175 176
/*************************************

测试用

**************************************/
void Test_LED_AllLight(void)
{
hu's avatar
hu committed
177
    LED_Left_Right_Execution();
hu's avatar
hu committed
178 179 180 181 182 183 184 185
    LED_INTER_DIFF_LOCK_T_Execution(LED_ON_State);
    LED_FOUR_MUL_FOUR_T_Execution(LED_ON_State);
    LED_EXH_BRAKE_T_Execution(LED_ON_State);
    LED_QOS_GLOW_T_Execution(LED_ON_State);
    LED_HI_BEAM_T_Execution(LED_ON_State);
    LED_Rr_FOG_LAMP_T_Execution(LED_ON_State);
    LED_MIL_T_Execution(LED_ON_State);
    LED_SVS_T_Execution(LED_ON_State);
hu's avatar
hu committed
186
    LED_H_S_A_T_Execution(LED_ON_State);
hu's avatar
hu committed
187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214
    LED_RETARDER_T_Execution(LED_ON_State);
    LED_AUTO_LEVELING_T_Execution(LED_ON_State);
    LED_ROWS_L_Execution(LED_ON_State);
    LED_BSM_OFF_L_Execution(LED_ON_State);
    LED_AEBS_OFF_L_Execution(LED_ON_State);
    LED_LDWS_L_Execution(LED_ON_State);
    LED_SRS_L_Execution(LED_ON_State);
    LED_ENG_OIL_L_Execution(LED_ON_State);
    LED_CHARG_L_Execution(LED_ON_State);
    LED_SEAT_BELT_L_Execution(LED_ON_State);
    LED_RR_DIFF_LOCK_L_Execution(LED_ON_State);
    LED_TPMS_L_Execution(LED_ON_State);
    LED_ASR_or_EVSC_OFF_L_Execution(LED_ON_State);
    LED_EVSC_L_Execution(LED_ON_State);
    LED_eco_stop_OFF_L_Execution(LED_ON_State);
    LED_AMT_L_Execution(LED_ON_State);
    LED_WEAR_IND_L_Execution(LED_ON_State);
    LED_TRAILER_BRAKE_R_Execution(LED_ON_State);
    LED_BRAKE_AIR_or_EBS_YELLOW_R_Execution(LED_ON_State);
    LED_ACC_AIR_R_Execution(LED_ON_State);
    LED_ABS_R_Execution(LED_ON_State);
    LED_PARK_BRAKE_R_Execution(LED_ON_State);
    LED_BRAKE_AIR_or_EBS_RED_R_Execution(LED_ON_State);
    LED_BRAKE_LOCK_R_Execution(LED_ON_State);
    LED_AIR_SUS_R_Execution(LED_ON_State);
    LED_TRAILER_ABS_U_Execution(LED_ON_State);
    LED_WORKING_LAMP_U_Execution(LED_ON_State);
    LED_TRAILER_ABS_INFO_U_Execution(LED_ON_State);
hu's avatar
hu committed
215 216
    LED_Temp_Execution(LED_ON_State);
    LED_Fuel_Execution(LED_ON_State);
hu's avatar
hu committed
217 218
}

hu's avatar
hu committed
219
/*---------------------------------------------------------------------------*/
hu's avatar
hu committed
220
#define XXXX  0u
221
#define LED_BRIGHTNESS 0x3Fu
hu's avatar
hu committed
222

223 224
/******************************************************************************
  T1  INTER DIFF LOCK
hu's avatar
hu committed
225
  信号接口:  B36 HIGH
226
  信号定义:
hu's avatar
hu committed
227
  输出信号:
228
 ******************************************************************************/
hu's avatar
hu committed
229 230 231 232
uint8_t LED_INTER_DIFF_LOCK_T_Judgement(void)
{
    uint8_t u8Result = 0u;
    uint8_t m_Condition1 = 0u;
hu's avatar
hu committed
233 234

    m_Condition1 = (uint8_t)Line_In_Get_Status(LINE_IN_RR_DIFF_LOCK);
hu's avatar
hu committed
235 236 237 238 239 240 241 242 243 244 245 246 247

    if (m_Condition1 == 1u)
    {
        u8Result = 1u;
    }
    else
    {
        u8Result = 0u;
    }

    return u8Result;
}

248 249
void LED_INTER_DIFF_LOCK_T_Execution(uint8_t led_status)
{
hu's avatar
hu committed
250
    RR_DIFF_LOCK_MCU = led_status;
251 252 253 254 255 256 257 258 259 260 261 262

    if (led_status == 1)
    {
        SEG_LED_INTER_DIFF_LOCK_T(7);
    }
    else
    {
        SEG_LED_INTER_DIFF_LOCK_T(0);
    }
}

/******************************************************************************
hu's avatar
hu committed
263
  T2
264 265
  信号接口:
  信号定义:
hu's avatar
hu committed
266
  输出信号:
267
 ******************************************************************************/
hu's avatar
hu committed
268
uint8_t LED_FOUR_MUL_FOUR_T_Judgement(void)
269 270 271
{
    uint8_t u8Result = 0u;
    uint8_t m_Condition1 = 0u;
hu's avatar
hu committed
272
    m_Condition1 = (uint8_t)XXXX;
273 274 275 276 277 278 279 280 281 282 283 284

    if (m_Condition1 == 1u)
    {
        u8Result = 1u;
    }
    else
    {
        u8Result = 0u;
    }

    return u8Result;
}
hu's avatar
hu committed
285
void LED_FOUR_MUL_FOUR_T_Execution(uint8_t led_status)
286
{
hu's avatar
hu committed
287 288 289 290 291 292 293 294
    if (led_status == 1)
    {
        IS31_CHIP0_CHANNEL35 = LED_BRIGHTNESS;
    }
    else
    {
        IS31_CHIP0_CHANNEL35 = 0x00;
    }
295 296 297

    if (led_status == 1)
    {
hu's avatar
hu committed
298
        SEG_LED_FOUR_MUL_FOUR_T(7);
299 300 301
    }
    else
    {
hu's avatar
hu committed
302
        SEG_LED_FOUR_MUL_FOUR_T(0);
303 304 305 306
    }
}

/******************************************************************************
hu's avatar
hu committed
307
  T4 EXH BRAKE
hu's avatar
hu committed
308
  信号接口: 0x18FF2300 Byte:2,bit:2-1==00(B)
309
  信号定义:
hu's avatar
hu committed
310
  输出信号:
311
 ******************************************************************************/
hu's avatar
hu committed
312 313 314 315
uint8_t LED_EXH_BRAKE_T_Judgement(void)
{
    uint8_t u8Result = 0u;
    uint8_t m_Condition1 = 0u;
hu's avatar
hu committed
316

hu's avatar
hu committed
317
    m_Condition1 = (uint8_t)Get_ID_18FF2300_Sig_Exh_Lamp();
318

hu's avatar
hu committed
319
    if (m_Condition1 == 0x00u)
hu's avatar
hu committed
320 321 322 323 324 325 326
    {
        u8Result = 1u;
    }
    else
    {
        u8Result = 0u;
    }
327

hu's avatar
hu committed
328 329 330 331 332 333 334 335 336 337 338 339
    return u8Result;
}
void LED_EXH_BRAKE_T_Execution(uint8_t led_status)
{
    if (led_status == 1)
    {
        IS31_CHIP0_CHANNEL34 = LED_BRIGHTNESS;
    }
    else
    {
        IS31_CHIP0_CHANNEL34 = 0x00;
    }
340

hu's avatar
hu committed
341 342 343 344 345 346 347 348 349
    if (led_status == 1)
    {
        SEG_LED_EXH_BRAKE_T(7);
    }
    else
    {
        SEG_LED_EXH_BRAKE_T(0);
    }
}
350 351

/******************************************************************************
hu's avatar
hu committed
352
  T5 QOS(GLOW)
hu's avatar
hu committed
353
  信号接口: 0x18FF2300 Byte:2,bit:6-5==01(B)
354
  信号定义:
hu's avatar
hu committed
355
  输出信号:
356
 ******************************************************************************/
hu's avatar
hu committed
357
uint8_t LED_QOS_GLOW_T_Judgement(void)
358 359 360
{
    uint8_t u8Result = 0u;
    uint8_t m_Condition1 = 0u;
hu's avatar
hu committed
361

hu's avatar
hu committed
362
    m_Condition1 = (uint8_t)Get_ID_18FF2300_Sig_Glow_Lamp();
363 364 365 366 367 368 369 370 371 372 373 374

    if (m_Condition1 == 1u)
    {
        u8Result = 1u;
    }
    else
    {
        u8Result = 0u;
    }

    return u8Result;
}
hu's avatar
hu committed
375
void LED_QOS_GLOW_T_Execution(uint8_t led_status)
376
{
hu's avatar
hu committed
377 378 379 380 381 382 383 384
    if (led_status == 1)
    {
        IS31_CHIP0_CHANNEL33 = LED_BRIGHTNESS;
    }
    else
    {
        IS31_CHIP0_CHANNEL33 = 0x00;
    }
385 386 387

    if (led_status == 1)
    {
hu's avatar
hu committed
388
        SEG_LED_QOS_GLOW_T(7);
389 390 391
    }
    else
    {
hu's avatar
hu committed
392
        SEG_LED_QOS_GLOW_T(0);
393 394 395
    }
}
/******************************************************************************
hu's avatar
hu committed
396
  T6 HI BEAM
hu's avatar
hu committed
397
  信号接口: A25  HIGH
398 399 400
  信号定义:
  输出信号:
 ******************************************************************************/
hu's avatar
hu committed
401
uint8_t LED_HI_BEAM_T_Judgement(void)
hu's avatar
hu committed
402 403 404
{
    uint8_t u8Result = 0u;
    uint8_t m_Condition1 = 0u;
hu's avatar
hu committed
405

hu's avatar
hu committed
406
    m_Condition1 = (uint8_t)Line_In_Get_Status(LINE_IN_HI_BEAM);
hu's avatar
hu committed
407 408 409 410 411 412 413 414 415 416 417 418

    if (m_Condition1 == 1u)
    {
        u8Result = 1u;
    }
    else
    {
        u8Result = 0u;
    }

    return u8Result;
}
hu's avatar
hu committed
419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438
void LED_HI_BEAM_T_Execution(uint8_t led_status)
{
    if (led_status == 1)
    {
        IS31_CHIP0_CHANNEL32 = LED_BRIGHTNESS;
    }
    else
    {
        IS31_CHIP0_CHANNEL32 = 0x00;
    }

    if (led_status == 1)
    {
        SEG_LED_HI_BEAM_T(7);
    }
    else
    {
        SEG_LED_HI_BEAM_T(0);
    }
}
hu's avatar
hu committed
439

hu's avatar
hu committed
440 441
/******************************************************************************
  T7 Rr FOG LAMP
hu's avatar
hu committed
442
  信号接口: B14 HIGH
hu's avatar
hu committed
443 444 445 446
  信号定义:
  输出信号:
 ******************************************************************************/
uint8_t LED_Rr_FOG_LAMP_T_Judgement(void)
hu's avatar
hu committed
447 448 449
{
    uint8_t u8Result = 0u;
    uint8_t m_Condition1 = 0u;
hu's avatar
hu committed
450

hu's avatar
hu committed
451
    m_Condition1 = (uint8_t)Line_In_Get_Status(LINE_IN_Rr_FOG_LAMP);
hu's avatar
hu committed
452

hu's avatar
hu committed
453
    if (m_Condition1 == 1u)
hu's avatar
hu committed
454 455 456 457 458 459 460 461 462 463
    {
        u8Result = 1u;
    }
    else
    {
        u8Result = 0u;
    }

    return u8Result;
}
hu's avatar
hu committed
464 465 466
void LED_Rr_FOG_LAMP_T_Execution(uint8_t led_status)
{
    T7_LED_OUT = led_status;
hu's avatar
hu committed
467

hu's avatar
hu committed
468 469 470 471 472 473 474 475 476 477 478 479
    if (led_status == 1)
    {
        SEG_LED_Rr_FOG_LAMP_T(7);
    }
    else
    {
        SEG_LED_Rr_FOG_LAMP_T(0);
    }
}

/******************************************************************************
  T8 MIL
hu's avatar
hu committed
480
  信号接口: A31 HIGH
hu's avatar
hu committed
481 482 483 484
  信号定义:
  输出信号:
 ******************************************************************************/
uint8_t LED_MIL_T_Judgement(void)
hu's avatar
hu committed
485 486 487
{
    uint8_t u8Result = 0u;
    uint8_t m_Condition1 = 0u;
hu's avatar
hu committed
488

hu's avatar
hu committed
489
    m_Condition1 = (uint8_t)Line_In_Get_Status(LINE_IN_MIL);
hu's avatar
hu committed
490 491 492

    if (m_Condition1 == 1u)
    {
hu's avatar
hu committed
493
        u8Result = 1u;
hu's avatar
hu committed
494 495 496
    }
    else
    {
hu's avatar
hu committed
497
        u8Result = 0u;
hu's avatar
hu committed
498 499 500 501
    }

    return u8Result;
}
hu's avatar
hu committed
502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521
void LED_MIL_T_Execution(uint8_t led_status)
{
    if (led_status == 1)
    {
        IS31_CHIP0_CHANNEL31 = LED_BRIGHTNESS;
    }
    else
    {
        IS31_CHIP0_CHANNEL31 = 0x00;
    }

    if (led_status == 1)
    {
        SEG_LED_MIL_T(7);
    }
    else
    {
        SEG_LED_MIL_T(0);
    }
}
hu's avatar
hu committed
522

hu's avatar
hu committed
523 524
/******************************************************************************
  T9 SVS
hu's avatar
hu committed
525
  信号接口: 0x18FED900 Byte:5,bit:8-7==01(B)
hu's avatar
hu committed
526 527 528 529
  信号定义:
  输出信号:
 ******************************************************************************/
uint8_t LED_SVS_T_Judgement(void)
hu's avatar
hu committed
530 531 532
{
    uint8_t u8Result = 0u;
    uint8_t m_Condition1 = 0u;
hu's avatar
hu committed
533

hu's avatar
hu committed
534
    m_Condition1 = (uint8_t)Get_ID_18FED900_Sig_SVS_Lamp_Status();
hu's avatar
hu committed
535 536 537 538 539 540 541 542 543 544 545 546

    if (m_Condition1 == 1u)
    {
        u8Result = 1u;
    }
    else
    {
        u8Result = 0u;
    }

    return u8Result;
}
hu's avatar
hu committed
547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566
void LED_SVS_T_Execution(uint8_t led_status)
{
    if (led_status == 1)
    {
        IS31_CHIP0_CHANNEL30 = LED_BRIGHTNESS;
    }
    else
    {
        IS31_CHIP0_CHANNEL30 = 0x00;
    }

    if (led_status == 1)
    {
        SEG_LED_SVS_T(7);
    }
    else
    {
        SEG_LED_SVS_T(0);
    }
}
hu's avatar
hu committed
567

hu's avatar
hu committed
568 569 570 571 572 573 574
/******************************************************************************
  T10 H.S.A
  信号接口:
  信号定义:
  输出信号:
 ******************************************************************************/
uint8_t LED_H_S_A_T_Judgement(void)
hu's avatar
hu committed
575 576 577
{
    uint8_t u8Result = 0u;
    uint8_t m_Condition1 = 0u;
hu's avatar
hu committed
578
    m_Condition1 = (uint8_t)XXXX;
hu's avatar
hu committed
579 580 581 582 583 584 585 586 587 588 589 590

    if (m_Condition1 == 1u)
    {
        u8Result = 1u;
    }
    else
    {
        u8Result = 0u;
    }

    return u8Result;
}
hu's avatar
hu committed
591 592 593 594
void LED_H_S_A_T_Execution(uint8_t led_status)
{
    if (led_status == 1)
    {
hu's avatar
hu committed
595 596
        IS31_CHIP0_CHANNEL28 = LED_BRIGHTNESS;    /*绿灯 亮*/
        IS31_CHIP0_CHANNEL29 = 0x00;  /*黄灯 灭*/
hu's avatar
hu committed
597 598 599
    }
    else if (led_status == 2)
    {
hu's avatar
hu committed
600 601
        IS31_CHIP0_CHANNEL28 = 0x00;  /*绿灯 灭*/
        IS31_CHIP0_CHANNEL29 = LED_BRIGHTNESS;    /*黄灯 亮*/
hu's avatar
hu committed
602 603 604
    }
    else
    {
hu's avatar
hu committed
605 606
        IS31_CHIP0_CHANNEL28 = 0x00;  /*绿灯 灭*/
        IS31_CHIP0_CHANNEL29 = 0x00;  /*黄灯 灭*/
hu's avatar
hu committed
607
    }
hu's avatar
hu committed
608

hu's avatar
hu committed
609
    if (led_status != 0x00u)
hu's avatar
hu committed
610 611 612 613 614 615 616 617
    {
        SEG_LED_H_S_A_T(7);
    }
    else
    {
        SEG_LED_H_S_A_T(0);
    }
}
hu's avatar
hu committed
618

hu's avatar
hu committed
619 620
/******************************************************************************
  T11 RETARDER
hu's avatar
hu committed
621
  信号接口: 0x18FF5510 Byte:1,bit:1==01(B) 绿    ----  0x18FF5510  Byte1,Bit1 Byte:1,bit:1==10(B)  黄闪
hu's avatar
hu committed
622 623 624 625
  信号定义:
  输出信号:
 ******************************************************************************/
uint8_t LED_RETARDER_T_Judgement(void)
hu's avatar
hu committed
626 627 628
{
    uint8_t u8Result = 0u;
    uint8_t m_Condition1 = 0u;
hu's avatar
hu committed
629 630

    m_Condition1 = (uint8_t)Get_ID_18FF5510_Sig_Intarder_Pilot_Lamp_State();
hu's avatar
hu committed
631

hu's avatar
hu committed
632
    if (K_Line_Set.K_Line_LID41 == 0x13u)
hu's avatar
hu committed
633
    {
hu's avatar
hu committed
634
        if (m_Condition1 == 1u)
hu's avatar
hu committed
635
        {
hu's avatar
hu committed
636
            u8Result = 1u;
hu's avatar
hu committed
637
        }
hu's avatar
hu committed
638
        else if (m_Condition1 == 2u)
hu's avatar
hu committed
639
        {
hu's avatar
hu committed
640 641 642 643 644 645 646 647
            if (FLASH_SYNC_1Hz == 1u)
            {
                u8Result = 2u;
            }
            else
            {
                u8Result = 0u;
            }
hu's avatar
hu committed
648
        }
hu's avatar
hu committed
649 650 651
    }
    else
    {
hu's avatar
hu committed
652
        u8Result = 0u;
hu's avatar
hu committed
653 654 655 656
    }

    return u8Result;
}
hu's avatar
hu committed
657 658
void LED_RETARDER_T_Execution(uint8_t led_status)
{
hu's avatar
hu committed
659
    if (K_Line_Set.K_Line_LID41 == 0x13u)
hu's avatar
hu committed
660
    {
hu's avatar
hu committed
661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685
        if (led_status == 1)
        {
            IS31_CHIP0_CHANNEL27 = LED_BRIGHTNESS; /* 绿灯 亮 */
            IS31_CHIP0_CHANNEL26 = 0x00u; /* 黄灯 灭 */
        }
        else if (led_status == 2)
        {
            IS31_CHIP0_CHANNEL27 = 0x00u; /* 绿灯 灭 */
            IS31_CHIP0_CHANNEL26 = LED_BRIGHTNESS; /* 黄灯 亮 闪 */
        }
        else
        {
            IS31_CHIP0_CHANNEL27 = 0x00u; /* 绿灯 灭 */
            IS31_CHIP0_CHANNEL26 = 0x00u; /* 黄灯 灭 */
        }

        if (led_status != 0x00u)
        {
            SEG_LED_RETARDER_T(7);
        }
        else
        {

            SEG_LED_RETARDER_T(0);
        }
hu's avatar
hu committed
686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701
    }
    else
    {
        IS31_CHIP0_CHANNEL27 = 0x00; // 绿灯 灭
        IS31_CHIP0_CHANNEL26 = 0x00; // 黄灯 灭
        SEG_LED_RETARDER_T(0);
    }
}

/******************************************************************************
  T12 AUTO LEVELING
  信号接口:
  信号定义:
  输出信号:
 ******************************************************************************/
uint8_t LED_AUTO_LEVELING_T_Judgement(void)
hu's avatar
hu committed
702 703 704
{
    uint8_t u8Result = 0u;
    uint8_t m_Condition1 = 0u;
hu's avatar
hu committed
705

hu's avatar
hu committed
706
    m_Condition1 = (uint8_t)XXXX;
hu's avatar
hu committed
707 708 709 710 711 712 713 714 715 716 717 718 719

    if (m_Condition1 == 1u)
    {
        u8Result = 1u;
    }
    else
    {
        u8Result = 0u;
    }

    return u8Result;
}

hu's avatar
hu committed
720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741
void LED_AUTO_LEVELING_T_Execution(uint8_t led_status)
{
    if (led_status == 1)
    {
        IS31_CHIP0_CHANNEL25 = LED_BRIGHTNESS;
    }
    else
    {
        IS31_CHIP0_CHANNEL25 = 0x00;
    }

    if (led_status == 1)
    {
        SEG_LED_AUTO_LEVELING_T(7);
    }
    else
    {
        SEG_LED_AUTO_LEVELING_T(0);
    }
}

/******************************************************************************
hu's avatar
hu committed
742
  L1 ROWS
hu's avatar
hu committed
743 744 745 746
  信号接口:
  信号定义:
  输出信号:
 ******************************************************************************/
hu's avatar
hu committed
747
uint8_t LED_ROWS_L_Judgement(void)
hu's avatar
hu committed
748 749 750
{
    uint8_t u8Result = 0u;
    uint8_t m_Condition1 = 0u;
hu's avatar
hu committed
751

hu's avatar
hu committed
752
    m_Condition1 = (uint8_t)XXXX;
hu's avatar
hu committed
753 754 755 756 757 758 759 760 761 762 763 764

    if (m_Condition1 == 1u)
    {
        u8Result = 1u;
    }
    else
    {
        u8Result = 0u;
    }

    return u8Result;
}
hu's avatar
hu committed
765
void LED_ROWS_L_Execution(uint8_t led_status)
hu's avatar
hu committed
766
{
hu's avatar
hu committed
767 768 769 770 771 772 773 774
    if (led_status == 1)
    {
        IS31_CHIP0_CHANNEL01 = LED_BRIGHTNESS;
    }
    else
    {
        IS31_CHIP0_CHANNEL01 = 0x00;
    }
hu's avatar
hu committed
775

hu's avatar
hu committed
776
    if (led_status == 1)
hu's avatar
hu committed
777
    {
hu's avatar
hu committed
778
        SEG_LED_ROWS_L(7);
hu's avatar
hu committed
779
    }
hu's avatar
hu committed
780
    else
hu's avatar
hu committed
781
    {
hu's avatar
hu committed
782
        SEG_LED_ROWS_L(0);
hu's avatar
hu committed
783 784 785 786
    }
}

/******************************************************************************
hu's avatar
hu committed
787
  L2 BSM OFF
hu's avatar
hu committed
788 789 790 791
  信号接口:
  信号定义:
  输出信号:
 ******************************************************************************/
hu's avatar
hu committed
792
uint8_t LED_BSM_OFF_L_Judgement(void)
hu's avatar
hu committed
793 794 795
{
    uint8_t u8Result = 0u;
    uint8_t m_Condition1 = 0u;
hu's avatar
hu committed
796

hu's avatar
hu committed
797
    m_Condition1 = (uint8_t)XXXX;
hu's avatar
hu committed
798 799 800 801

    if (m_Condition1 == 1u)
    {
        u8Result = 1u;
hu's avatar
hu committed
802 803 804 805 806
    }
    else
    {
        u8Result = 0u;
    }
807

hu's avatar
hu committed
808 809
    return u8Result;
}
hu's avatar
hu committed
810
void LED_BSM_OFF_L_Execution(uint8_t led_status)
hu's avatar
hu committed
811
{
hu's avatar
hu committed
812 813 814 815 816 817 818 819
    if (led_status == 1)
    {
        IS31_CHIP0_CHANNEL02 = LED_BRIGHTNESS;
    }
    else
    {
        IS31_CHIP0_CHANNEL02 = 0x00;
    }
hu's avatar
hu committed
820

hu's avatar
hu committed
821
    if (led_status == 1)
hu's avatar
hu committed
822
    {
hu's avatar
hu committed
823
        SEG_LED_BSM_OFF_L(7);
hu's avatar
hu committed
824 825 826
    }
    else
    {
hu's avatar
hu committed
827
        SEG_LED_BSM_OFF_L(0);
hu's avatar
hu committed
828 829 830
    }
}

hu's avatar
hu committed
831
/******************************************************************************
hu's avatar
hu committed
832
  L3 AEBS OFF
hu's avatar
hu committed
833 834 835 836
  信号接口:
  信号定义:
  输出信号:
 ******************************************************************************/
hu's avatar
hu committed
837
uint8_t LED_AEBS_OFF_L_Judgement(void)
hu's avatar
hu committed
838 839 840
{
    uint8_t u8Result = 0u;
    uint8_t m_Condition1 = 0u;
hu's avatar
hu committed
841 842
    uint8_t m_Condition2 = 0u;
    uint8_t m_Condition3 = 0u;
hu's avatar
hu committed
843

hu's avatar
hu committed
844 845 846 847
    m_Condition1 = (uint8_t)Get_ID_CF02F2A_Sig_Advanced_Emerg_Braking_Sys_Sta();
    m_Condition2 = (uint8_t)Get_ID_CF02FA1_Sig_Advanced_Emerg_Braking_Sys_Sta();
    m_Condition3 = (uint8_t)Get_ID_CF02FA0_Sig_Advanced_Emerg_Braking_Sys_Sta();

hu's avatar
hu committed
848
    if (K_Line_Set.K_Line_LID28 == 0x01u)
hu's avatar
hu committed
849
    {
hu's avatar
hu committed
850
        if ((m_Condition1 == 0x02u) || (m_Condition2 == 0x02u) || (m_Condition3 == 0x02u))
hu's avatar
hu committed
851 852 853
        {
            u8Result = 1u;
        }
hu's avatar
hu committed
854
        else if ((m_Condition1 == 0x0Eu) || (m_Condition2 == 0x0Eu) || (m_Condition3 == 0x0Eu))
hu's avatar
hu committed
855 856 857
        {
            u8Result = FLASH_SYNC_1Hz;
        }
hu's avatar
hu committed
858
    }
hu's avatar
hu committed
859 860 861 862 863 864 865
    else
    {
        u8Result = 0u;
    }

    return u8Result;
}
hu's avatar
hu committed
866
void LED_AEBS_OFF_L_Execution(uint8_t led_status)
hu's avatar
hu committed
867
{
hu's avatar
hu committed
868
    if (K_Line_Set.K_Line_LID28 == 0x01u)
hu's avatar
hu committed
869
    {
hu's avatar
hu committed
870 871 872 873 874 875 876 877
        if (led_status == 1)
        {
            IS31_CHIP0_CHANNEL03 = LED_BRIGHTNESS;
        }
        else
        {
            IS31_CHIP0_CHANNEL03 = 0x00;
        }
hu's avatar
hu committed
878

hu's avatar
hu committed
879 880 881 882 883 884 885 886 887

        if (led_status == 1)
        {
            SEG_LED_AEBS_OFF_L(7);
        }
        else
        {
            SEG_LED_AEBS_OFF_L(0);
        }
hu's avatar
hu committed
888 889 890
    }
    else
    {
hu's avatar
hu committed
891
        IS31_CHIP0_CHANNEL03 = 0x01u;
hu's avatar
hu committed
892 893
        SEG_LED_AEBS_OFF_L(0);
    }
hu's avatar
hu committed
894 895
}

hu's avatar
hu committed
896
/******************************************************************************
hu's avatar
hu committed
897
  L4 LDWS
hu's avatar
hu committed
898 899 900 901 902
  信号接口:
  信号定义:
  输出信号:
 ******************************************************************************/
uint8_t LED_LDWS_L_Judgement(void)
hu's avatar
hu committed
903 904 905 906
{
    uint8_t u8Result = 0u;
    uint8_t m_Condition1 = 0u;
    uint8_t m_Condition2 = 0u;
hu's avatar
hu committed
907 908
    uint8_t CanStatus1 = 0u;
    uint8_t CanStatus2 = 0u;
hu's avatar
hu committed
909

hu's avatar
hu committed
910 911
    m_Condition1 = (uint8_t)Get_ID_18FE5BE8_Sig_Lane_Departure_Warning_Sys_Sta();
    m_Condition2 = (uint8_t)Get_ID_18FECAE8_Sig_Amber_Warning_Lamp_Status();
hu's avatar
hu committed
912

hu's avatar
hu committed
913 914 915 916
    CanStatus1 = CAN_MSG_Status(ID_CanMsg18FE5BE8_Msg_Count);
    CanStatus2 = CAN_MSG_Status(ID_CanMsg18FECAE8_Msg_Count);

    if (K_Line_Set.K_Line_LID27 == 0x01u)
hu's avatar
hu committed
917
    {
hu's avatar
hu committed
918 919 920 921 922 923 924 925 926 927 928 929 930
        /*LDWS与FCW同时掉线闪烁*/
        if ((CanStatus1 == CAN_SIG_LOST) && (CanStatus2 == CAN_SIG_LOST))
        {
            u8Result = FLASH_SYNC_1Hz;
        }
        else if ((m_Condition1 == 0x02u) || (m_Condition2 == 0x01u))
        {
            u8Result = 1u;
        }
        else if ((m_Condition1 == 0x00u) || (m_Condition1 == 0x05u) || (m_Condition1 == 0x0Eu))
        {
            u8Result = FLASH_SYNC_1Hz;
        }
hu's avatar
hu committed
931 932 933 934 935 936 937 938
    }
    else
    {
        u8Result = 0u;
    }

    return u8Result;
}
hu's avatar
hu committed
939
void LED_LDWS_L_Execution(uint8_t led_status)
hu's avatar
hu committed
940
{
hu's avatar
hu committed
941

hu's avatar
hu committed
942
    if (K_Line_Set.K_Line_LID28 == 0x01u)
hu's avatar
hu committed
943
    {
hu's avatar
hu committed
944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960
        if (led_status == 1)
        {
            IS31_CHIP0_CHANNEL04 = LED_BRIGHTNESS;
        }
        else
        {
            IS31_CHIP0_CHANNEL04 = 0x00;
        }

        if (led_status == 1)
        {
            SEG_LED_LDWS_L(7);
        }
        else
        {
            SEG_LED_LDWS_L(0);
        }
hu's avatar
hu committed
961 962 963
    }
    else
    {
hu's avatar
hu committed
964
        IS31_CHIP0_CHANNEL04 = 0x00u;
hu's avatar
hu committed
965
        SEG_LED_LDWS_L(0);
hu's avatar
hu committed
966 967 968
    }
}

hu's avatar
hu committed
969
/******************************************************************************
hu's avatar
hu committed
970
  L5 SRS
hu's avatar
hu committed
971 972 973 974
  信号接口:
  信号定义:
  输出信号:
 ******************************************************************************/
hu's avatar
hu committed
975 976 977 978
uint8_t LED_SRS_L_Judgement(void)
{
    uint8_t u8Result = 0u;
    uint8_t m_Condition1 = 0u;
hu's avatar
hu committed
979

hu's avatar
hu committed
980 981 982 983 984 985 986 987 988 989 990 991 992
    m_Condition1 = (uint8_t)XXXX;

    if (m_Condition1 == 1u)
    {
        u8Result = 1u;
    }
    else
    {
        u8Result = 0u;
    }

    return u8Result;
}
hu's avatar
hu committed
993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012
void LED_SRS_L_Execution(uint8_t led_status)
{
    if (led_status == 1)
    {
        IS31_CHIP0_CHANNEL20 = LED_BRIGHTNESS;
    }
    else
    {
        IS31_CHIP0_CHANNEL20 = 0x00;
    }

    if (led_status == 1)
    {
        SEG_LED_SRS_L(7);
    }
    else
    {
        SEG_LED_SRS_L(0);
    }
}
hu's avatar
hu committed
1013

hu's avatar
hu committed
1014
/******************************************************************************
hu's avatar
hu committed
1015
  L6 ENG OIL
hu's avatar
hu committed
1016
  信号接口: A32 LOW
hu's avatar
hu committed
1017 1018 1019 1020
  信号定义:
  输出信号:
 ******************************************************************************/
uint8_t LED_ENG_OIL_L_Judgement(void)
hu's avatar
hu committed
1021 1022 1023
{
    uint8_t u8Result = 0u;
    uint8_t m_Condition1 = 0u;
hu's avatar
hu committed
1024

hu's avatar
hu committed
1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037
    m_Condition1 = (uint8_t)Line_In_Get_Status(LINE_IN_ENG_OIL);

    if (m_Condition1 == 1u)
    {
        u8Result = 1u;
    }
    else
    {
        u8Result = 0u;
    }

    return u8Result;
}
hu's avatar
hu committed
1038 1039 1040 1041 1042 1043 1044 1045 1046 1047
void LED_ENG_OIL_L_Execution(uint8_t led_status)
{
    if (led_status == 1)
    {
        IS31_CHIP0_CHANNEL21 = LED_BRIGHTNESS;
    }
    else
    {
        IS31_CHIP0_CHANNEL21 = 0x00;
    }
hu's avatar
hu committed
1048

hu's avatar
hu committed
1049 1050 1051 1052 1053 1054 1055 1056 1057
    if (led_status == 1)
    {
        SEG_LED_ENG_OIL_L(7);
    }
    else
    {
        SEG_LED_ENG_OIL_L(0);
    }
}
hu's avatar
hu committed
1058

hu's avatar
hu committed
1059
/******************************************************************************
hu's avatar
hu committed
1060
  L7 CHARG
hu's avatar
hu committed
1061
  信号接口: A34 LOW
hu's avatar
hu committed
1062 1063 1064 1065
  信号定义:
  输出信号:
 ******************************************************************************/
uint8_t LED_CHARG_L_Judgement(void)
hu's avatar
hu committed
1066 1067 1068
{
    uint8_t u8Result = 0u;
    uint8_t m_Condition1 = 0u;
hu's avatar
hu committed
1069

hu's avatar
hu committed
1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082
    m_Condition1 = (uint8_t)Line_In_Get_Status(LINE_IN_CHARGE);

    if (m_Condition1 == 1u)
    {
        u8Result = 1u;
    }
    else
    {
        u8Result = 0u;
    }

    return u8Result;
}
hu's avatar
hu committed
1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102
void LED_CHARG_L_Execution(uint8_t led_status)
{
    if (led_status == 1)
    {
        IS31_CHIP0_CHANNEL22 = LED_BRIGHTNESS;
    }
    else
    {
        IS31_CHIP0_CHANNEL22 = 0x00;
    }

    if (led_status == 1)
    {
        SEG_LED_CHARG_L(7);
    }
    else
    {
        SEG_LED_CHARG_L(0);
    }
}
hu's avatar
hu committed
1103

hu's avatar
hu committed
1104
/******************************************************************************
hu's avatar
hu committed
1105
  L8 SEAT BELT
hu's avatar
hu committed
1106
  信号接口: A30 LOW
hu's avatar
hu committed
1107 1108 1109 1110
  信号定义:
  输出信号:
 ******************************************************************************/
uint8_t LED_SEAT_BELT_L_Judgement(void)
hu's avatar
hu committed
1111 1112 1113
{
    uint8_t u8Result = 0u;
    uint8_t m_Condition1 = 0u;
hu's avatar
hu committed
1114

hu's avatar
hu committed
1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127
    m_Condition1 = (uint8_t)Line_In_Get_Status(LINE_IN_SEAT_BELT);

    if (m_Condition1 == 1u)
    {
        u8Result = 1u;
    }
    else
    {
        u8Result = 0u;
    }

    return u8Result;
}
hu's avatar
hu committed
1128 1129 1130 1131 1132 1133 1134 1135 1136 1137
void LED_SEAT_BELT_L_Execution(uint8_t led_status)
{
    if (led_status == 1)
    {
        IS31_CHIP0_CHANNEL23 = LED_BRIGHTNESS;
    }
    else
    {
        IS31_CHIP0_CHANNEL23 = 0x00;
    }
hu's avatar
hu committed
1138

hu's avatar
hu committed
1139 1140 1141 1142 1143 1144 1145 1146 1147 1148
    if (led_status == 1)
    {
        SEG_LED_SEAT_BELT_L(7);
    }
    else
    {
        SEG_LED_SEAT_BELT_L(0);
    }
}
/******************************************************************************
hu's avatar
hu committed
1149
  L9 RR DIFF LOCK
hu's avatar
hu committed
1150 1151 1152 1153 1154
  信号接口:
  信号定义:
  输出信号:
 ******************************************************************************/
uint8_t LED_RR_DIFF_LOCK_L_Judgement(void)
hu's avatar
hu committed
1155 1156 1157
{
    uint8_t u8Result = 0u;
    uint8_t m_Condition1 = 0u;
hu's avatar
hu committed
1158 1159

    m_Condition1 = XXXX;
hu's avatar
hu committed
1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171

    if (m_Condition1 == 1u)
    {
        u8Result = 1u;
    }
    else
    {
        u8Result = 0u;
    }

    return u8Result;
}
hu's avatar
hu committed
1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191
void LED_RR_DIFF_LOCK_L_Execution(uint8_t led_status)
{
    if (led_status == 1)
    {
        IS31_CHIP0_CHANNEL16 = LED_BRIGHTNESS;
    }
    else
    {
        IS31_CHIP0_CHANNEL16 = 0x00;
    }

    if (led_status == 1)
    {
        SEG_LED_RR_DIFF_LOCK_L(7);
    }
    else
    {
        SEG_LED_RR_DIFF_LOCK_L(0);
    }
}
hu's avatar
hu committed
1192

hu's avatar
hu committed
1193
/******************************************************************************
hu's avatar
hu committed
1194
  L10 TPMS
hu's avatar
hu committed
1195 1196 1197 1198 1199
  信号接口:
  信号定义:
  输出信号:
 ******************************************************************************/
uint8_t LED_TPMS_L_Judgement(void)
hu's avatar
hu committed
1200 1201
{
    uint8_t u8Result = 0u;
hu's avatar
hu committed
1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214
    uint8_t CanStatus1 = 0x00u;
    uint8_t Low_Presure = 0u;
    uint8_t High_Presure = 0u;
    uint8_t High_Temperature = 0u;
    uint8_t No_signal = 0u;
    uint8_t Sensor_fault = 0u;

    Low_Presure = (uint8_t)Get_TPMSLow_Presure_Sta();
    High_Presure = (uint8_t)Get_TPMSHigh_Presure_Sta();
    High_Temperature = (uint8_t)Get_TPMSHigh_Temperature_Sta();
    No_signal = (uint8_t)Get_TPMSNo_signal_Sta();
    Sensor_fault = (uint8_t)Get_TPMSSensor_fault_Sta();
    CanStatus1 = CAN_MSG_Status(ID_CanMsg18011733_Msg_Count);
hu's avatar
hu committed
1215

hu's avatar
hu committed
1216
    if (K_Line_Set.K_Line_LID3E == 0x01u)
hu's avatar
hu committed
1217
    {
hu's avatar
hu committed
1218
        if ((Low_Presure == 1u) || (High_Presure == 1u) || (High_Temperature == 1u))
hu's avatar
hu committed
1219 1220 1221
        {
            u8Result = 1u;
        }
hu's avatar
hu committed
1222
        else if ((No_signal == 1u) || (Sensor_fault == 1u) || (CanStatus1 == CAN_SIG_LOST))
hu's avatar
hu committed
1223 1224 1225 1226 1227 1228 1229
        {
            u8Result = FLASH_SYNC_1Hz;
        }
        else
        {
            u8Result = 0u;
        }
hu's avatar
hu committed
1230 1231 1232 1233 1234 1235 1236 1237
    }
    else
    {
        u8Result = 0u;
    }

    return u8Result;
}
hu's avatar
hu committed
1238 1239
void LED_TPMS_L_Execution(uint8_t led_status)
{
hu's avatar
hu committed
1240
    if (K_Line_Set.K_Line_LID3E == 0x01u)
hu's avatar
hu committed
1241
    {
hu's avatar
hu committed
1242 1243 1244 1245 1246 1247 1248 1249
        if (led_status == 1)
        {
            IS31_CHIP0_CHANNEL17 = LED_BRIGHTNESS;
        }
        else
        {
            IS31_CHIP0_CHANNEL17 = 0x00;
        }
hu's avatar
hu committed
1250

hu's avatar
hu committed
1251 1252 1253 1254 1255 1256 1257 1258
        if (led_status == 1)
        {
            SEG_LED_TPMS_L(7);
        }
        else
        {
            SEG_LED_TPMS_L(0);
        }
hu's avatar
hu committed
1259 1260 1261
    }
    else
    {
hu's avatar
hu committed
1262
        IS31_CHIP0_CHANNEL17 = 0x00u;
hu's avatar
hu committed
1263 1264 1265 1266
        SEG_LED_TPMS_L(0);
    }
}
/******************************************************************************
hu's avatar
hu committed
1267
  L11 ASR/EVSC OFF
hu's avatar
hu committed
1268
  信号接口: 18F0010B Byte:3 Bit:3-4==01(B)
hu's avatar
hu committed
1269 1270
  信号定义:
  输出信号:
hu's avatar
hu committed
1271
  说明:调整依据 SXS-VC66-22_EBS WARNING & INDICATOR (7“LCD)改訂1-1_20211116
hu's avatar
hu committed
1272 1273
 ******************************************************************************/
uint8_t LED_ASR_or_EVSC_OFF_L_Judgement(void)
hu's avatar
hu committed
1274 1275 1276
{
    uint8_t u8Result = 0u;
    uint8_t m_Condition1 = 0u;
hu's avatar
hu committed
1277

hu's avatar
hu committed
1278 1279
    m_Condition1 = (uint8_t)Get_ID_18F0010B_Sig_ASR_Offroad_Switch();

hu's avatar
hu committed
1280
    if (K_Line_Set.K_Line_LID22 == 0x01u)
hu's avatar
hu committed
1281
    {
hu's avatar
hu committed
1282 1283 1284 1285 1286 1287 1288 1289
        if (m_Condition1 == 1u)
        {
            u8Result = 1u;
        }
        else
        {
            u8Result = 0u;
        }
hu's avatar
hu committed
1290 1291 1292 1293 1294 1295 1296 1297
    }
    else
    {
        u8Result = 0u;
    }

    return u8Result;
}
hu's avatar
hu committed
1298 1299
void LED_ASR_or_EVSC_OFF_L_Execution(uint8_t led_status)
{
hu's avatar
hu committed
1300
    if (K_Line_Set.K_Line_LID22 == 0x01u)
hu's avatar
hu committed
1301
    {
hu's avatar
hu committed
1302 1303 1304 1305 1306 1307 1308 1309
        if (led_status == 1)
        {
            IS31_CHIP0_CHANNEL18 = LED_BRIGHTNESS;
        }
        else
        {
            IS31_CHIP0_CHANNEL18 = 0x00;
        }
hu's avatar
hu committed
1310

hu's avatar
hu committed
1311 1312 1313 1314 1315 1316 1317 1318
        if (led_status == 1)
        {
            SEG_LED_ASR_or_EVSC_OFF_L(7);
        }
        else
        {
            SEG_LED_ASR_or_EVSC_OFF_L(0);
        }
hu's avatar
hu committed
1319 1320 1321
    }
    else
    {
hu's avatar
hu committed
1322
        IS31_CHIP0_CHANNEL18 = 0x0u;
hu's avatar
hu committed
1323 1324 1325
        SEG_LED_ASR_or_EVSC_OFF_L(0);
    }
}
hu's avatar
hu committed
1326

hu's avatar
hu committed
1327
/******************************************************************************
hu's avatar
hu committed
1328
  L12 EVSC
hu's avatar
hu committed
1329 1330 1331
  信号接口:
  信号定义:
  输出信号:
hu's avatar
hu committed
1332
  调整依据:SXS-VC66-22_EBS WARNING & INDICATOR (7“LCD)改訂1-1_20211116
hu's avatar
hu committed
1333 1334
 ******************************************************************************/
uint8_t LED_EVSC_L_Judgement(void)
hu's avatar
hu committed
1335 1336
{
    uint8_t u8Result = 0u;
hu's avatar
hu committed
1337 1338
    uint8_t CanStatus1 = 0u;
    uint8_t CanStatus2 = 0u;
hu's avatar
hu committed
1339 1340 1341 1342 1343
    uint8_t m_Condition1 = 0u;
    uint8_t m_Condition2 = 0u;
    uint8_t m_Condition3 = 0u;
    uint8_t m_Condition4 = 0u;
    uint8_t m_Condition5 = 0u;
hu's avatar
hu committed
1344 1345
    uint16_t m_Condition6 = 0u;
    uint16_t m_Condition7 = 0u;
1346 1347
    uint8_t m_AirSta1 = 0u;
    uint8_t m_AirSta2 = 0u;
hu's avatar
hu committed
1348

hu's avatar
hu committed
1349 1350 1351
    CanStatus1 = CAN_MSG_Status(ID_CanMsg18FE4F0B_Msg_Count);
    CanStatus2 = CAN_MSG_Status(ID_CanMsg18F0010B_Msg_Count);
    m_Condition1 = (uint8_t)Line_In_Get_Status(LINE_IN_BRAKE_AIR_EBS); /*A28*/
hu's avatar
hu committed
1352
    m_Condition2 = (uint8_t)Get_ID_18F0010B_Sig_EBS_Red_Warning_Lamp_State(); /*byte6 34*/
hu's avatar
hu committed
1353 1354 1355
    m_Condition3 = (uint8_t)Get_ID_18F0010B_Sig_ATC_or_ASR_Lamp_State();
    m_Condition4 = (uint8_t)Get_ID_18FE4F0B_Sig_VDC_Lamp_State();
    m_Condition5 = (uint8_t)Get_ID_18FE4F0B_Sig_VDC_Fully_operational();
hu's avatar
hu committed
1356 1357
    m_Condition6 = Common_Get_Air1_Data();  /*气压1 1.89以下*/
    m_Condition7 = Common_Get_Air2_Data();  /*气压1 1.89以下*/
1358 1359
    m_AirSta1 = Common_Get_Air1_Valid();
    m_AirSta2 = Common_Get_Air2_Valid();
hu's avatar
hu committed
1360 1361

    /*做个回差,去抖*/
1362
    if (((m_Condition6 < 1890u) && (m_AirSta1 == 1u)) || ((m_Condition7 < 1890u) && (m_AirSta2 == 1u)))
hu's avatar
hu committed
1363
    {
hu's avatar
hu committed
1364
        L12_Air_Sta  = 1u;
hu's avatar
hu committed
1365
    }
1366
    else if (((m_Condition6 >= 1990u) && (m_Condition7 >= 1990u)) || ((m_AirSta1 == 0u) && (m_AirSta2 == 0u)))
hu's avatar
hu committed
1367
    {
hu's avatar
hu committed
1368
        L12_Air_Sta = 0u;
hu's avatar
hu committed
1369
    }
hu's avatar
hu committed
1370 1371

    if (
hu's avatar
hu committed
1372
        (m_Condition1 == 1u) || (Common_Get_L12_Air_Sta() == 1u) ||
hu's avatar
hu committed
1373 1374
        (((m_Condition2 == 1u) || (CanStatus2 == CAN_SIG_LOST)) && (K_Line_Set.K_Line_LID21 == 0x01u)) ||
        (((m_Condition5 == 0u) || (CanStatus1 == CAN_SIG_LOST)) && (K_Line_Set.K_Line_LID22 == 0x01u))
hu's avatar
hu committed
1375
    )
hu's avatar
hu committed
1376
    {
hu's avatar
hu committed
1377
        u8Result = 1u;
hu's avatar
hu committed
1378
    }
hu's avatar
hu committed
1379 1380
    else if (((m_Condition3 == 1u) && (K_Line_Set.K_Line_LID21 == 0x01u)) ||
             ((m_Condition4 == 1u) && (K_Line_Set.K_Line_LID22 == 0x01u)))
hu's avatar
hu committed
1381
    {
hu's avatar
hu committed
1382
        u8Result = FLASH_SYNC_2Hz;
hu's avatar
hu committed
1383
    }
hu's avatar
hu committed
1384 1385 1386 1387 1388 1389 1390
    else
    {
        u8Result = 0u;
    }

    return u8Result;
}
hu's avatar
hu committed
1391
void LED_EVSC_L_Execution(uint8_t led_status)
hu's avatar
hu committed
1392
{
hu's avatar
hu committed
1393
    if (led_status == 1)
hu's avatar
hu committed
1394
    {
hu's avatar
hu committed
1395
        IS31_CHIP0_CHANNEL19 = LED_BRIGHTNESS;
hu's avatar
hu committed
1396 1397 1398
    }
    else
    {
hu's avatar
hu committed
1399
        IS31_CHIP0_CHANNEL19 = 0x00;
hu's avatar
hu committed
1400 1401
    }

hu's avatar
hu committed
1402
    if (led_status == 1)
hu's avatar
hu committed
1403
    {
hu's avatar
hu committed
1404
        SEG_LED_EVSC_L(7);
hu's avatar
hu committed
1405 1406 1407
    }
    else
    {
hu's avatar
hu committed
1408
        SEG_LED_EVSC_L(0);
hu's avatar
hu committed
1409 1410 1411
    }
}

hu's avatar
hu committed
1412
/******************************************************************************
hu's avatar
hu committed
1413
  L13 ECO STOP OFF
hu's avatar
hu committed
1414 1415 1416 1417 1418
  信号接口:
  信号定义:
  输出信号:
 ******************************************************************************/
uint8_t LED_eco_stop_OFF_L_Judgement(void)
hu's avatar
hu committed
1419 1420 1421
{
    uint8_t u8Result = 0u;
    uint8_t m_Condition1 = 0u;
hu's avatar
hu committed
1422
    m_Condition1 = (uint8_t)XXXX;
hu's avatar
hu committed
1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434

    if (m_Condition1 == 1u)
    {
        u8Result = 1u;
    }
    else
    {
        u8Result = 0u;
    }

    return u8Result;
}
hu's avatar
hu committed
1435
void LED_eco_stop_OFF_L_Execution(uint8_t led_status)
hu's avatar
hu committed
1436
{
hu's avatar
hu committed
1437
    if (led_status == 1)
hu's avatar
hu committed
1438
    {
hu's avatar
hu committed
1439 1440
        IS31_CHIP0_CHANNEL12 = LED_BRIGHTNESS;  /* 绿灯 亮 */
        IS31_CHIP0_CHANNEL13 = 0x00u;  /* 黄灯 灭 */
hu's avatar
hu committed
1441
    }
hu's avatar
hu committed
1442
    else if (led_status == 2)
hu's avatar
hu committed
1443
    {
hu's avatar
hu committed
1444 1445
        IS31_CHIP0_CHANNEL12 = 0x00u;  /* 绿灯 灭 */
        IS31_CHIP0_CHANNEL13 = LED_BRIGHTNESS;  /* 黄灯 亮 */
hu's avatar
hu committed
1446 1447 1448
    }
    else
    {
hu's avatar
hu committed
1449 1450
        IS31_CHIP0_CHANNEL12 = 0x00u;  /* 绿灯 灭 */
        IS31_CHIP0_CHANNEL13 = 0x00u;  /* 黄灯 灭 */
hu's avatar
hu committed
1451 1452
    }

hu's avatar
hu committed
1453
    if ((led_status == 1) || (led_status == 2))
hu's avatar
hu committed
1454
    {
hu's avatar
hu committed
1455
        SEG_LED_eco_stop_OFF_L(7);
hu's avatar
hu committed
1456 1457 1458
    }
    else
    {
hu's avatar
hu committed
1459
        SEG_LED_eco_stop_OFF_L(0);
hu's avatar
hu committed
1460 1461 1462
    }
}

hu's avatar
hu committed
1463
/******************************************************************************
hu's avatar
hu committed
1464
  L14 AMT
hu's avatar
hu committed
1465
  信号接口:  无多包处理 /18EBFF03/18ECFF03  PGN:65226 DM1
hu's avatar
hu committed
1466 1467 1468 1469
  信号定义:
  输出信号:
 ******************************************************************************/
uint8_t LED_AMT_L_Judgement(void)
hu's avatar
hu committed
1470 1471 1472 1473 1474
{
    uint8_t u8Result = 0u;
    uint8_t m_Condition1 = 0u;
    uint8_t m_Condition2 = 0u;
    uint8_t m_Condition3 = 0u;
hu's avatar
hu committed
1475 1476 1477
    uint8_t m_Condition4 = 0u;
    uint8_t m_Condition5 = 0u;
    uint8_t m_Condition6 = 0u;
hu's avatar
hu committed
1478

hu's avatar
hu committed
1479 1480
    m_Condition1 = (uint8_t)Get_ID_18FECA03_Sig_Amber_Warning_Lamp_Status();
    m_Condition2 = (uint8_t)Get_ID_18FECA03_Sig_Malfunction_indicator_Lamp();
hu's avatar
hu committed
1481

hu's avatar
hu committed
1482
    if (K_Line_Set.K_Line_LID41 == 0x13u)
hu's avatar
hu committed
1483
    {
hu's avatar
hu committed
1484 1485 1486 1487 1488 1489 1490 1491
        if ((m_Condition1 == 1u) || (m_Condition2 == 1u))
        {
            u8Result = 1u;
        }
        else
        {
            u8Result = 0u;
        }
hu's avatar
hu committed
1492 1493 1494 1495 1496 1497 1498 1499
    }
    else
    {
        u8Result = 0u;
    }

    return u8Result;
}
hu's avatar
hu committed
1500
void LED_AMT_L_Execution(uint8_t led_status)
hu's avatar
hu committed
1501
{
hu's avatar
hu committed
1502
    if (K_Line_Set.K_Line_LID41 == 0x13u)
hu's avatar
hu committed
1503
    {
hu's avatar
hu committed
1504 1505 1506 1507 1508 1509 1510 1511
        if (led_status == 1)
        {
            IS31_CHIP0_CHANNEL14 = LED_BRIGHTNESS;
        }
        else
        {
            IS31_CHIP0_CHANNEL14 = 0x00;
        }
hu's avatar
hu committed
1512

hu's avatar
hu committed
1513 1514 1515 1516 1517 1518 1519 1520
        if (led_status == 1)
        {
            SEG_LED_AMT_L(7);
        }
        else
        {
            SEG_LED_AMT_L(0);
        }
hu's avatar
hu committed
1521 1522 1523
    }
    else
    {
hu's avatar
hu committed
1524
        IS31_CHIP0_CHANNEL14 = 0x00u;
hu's avatar
hu committed
1525
        SEG_LED_AMT_L(0);
hu's avatar
hu committed
1526 1527 1528
    }
}

hu's avatar
hu committed
1529
/******************************************************************************
hu's avatar
hu committed
1530
  L15 WEAR IND
hu's avatar
hu committed
1531
  信号接口: B38 0V B40 0V
hu's avatar
hu committed
1532 1533 1534 1535
  信号定义:
  输出信号:
 ******************************************************************************/
uint8_t LED_WEAR_IND_L_Judgement(void)
hu's avatar
hu committed
1536 1537 1538
{
    uint8_t u8Result = 0u;
    uint8_t m_Condition1 = 0u;
hu's avatar
hu committed
1539 1540
    uint8_t m_Condition2 = 0u;

hu's avatar
hu committed
1541
    m_Condition1 = (uint8_t)Line_In_Get_Status(LINE_IN_WEAR_IND);
hu's avatar
hu committed
1542
    m_Condition2 = (uint8_t)Line_In_Get_Status(LINE_IN_WEAR2);
hu's avatar
hu committed
1543

hu's avatar
hu committed
1544
    if ((m_Condition1 == 1u) || (m_Condition2 == 0x01u))
hu's avatar
hu committed
1545 1546 1547 1548 1549 1550 1551 1552 1553 1554
    {
        u8Result = 1u;
    }
    else
    {
        u8Result = 0u;
    }

    return u8Result;
}
hu's avatar
hu committed
1555
void LED_WEAR_IND_L_Execution(uint8_t led_status)
hu's avatar
hu committed
1556 1557 1558
{
    if (led_status == 1)
    {
hu's avatar
hu committed
1559
        IS31_CHIP0_CHANNEL15 = LED_BRIGHTNESS;
hu's avatar
hu committed
1560 1561 1562
    }
    else
    {
hu's avatar
hu committed
1563
        IS31_CHIP0_CHANNEL15 = 0x00;
hu's avatar
hu committed
1564 1565 1566 1567
    }

    if (led_status == 1)
    {
hu's avatar
hu committed
1568
        SEG_LED_WEAR_IND_L(7);
hu's avatar
hu committed
1569 1570 1571
    }
    else
    {
hu's avatar
hu committed
1572
        SEG_LED_WEAR_IND_L(0);
hu's avatar
hu committed
1573 1574 1575
    }
}

hu's avatar
hu committed
1576
/******************************************************************************
hu's avatar
hu committed
1577
 R1 PARK BRAKE
hu's avatar
hu committed
1578
 信号接口: A23 GND
hu's avatar
hu committed
1579 1580 1581 1582
 信号定义:
 输出信号:
******************************************************************************/
uint8_t LED_PARK_BRAKE_R_Judgement(void)
hu's avatar
hu committed
1583
{
hu's avatar
hu committed
1584 1585
    uint8_t u8Result = 0u;
    uint8_t m_Condition1 = 0u;
hu's avatar
hu committed
1586
    m_Condition1 = (uint8_t)Line_In_Get_Status(LINE_IN_PARK_BRAKE);
hu's avatar
hu committed
1587

hu's avatar
hu committed
1588
    if (m_Condition1 == 1u)
hu's avatar
hu committed
1589
    {
hu's avatar
hu committed
1590
        u8Result = 1u;
hu's avatar
hu committed
1591 1592 1593
    }
    else
    {
hu's avatar
hu committed
1594
        u8Result = 0u;
hu's avatar
hu committed
1595 1596
    }

hu's avatar
hu committed
1597 1598
    return u8Result;
}
hu's avatar
hu committed
1599
void LED_PARK_BRAKE_R_Execution(uint8_t led_status)
hu's avatar
hu committed
1600 1601 1602
{
    if (led_status == 1)
    {
hu's avatar
hu committed
1603
        IS31_CHIP0_CHANNEL08 = LED_BRIGHTNESS;
hu's avatar
hu committed
1604 1605 1606
    }
    else
    {
hu's avatar
hu committed
1607
        IS31_CHIP0_CHANNEL08 = 0x00;
hu's avatar
hu committed
1608 1609 1610 1611
    }

    if (led_status == 1)
    {
hu's avatar
hu committed
1612
        SEG_LED_PARK_BRAKE_R(7);
hu's avatar
hu committed
1613 1614 1615
    }
    else
    {
hu's avatar
hu committed
1616
        SEG_LED_PARK_BRAKE_R(0);
hu's avatar
hu committed
1617 1618 1619
    }
}

hu's avatar
hu committed
1620
/******************************************************************************
hu's avatar
hu committed
1621
  R2 BRAKE AIR/EBS
hu's avatar
hu committed
1622 1623 1624 1625
  信号接口:
  信号定义:
  输出信号:
 ******************************************************************************/
hu's avatar
hu committed
1626
uint8_t LED_BRAKE_AIR_or_EBS_RED_R_Judgement(void)
hu's avatar
hu committed
1627 1628
{
    uint8_t u8Result = 0u;
hu's avatar
hu committed
1629
    uint8_t CanStatus = 0u;
hu's avatar
hu committed
1630
    uint8_t m_Condition1 = 0u;
hu's avatar
hu committed
1631
    uint8_t m_Condition3 = 0u;
hu's avatar
hu committed
1632

hu's avatar
hu committed
1633 1634 1635
    m_Condition1 = (uint8_t)Line_In_Get_Status(LINE_IN_BRAKE_AIR_EBS);
    m_Condition3 = (uint8_t)Get_ID_18F0010B_Sig_EBS_Red_Warning_Lamp_State();

hu's avatar
hu committed
1636 1637
    CanStatus = CAN_MSG_Status(ID_CanMsg18F0010B_Msg_Count);

hu's avatar
hu committed
1638
    if ((m_Condition1 == 0x01u) || (Common_Get_L12_Air_Sta() == 0x01u) ||
hu's avatar
hu committed
1639
            ((K_Line_Set.K_Line_LID21 == 0x01u) && ((m_Condition3 == 1u) || (CanStatus == CAN_SIG_LOST))))
hu's avatar
hu committed
1640
    {
hu's avatar
hu committed
1641
        u8Result = 1u;
hu's avatar
hu committed
1642 1643 1644 1645 1646 1647 1648 1649
    }
    else
    {
        u8Result = 0u;
    }

    return u8Result;
}
hu's avatar
hu committed
1650
void LED_BRAKE_AIR_or_EBS_RED_R_Execution(uint8_t led_status)
hu's avatar
hu committed
1651
{
hu's avatar
hu committed
1652
    BRAKE_AIR_EBS_LED_MCU = led_status;
hu's avatar
hu committed
1653 1654 1655

    if (led_status == 1)
    {
hu's avatar
hu committed
1656
        SEG_LED_BRAKE_AIR_or_EBS_RED_R(7);
hu's avatar
hu committed
1657 1658 1659
    }
    else
    {
hu's avatar
hu committed
1660
        SEG_LED_BRAKE_AIR_or_EBS_RED_R(0);
hu's avatar
hu committed
1661 1662 1663
    }
}

hu's avatar
hu committed
1664
/******************************************************************************
hu's avatar
hu committed
1665
  R3 BRAKE LOCK
hu's avatar
hu committed
1666 1667
  信号接口:
  信号定义:
hu's avatar
hu committed
1668
  输出信号:
hu's avatar
hu committed
1669
 ******************************************************************************/
hu's avatar
hu committed
1670
uint8_t LED_BRAKE_LOCK_R_Judgement(void)
hu's avatar
hu committed
1671 1672 1673
{
    uint8_t u8Result = 0u;
    uint8_t m_Condition1 = 0u;
hu's avatar
hu committed
1674

hu's avatar
hu committed
1675
    m_Condition1 = (uint8_t)XXXX;
hu's avatar
hu committed
1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687

    if (m_Condition1 == 1u)
    {
        u8Result = 1u;
    }
    else
    {
        u8Result = 0u;
    }

    return u8Result;
}
hu's avatar
hu committed
1688
void LED_BRAKE_LOCK_R_Execution(uint8_t led_status)
hu's avatar
hu committed
1689
{
hu's avatar
hu committed
1690 1691 1692 1693 1694 1695 1696 1697
    if (led_status == 1)
    {
        IS31_CHIP0_CHANNEL07 = LED_BRIGHTNESS;
    }
    else
    {
        IS31_CHIP0_CHANNEL07 = 0x00;
    }
hu's avatar
hu committed
1698 1699 1700

    if (led_status == 1)
    {
hu's avatar
hu committed
1701
        SEG_LED_BRAKE_LOCK_R(7);
hu's avatar
hu committed
1702 1703 1704
    }
    else
    {
hu's avatar
hu committed
1705
        SEG_LED_BRAKE_LOCK_R(0);
hu's avatar
hu committed
1706 1707
    }
}
hu's avatar
hu committed
1708

hu's avatar
hu committed
1709
/******************************************************************************
hu's avatar
hu committed
1710
  R4 AIR SUS
hu's avatar
hu committed
1711 1712 1713 1714
  信号接口:
  信号定义:
  输出信号:
 ******************************************************************************/
hu's avatar
hu committed
1715
uint8_t LED_AIR_SUS_R_Judgement(void)
hu's avatar
hu committed
1716 1717 1718
{
    uint8_t u8Result = 0u;
    uint8_t m_Condition1 = 0u;
hu's avatar
hu committed
1719

hu's avatar
hu committed
1720
    m_Condition1 = (uint8_t)Line_In_Get_Status(LINE_IN_AIR_SUS);
hu's avatar
hu committed
1721

hu's avatar
hu committed
1722
    if (m_Condition1 == 1u)
hu's avatar
hu committed
1723 1724 1725 1726 1727 1728 1729
    {
        u8Result = 1u;
    }
    else
    {
        u8Result = 0u;
    }
hu's avatar
hu committed
1730

hu's avatar
hu committed
1731 1732
    return u8Result;
}
hu's avatar
hu committed
1733
void LED_AIR_SUS_R_Execution(uint8_t led_status)
hu's avatar
hu committed
1734
{
hu's avatar
hu committed
1735 1736 1737 1738 1739 1740 1741 1742
    if (led_status == 1)
    {
        IS31_CHIP0_CHANNEL06 = LED_BRIGHTNESS;
    }
    else
    {
        IS31_CHIP0_CHANNEL06 = 0x00;
    }
hu's avatar
hu committed
1743 1744 1745

    if (led_status == 1)
    {
hu's avatar
hu committed
1746
        SEG_LED_AIR_SUS_R(7);
hu's avatar
hu committed
1747 1748 1749
    }
    else
    {
hu's avatar
hu committed
1750
        SEG_LED_AIR_SUS_R(0);
hu's avatar
hu committed
1751 1752 1753
    }
}

hu's avatar
hu committed
1754
/******************************************************************************
hu's avatar
hu committed
1755 1756 1757 1758 1759 1760
  R5 TRAILER BRAKE
  信号接口:
  信号定义:
  输出信号:
 ******************************************************************************/
uint8_t LED_TRAILER_BRAKE_R_Judgement(void)
hu's avatar
hu committed
1761 1762 1763
{
    uint8_t u8Result = 0u;
    uint8_t m_Condition1 = 0u;
hu's avatar
hu committed
1764

hu's avatar
hu committed
1765
    m_Condition1 = (uint8_t)Line_In_Get_Status(LINE_IN_TRAILER_BRAKE);
hu's avatar
hu committed
1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777

    if (m_Condition1 == 1u)
    {
        u8Result = 1u;
    }
    else
    {
        u8Result = 0u;
    }

    return u8Result;
}
hu's avatar
hu committed
1778
void LED_TRAILER_BRAKE_R_Execution(uint8_t led_status)
hu's avatar
hu committed
1779 1780 1781
{
    if (led_status == 1)
    {
hu's avatar
hu committed
1782
        IS31_CHIP0_CHANNEL10 = LED_BRIGHTNESS;
hu's avatar
hu committed
1783 1784 1785
    }
    else
    {
hu's avatar
hu committed
1786
        IS31_CHIP0_CHANNEL10 = 0x00;
hu's avatar
hu committed
1787 1788 1789 1790
    }

    if (led_status == 1)
    {
hu's avatar
hu committed
1791
        SEG_LED_TRAILER_BRAKE_R(7);
hu's avatar
hu committed
1792 1793 1794
    }
    else
    {
hu's avatar
hu committed
1795
        SEG_LED_TRAILER_BRAKE_R(0);
hu's avatar
hu committed
1796 1797 1798
    }
}

hu's avatar
hu committed
1799
/******************************************************************************
hu's avatar
hu committed
1800
  R6 BRAKE AIR/EBS
hu's avatar
hu committed
1801 1802 1803 1804
  信号接口:
  信号定义:
  输出信号:
 ******************************************************************************/
hu's avatar
hu committed
1805
uint8_t LED_BRAKE_AIR_or_EBS_YELLOW_R_Judgement(void)
hu's avatar
hu committed
1806 1807 1808
{
    uint8_t u8Result = 0u;
    uint8_t m_Condition1 = 0u;
hu's avatar
hu committed
1809 1810

    //m_Condition1 = (uint8_t)Get_ID_18F0010B_Sig_EBS_Amber_Warning_State();
hu's avatar
hu committed
1811

hu's avatar
hu committed
1812
    if (m_Condition1 == 1u)
hu's avatar
hu committed
1813
    {
hu's avatar
hu committed
1814
        u8Result = 0u;
hu's avatar
hu committed
1815 1816 1817 1818 1819 1820 1821 1822
    }
    else
    {
        u8Result = 0u;
    }

    return u8Result;
}
hu's avatar
hu committed
1823
void LED_BRAKE_AIR_or_EBS_YELLOW_R_Execution(uint8_t led_status)
hu's avatar
hu committed
1824
{
hu's avatar
hu committed
1825 1826 1827 1828 1829 1830 1831 1832
    if (led_status == 1)
    {
        IS31_CHIP0_CHANNEL09 = LED_BRIGHTNESS;
    }
    else
    {
        IS31_CHIP0_CHANNEL09 = 0x00;
    }
hu's avatar
hu committed
1833 1834 1835

    if (led_status == 1)
    {
hu's avatar
hu committed
1836
        SEG_LED_BRAKE_AIR_or_EBS_YELLOW_R(7);
hu's avatar
hu committed
1837 1838 1839
    }
    else
    {
hu's avatar
hu committed
1840
        SEG_LED_BRAKE_AIR_or_EBS_YELLOW_R(0);
hu's avatar
hu committed
1841 1842 1843
    }
}

hu's avatar
hu committed
1844
/******************************************************************************
hu's avatar
hu committed
1845
  R7  ACC AIR
hu's avatar
hu committed
1846 1847
  信号接口:
  信号定义:
hu's avatar
hu committed
1848
  输出信号: R6_LED_OUT
hu's avatar
hu committed
1849
 ******************************************************************************/
hu's avatar
hu committed
1850
uint8_t LED_ACC_AIR_R_Judgement(void)
hu's avatar
hu committed
1851 1852 1853
{
    uint8_t u8Result = 0u;
    uint8_t m_Condition1 = 0u;
hu's avatar
hu committed
1854

hu's avatar
hu committed
1855
    m_Condition1 = (uint8_t)Line_In_Get_Status(LINE_IN_ACC_AIR);
hu's avatar
hu committed
1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867

    if (m_Condition1 == 1u)
    {
        u8Result = 1u;
    }
    else
    {
        u8Result = 0u;
    }

    return u8Result;
}
hu's avatar
hu committed
1868 1869

void LED_ACC_AIR_R_Execution(uint8_t led_status)
hu's avatar
hu committed
1870
{
hu's avatar
hu committed
1871
    R6_LED_OUT = led_status;
hu's avatar
hu committed
1872 1873 1874

    if (led_status == 1)
    {
hu's avatar
hu committed
1875
        SEG_LED_ACC_AIR_R(7);
hu's avatar
hu committed
1876 1877 1878
    }
    else
    {
hu's avatar
hu committed
1879
        SEG_LED_ACC_AIR_R(0);
hu's avatar
hu committed
1880 1881
    }
}
hu's avatar
hu committed
1882
/******************************************************************************
hu's avatar
hu committed
1883
  R8 ABS
hu's avatar
hu committed
1884 1885 1886 1887
  信号接口:
  信号定义:
  输出信号:
 ******************************************************************************/
hu's avatar
hu committed
1888
uint8_t LED_ABS_R_Judgement(void)
hu's avatar
hu committed
1889 1890
{
    uint8_t u8Result = 0u;
hu's avatar
hu committed
1891
    uint8_t m_Condition2 = 0u;
hu's avatar
hu committed
1892
    uint8_t CanStatus1 = 0u;
hu's avatar
hu committed
1893

hu's avatar
hu committed
1894 1895
    m_Condition2 = (uint8_t)Get_ID_18F0010B_Sig_EBS_Amber_Warning_State();
    CanStatus1 = CAN_MSG_Status(ID_CanMsg18F0010B_Msg_Count);
hu's avatar
hu committed
1896

hu's avatar
hu committed
1897
    if (K_Line_Set.K_Line_LID21 == 0x01)
hu's avatar
hu committed
1898
    {
hu's avatar
hu committed
1899
        if ((CanStatus1 == CAN_SIG_LOST) || (m_Condition2 == 1u))
hu's avatar
hu committed
1900 1901 1902 1903 1904 1905 1906
        {
            u8Result = 1u;
        }
        else
        {
            u8Result = 0u;
        }
hu's avatar
hu committed
1907 1908 1909 1910 1911 1912 1913 1914
    }
    else
    {
        u8Result = 0u;
    }

    return u8Result;
}
hu's avatar
hu committed
1915
void LED_ABS_R_Execution(uint8_t led_status)
hu's avatar
hu committed
1916
{
hu's avatar
hu committed
1917
    ABS_LED_MCU_OUT = led_status;
hu's avatar
hu committed
1918

hu's avatar
hu committed
1919 1920 1921
    if (led_status == 1)
    {
        SEG_LED_ABS_R(7);
hu's avatar
hu committed
1922 1923 1924
    }
    else
    {
hu's avatar
hu committed
1925
        SEG_LED_ABS_R(0);
hu's avatar
hu committed
1926 1927 1928
    }
}

hu's avatar
hu committed
1929 1930 1931 1932 1933 1934 1935 1936 1937 1938
/******************************************************************************
U2 TRAILER ABS
  信号接口:
  信号定义:
  输出信号:U2_LED_OUT
 ******************************************************************************/
uint8_t LED_TRAILER_ABS_U_Judgement(void)
{
    uint8_t u8Result = 0u;
    uint8_t m_Condition1 = 0u;
hu's avatar
hu committed
1939

hu's avatar
hu committed
1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955
    m_Condition1 = (uint8_t)Line_In_Get_Status(LINE_IN_TRAILER_ABS);

    if (m_Condition1 == 1u)
    {
        u8Result = 1u;
    }
    else
    {
        u8Result = 0u;
    }

    return u8Result;
}

void LED_TRAILER_ABS_U_Execution(uint8_t led_status)
{
hu's avatar
hu committed
1956
    TRAILER_ABS_LED_MCU_OUT = led_status;
hu's avatar
hu committed
1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977

    if (led_status == 1)
    {
        SEG_LED_TRAILER_ABS_U(7);
    }
    else
    {
        SEG_LED_TRAILER_ABS_U(0);
    }
}

/******************************************************************************
U3 WORKING LAMP
  信号接口:
  信号定义:
  输出信号:
 ******************************************************************************/
uint8_t LED_WORKING_LAMP_U_Judgement(void)
{
    uint8_t u8Result = 0u;
    uint8_t m_Condition1 = 0u;
hu's avatar
hu committed
1978

hu's avatar
hu committed
1979 1980 1981 1982 1983 1984 1985 1986 1987 1988
    m_Condition1 = (uint8_t)XXXX;

    if (m_Condition1 == 1u)
    {
        u8Result = 1u;
    }
    else
    {
        u8Result = 0u;
    }
hu's avatar
hu committed
1989

hu's avatar
hu committed
1990 1991
    return u8Result;
}
hu's avatar
hu committed
1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012
void LED_WORKING_LAMP_U_Execution(uint8_t led_status)
{
    if (led_status == 1)
    {
        IS31_CHIP0_CHANNEL11 = LED_BRIGHTNESS;
    }
    else
    {
        IS31_CHIP0_CHANNEL11 = 0x00;
    }

    if (led_status == 1)
    {
        SEG_LED_WORKING_LAMP_U(7);
    }
    else
    {
        SEG_LED_WORKING_LAMP_U(0);
    }
}

hu's avatar
hu committed
2013 2014 2015 2016 2017 2018 2019 2020 2021 2022
/******************************************************************************
U6 TRAILE ABS INFO
  信号接口:
  信号定义:
  输出信号:
 ******************************************************************************/
uint8_t LED_TRAILER_ABS_INFO_U_Judgement(void)
{
    uint8_t u8Result = 0u;
    uint8_t m_Condition1 = 0u;
hu's avatar
hu committed
2023

hu's avatar
hu committed
2024 2025
    m_Condition1 = (uint8_t)Line_In_Get_Status(LINE_IN_TRAILER_ABS_INFO);

hu's avatar
hu committed
2026
    if (m_Condition1 == 0x01u)
hu's avatar
hu committed
2027 2028 2029 2030 2031 2032 2033 2034 2035 2036
    {
        u8Result = 1u;
    }
    else
    {
        u8Result = 0u;
    }

    return u8Result;
}
hu's avatar
hu committed
2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055
void LED_TRAILER_ABS_INFO_U_Execution(uint8_t led_status)
{
    if (led_status == 1)
    {
        IS31_CHIP0_CHANNEL05 = LED_BRIGHTNESS;
    }
    else
    {
        IS31_CHIP0_CHANNEL05 = 0x00;
    }

    if (led_status == 1)
    {
        SEG_LED_TRAILER_ABS_INFO_U(7);
    }
    else
    {
        SEG_LED_TRAILER_ABS_INFO_U(0);
    }
hu's avatar
hu committed
2056 2057 2058 2059 2060 2061 2062 2063 2064 2065
}

/******************************************************************************
Temp
  信号接口:
  信号定义:
  输出信号:
 ******************************************************************************/
uint8_t LED_Temp_Judgement(void)
{
2066
    static uint8_t u8Result = 0u;
hu's avatar
hu committed
2067 2068
    uint8_t m_Condition1 = 0u;

2069 2070 2071
    m_Condition1 = Coolant_Get_CurSeg();

    if (K_Line_Set.K_Line_LID43 == 0x82u)
hu's avatar
hu committed
2072
    {
2073 2074 2075 2076 2077 2078 2079 2080
        if ((m_Condition1 >= 12u) &&  (Coolant_Get_Valid() == 1u))
        {
            u8Result = 1u;
        }
        else if (m_Condition1 <= 9u)
        {
            u8Result = 0u;
        }
hu's avatar
hu committed
2081 2082 2083 2084 2085 2086 2087 2088 2089 2090
    }
    else
    {
        u8Result = 0u;
    }

    return u8Result;
}
void LED_Temp_Execution(uint8_t led_status)
{
2091 2092 2093 2094 2095
    COMMON_PowerStatus_t u8IG_st;

    u8IG_st = Common_Get_IG_Sts();

    if (u8IG_st == COMMON_POWER_ON)
hu's avatar
hu committed
2096
    {
2097 2098 2099 2100 2101
        if ((led_status == 1u) && (K_Line_Set.K_Line_LID43 == 0x82u))
        {
            //TimerB_PWM_Channel_Duty_Set(TIMERB_2_CH7 , testBG );//水温格白色
            TEMP_R_LED_OUT = 1u ;/*水温红灯*/
            Water_Temp_Led_R_MCU_OUT = 0u;
hu's avatar
hu committed
2102

2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113
            TEMP_W_LED_OUT = 0u ;//水温字符白色指示灯
            Water_Temp_Led_W_MCU_OUT = 1u;
        }
        else
        {
            TEMP_R_LED_OUT = 0u ;/*水温红灯*/
            Water_Temp_Led_R_MCU_OUT = 0u;

            TEMP_W_LED_OUT = 1u ;//水温字符白色指示灯
            Water_Temp_Led_W_MCU_OUT = 1u;
        }
hu's avatar
hu committed
2114 2115 2116 2117 2118 2119
    }
    else
    {
        TEMP_R_LED_OUT = 0u ;/*水温红灯*/
        Water_Temp_Led_R_MCU_OUT = 0u;

2120 2121
        TEMP_W_LED_OUT = 0u ;//水温字符白色指示灯
        Water_Temp_Led_W_MCU_OUT = 0u;
hu's avatar
hu committed
2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133
    }
}

/******************************************************************************
Fuel
  信号接口:
  信号定义:
  输出信号:
 ******************************************************************************/
uint8_t LED_Fuel_Judgement(void)
{
    uint8_t u8Result = 0u;
hu's avatar
hu committed
2134 2135 2136
    uint8_t variable_1 = 0x00u;
    uint8_t variable_2 = 0x00u;
    uint16_t variable_5 = 0x00u;
hu's avatar
hu committed
2137

hu's avatar
hu committed
2138 2139 2140 2141 2142
    variable_1 = Fuel_Get_CurSeg();/*格*/
    variable_2 = GetFuelSensorState();/*燃油状态*/
    variable_5 = GetFuelResistance(); /*采集的阻值*/

    if ((variable_1 <= 1 ) && (variable_2 == FuelSensorNormal) && (variable_5 != 65535) && (K_Line_Set.K_Line_LID43 == 0x82u))
hu's avatar
hu committed
2143 2144 2145 2146 2147 2148 2149 2150
    {
        u8Result = 1u;
    }
    else
    {
        u8Result = 0u;
    }

hu's avatar
hu committed
2151

hu's avatar
hu committed
2152 2153 2154 2155
    return u8Result;
}
void LED_Fuel_Execution(uint8_t led_status)
{
2156
    COMMON_PowerStatus_t u8IG_st;
hu's avatar
hu committed
2157

2158 2159 2160
    u8IG_st = Common_Get_IG_Sts();

    if (u8IG_st == COMMON_POWER_ON)
hu's avatar
hu committed
2161
    {
hu's avatar
hu committed
2162
        if ((led_status == 1u) && (K_Line_Set.K_Line_LID43 == 0x82u))
2163
        {
hu's avatar
hu committed
2164 2165
            FUEL_LED_Y_MCU = 1u ;
            FUEL_W_LED_OUT = 0u ;
2166 2167 2168
        }
        else
        {
hu's avatar
hu committed
2169 2170
            FUEL_LED_Y_MCU = 0u ;
            FUEL_W_LED_OUT = 1u ;
2171
        }
hu's avatar
hu committed
2172 2173 2174
    }
    else
    {
hu's avatar
hu committed
2175 2176
        FUEL_LED_Y_MCU = 0u ;
        FUEL_W_LED_OUT = 0u ;
hu's avatar
hu committed
2177
    }
hu's avatar
hu committed
2178 2179 2180
}

/******************************************************************************
2181
Common_Get_L12_Air_Sta
hu's avatar
hu committed
2182 2183 2184 2185 2186 2187 2188
  信号接口:
  信号定义:
  输出信号:
 ******************************************************************************/
uint8_t Common_Get_L12_Air_Sta(void)
{
    return L12_Air_Sta ;
hu's avatar
hu committed
2189
}