

#ifndef _POPUPS_H_
#define _POPUPS_H_


extern INT16U PopupAlarm ;


typedef struct 
{
    //INT8U EPB_FltLevel:1;
    //INT8U Fuel_SensorFlt:1;
    //INT8U Fuel_Low:1;
    //INT8U PDC_SysFlt:1;
    //INT8U Maint_Distance:1;
    //INT8U Maint_Car:1;
    //INT8U AirPressLow_F:1;
    //INT8U AirPressLow_R:1;

    INT8U start_button         :1; 
    INT8U nokey_sys_fault      :1;
    INT8U relay_fault          :1;
    INT8U authentication_failure:1;
    INT8U undetected_key       :1;
    INT8U key_not_Car          :1;
    INT8U Key_close_start      :1;
    INT8U brake_to_start       :1;
    INT8U N_gear_start         :1;
    INT8U N_gear_parking       :1;

    INT8U key_low_power           :1;
    INT8U motor_high              :1;
    INT8U Fuel_sensor_failure   :1;
    INT8U engine_water_high     :1;
    INT8U please_add_fuel       :1;
    INT8U Please_charge_power     :1;
    INT8U Electronic_parking_fault:1;
    INT8U please_foot_brake       :1;
    INT8U low_pressure            :1;
    INT8U gear_fault              :1;

    INT8U please_Step_brake      :1;
    INT8U please_N_gear          :1;
    INT8U Please_draw_charging   :1;
    INT8U high_low_temp          :1;
    INT8U charging_parking_brake :1;
    INT8U charge_complete        :1;
    INT8U charge_fault           :1;
    INT8U Face_Loss              :1;
    INT8U fatigue_driving        :1;
    INT8U fatigue_driving_stopcar:1;

    INT8U safe_driving          :1;
    INT8U Speeding_alarm        :1;
    INT8U Front_camera_occlusion:1;
    INT8U SOC_low               :1;
    INT8U pressure_fault_stopfuel:1;
    INT8U airbag_fault          :1;
    //INT8U TPMS_not_study      :1;
    //INT8U TPMS_sensor_loss    :1;
    //INT8U TPMS_sensor_fault   :1;
    //INT8U TPMS_low            :1;

    //INT8U TPMS_high             :1;
    //INT8U tire_depresses_quickly:1;
    //INT8U tire_temp_high        :1;
    //INT8U TPMS_sensor_low_power :1;
    INT8U GPF                     :1;
    INT8U Radar_sys_fault         :1;
    INT8U shifter_fault           :1;
    INT8U HighBeam_relay_fault    :1;
    INT8U RearFog_fault           :1;
    INT8U FrontFog_fault          :1;

    INT8U DayRun_fault:1;
    INT8U Position_fault:1;
    INT8U LowBeam_fault:1;
    INT8U reversing_light_fault:1;
    INT8U brake_light_fault:1;
    INT8U Please_pull_key:1;
    INT8U Maintenance_Km:1;
    INT8U Maintenance_Tips:1;
    INT8U please_Maintenance_engine:1;
    INT8U Maintenance_engine_Km:1;

    INT8U battery_low_power:1;
    INT8U power_takeoff_fault:1;
    INT8U power_takeoff_R_gear:1;
    
    //INT8U TPMS_NotLearnt       :1;
    INT8U TPMS_NotLearnt_LF       :1;
    INT8U TPMS_NotLearnt_LR      :1;
    INT8U TPMS_NotLearnt_LIR       :1;
    INT8U TPMS_NotLearnt_RF       :1;
    INT8U TPMS_NotLearnt_RR       :1;
    INT8U TPMS_NotLearnt_RIR       :1;

    //INT8U TPMS_SenLost       :1;
    INT8U TPMS_SenLost_LF       :1;
    INT8U TPMS_SenLost_LR       :1;
    INT8U TPMS_SenLost_LIR       :1;
    INT8U TPMS_SenLost_RF       :1;
    INT8U TPMS_SenLost_RR       :1;
    INT8U TPMS_SenLost_RIR       :1;

    //INT8U TPMS_SenFlt       :1;
    INT8U TPMS_SenFlt_LF       :1;
    INT8U TPMS_SenFlt_LR       :1;
    INT8U TPMS_SenFlt_LIR       :1;
    INT8U TPMS_SenFlt_RF       :1;
    INT8U TPMS_SenFlt_RR       :1;
    INT8U TPMS_SenFlt_RIR       :1;

    //INT8U TPMS_TirePr_Low       :1;
    INT8U TPMS_TirePr_Low_LF       :1;
    INT8U TPMS_TirePr_Low_LR       :1;
    INT8U TPMS_TirePr_Low_LIR       :1;
    INT8U TPMS_TirePr_Low_RF       :1;
    INT8U TPMS_TirePr_Low_RR       :1;
    INT8U TPMS_TirePr_Low_RIR       :1;

    //INT8U TPMS_TirePr_High       :1;
    INT8U TPMS_TirePr_High_LF       :1;
    INT8U TPMS_TirePr_High_LR       :1;
    INT8U TPMS_TirePr_High_LIR       :1;
    INT8U TPMS_TirePr_High_RF       :1;
    INT8U TPMS_TirePr_High_RR       :1;
    INT8U TPMS_TirePr_High_RIR       :1;

    //INT8U TPMS_FastLeak       :1;
    INT8U TPMS_FastLeak_LF       :1;
    INT8U TPMS_FastLeak_LR       :1;
    INT8U TPMS_FastLeak_LIR       :1;
    INT8U TPMS_FastLeak_RF       :1;
    INT8U TPMS_FastLeak_RR        :1;
    INT8U TPMS_FastLeak_RIR       :1;

    //INT8U TPMS_Temp_High       :1;
    INT8U TPMS_Temp_High_LF       :1;
    INT8U TPMS_Temp_High_LR       :1;
    INT8U TPMS_Temp_High_LIR       :1;
    INT8U TPMS_Temp_High_RF       :1;
    INT8U TPMS_Temp_High_RR        :1;
    INT8U TPMS_Temp_High_RIR       :1;
    
    //INT8U TPMS_BatLow       :1;
    INT8U TPMS_BatLow_LF       :1;
    INT8U TPMS_BatLow_LR       :1;
    INT8U TPMS_BatLow_LIR       :1;
    INT8U TPMS_BatLow_RF       :1;
    INT8U TPMS_BatLow_RR       :1;
    INT8U TPMS_BatLow_RIR       :1;

}_Popup_OnFlag_Struct;

extern _Popup_OnFlag_Struct Popup_OnFlag ;






void Popups_DoorOpen(void);
void Popups_Polling (void);
void Popups_IG_On_Init(void);
void Popups_Sound_Playing ( void );

#endif