Telltales_user.h 3.19 KB
Newer Older
时昊's avatar
时昊 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#ifndef TELLTALES_USER_H
#define TELLTALES_USER_H

//#include "TYW_stdint.h"
#include "g_includes.h"

typedef enum
{
    m_LED_Fule_Lamp,
    m_LED_TPMS_Lamp,                  
    m_LED_Urea_Lamp,                  
    m_LED_EDC_WaterInFuelInd1_Lamp,  
    m_LED_AIRBAG_Lamp,                
    m_LED_HandBrake_Lamp,             
    m_LED_Diesel_Heating_Lamp,        
    m_LED_TBOX_Lamp,        
    m_LED_EBD_Lamp,                   
    m_LED_EDC_MaxVehSpeedLimSetp_Lamp,
    m_LED_EOBD_Lamp,
    m_LED_Water_High_Lamp,                    
    m_LED_Brake_Lamp,                 
    m_LED_DPF_Lamp,                   
23
    m_LED_ESC_Lamp,                   
时昊's avatar
时昊 committed
24 25 26 27 28 29 30 31 32 33 34 35 36 37
    m_LED_EDC_Lamp,                   
    m_LED_Cruise_Lamp,              
    m_LED_ABS_Lamp,                   
    m_LED_DoorOpen_Lamp,          
    m_LED_EngWaitToStart_Lamp,        
    m_LED_EDC_EngOilPrsLow_Lamp,      
    m_LED_Ffog_Lamp,                  
    m_LED_TurnLeft_Lamp,              
    m_LED_Gearbox_Lamp,               
    m_LED_Gearbox_Serious_Lamp,        
    m_LED_High_Lamp,                  
    m_LED_Park_Lamp,                  
    m_LED_Safety_Belt_Lamp,           
    m_LED_TurnRight_Lamp,             
时昊's avatar
时昊 committed
38 39 40
    m_LED_Rfog_Lamp,    
    m_LED_LDWS_Lamp,  
                
时昊's avatar
时昊 committed
41 42 43 44
    LED_Max,
} LED_Idx_t;

typedef enum {
时昊's avatar
时昊 committed
45
    LED_LDWS_G = 0,                          
时昊's avatar
时昊 committed
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
    LED_Fule_Lamp,                         
    LED_LED3,                         
    LED_LED4,                                           
    LED_TPMS_Lamp,  

    LED_Urea_Lamp,                  
    LED_EDC_WaterInFuelInd1_Lamp,  
    LED_AIRBAG_Lamp,                
    LED_HandBrake_Lamp,             
    LED_Diesel_Heating_Lamp,  

    LED_TBOX_Lamp,       
    LED_LED5,                        
    LED_EBD_Lamp,                   
    LED_EDC_MaxVehSpeedLimSetp_Lamp,
    LED_EOBD_Lamp,     

    LED_Water_High_Lamp,               
    LED_Brake_Lamp,                 
    LED_DPF_Lamp,                   
66
    LED_ESC_Lamp,                   
时昊's avatar
时昊 committed
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
    LED_EDC_Lamp,  

    LED_Cruise_Lamp,              
    LED_ABS_Lamp,                   
    LED_DoorOpen_Lamp,          
    LED_EngWaitToStart_Lamp,        
    LED_EDC_EngOilPrsLow_Lamp,      

    LED_Ffog_Lamp,                  
    LED_TurnLeft_Lamp,              
    LED_Gearbox_Lamp,               
    LED_Gearbox_Serious_Lamp,        
    LED_High_Lamp,     

    LED_Park_Lamp,                  
    LED_Safety_Belt_Lamp,           
    LED_TurnRight_Lamp,             
    LED_Rfog_Lamp,                  
    LED_LED7,                  

时昊's avatar
时昊 committed
87
    LED_LDWS_Y,  
时昊's avatar
时昊 committed
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
    LED_NumMax,
}LED_Attr_en_t;

typedef struct 
{
    INT8U chip;
    INT8U channel;
    INT8U brightness;
}LED_Attr_st_t;

#define POWERON_SCAN_TIMER   3000ul

#define LED_TEL_OFF (Tellib_uint16_t)(0x00u)
#define LED_TEL1_ON  (Tellib_uint16_t)(0x01u)
#define LED_TEL2_ON  (Tellib_uint16_t)(0x02u)
#define LED_TEL3_ON  (Tellib_uint16_t)(0x03u)

void Telltales_Init(void); 
void TurnLeft_Lamp(void);
void TurnRight_Lamp(void);
INT16U Get_LowFuelWarningSts(void);

//void Telltales_Left_Right_Management_Service(void) ;
//uint8_t  GET_FATIGUE_DRIVE_GET(void);
//void SET_Fatigue_Timekeeping(void);
//uint8_t GET_AIR_POS_STATUS(void);
//void LED_PowerTimer_Service(void);

#endif