⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lin_signalsa.h

📁 此程序为DP256的SPI实验程序,已经通过实验证明
💻 H
📖 第 1 页 / 共 5 页
字号:

#ifndef __LIN_SIGNAL_H__
#define __LIN_SIGNAL_H__

#ifdef LIN_SIGNAL_GLOBALS
    #define LIN_SIGNAL_EXT
#else
    #define LIN_SIGNAL_EXT extern
#endif


#define LIN_NODE_FR        0x10
#define LIN_NODE_FL        0x11
#define LIN_NODE_RR        0x12
#define LIN_NODE_BECU        0x13
#define LIN_NODE_DL        0x14
#define LIN_NODE_DR        0x15
#define LIN_NODE_CH        0x16
#define LIN_NODE_MR        0x17
#define LIN_NODE_ML        0x18
#define LIN_NODE_SW_C        0x19
#define LIN_NODE_SW_D        0x1a

#ifndef	LIN_NODE_SEL		
//#define LIN_NODE_MODE      LIN_NODE_CH/*Here is Node Selection Definition, Put your NAD Here*/
//#define  LIN_NODE_SEL      LIN_NODE_CH/*Here is Node Selection Definition, Put your NAD Here*/
//#define LIN_NODE_SEL      LIN_NODE_SW_D/*Here is Node Selection Definition, Put your NAD Here*/
#define LIN_NODE_SEL      LIN_NODE_SW_C/*Here is Node Selection Definition, Put your NAD Here*/
//#define LIN_NODE_SEL      LIN_NODE_BECU/*Here is Node Selection Definition, Put your NAD Here*/
//#define LIN_NODE_SEL      LIN_NODE_RR/*Here is Node Selection Definition, Put your NAD Here*/
//#define LIN_NODE_SEL      LIN_NODE_FR/*Here is Node Selection Definition, Put your NAD Here*/
//#define LIN_NODE_SEL      LIN_NODE_FL/*Here is Node Selection Definition, Put your NAD Here*/
//#define LIN_NODE_SEL      LIN_NODE_MR/*Here is Node Selection Definition, Put your NAD Here*/
//#define LIN_NODE_SEL      LIN_NODE_ML/*Here is Node Selection Definition, Put your NAD Here*/
//#define LIN_NODE_SEL      LIN_NODE_DR/*Here is Node Selection Definition, Put your NAD Here*/
//#define LIN_NODE_SEL      LIN_NODE_DL/*Here is Node Selection Definition, Put your NAD Here*/
#endif



//#if LIN_NODE_SEL   ==  LIN_NODE_FR constant definitions.
#if LIN_NODE_SEL   ==  LIN_NODE_FR
#define    SIGNAL_CMD_BRUSH_EN                    1     //0
#define    SIGNAL_CMD_WASH_EN                     0     //1
#define    SIGNAL_SW_TURNLEFT_EN                  0     //2
#define    SIGNAL_SW_TURNRIGHT_EN                 0     //3
#define    SIGNAL_CMD_HEADLIGHT_EN                1     //4
#define    SIGNAL_CMD_DIPPEDHEADLIGHT_EN          1     //5
#define    SIGNAL_CMD_LITTLELAMP_EN               1     //6
#define    SIGNAL_SW_C_RESPONSE_ERROR_EN          0     //7
#define    SIGNAL_CMD_WARMFAN_EN                  0     //8
#define    SIGNAL_SM_RESPONSE_ERROR_EN            0     //9
#define    SIGNAL_CMD_MIRROR_SEL_EN               0     //10
#define    SIGNAL_CMD_MIRROR_UP_EN                0     //11
#define    SIGNAL_CMD_MIRROR_DOWN_EN              0     //12
#define    SIGNAL_CMD_MIRROR_LEFT_EN              0     //13
#define    SIGNAL_CMD_MIRROR_RIGHT_EN             0     //14
#define    SIGNAL_CMD_MIRROR_HEAT_EN              0     //15
#define    SIGNAL_CMD_MIRROR_FOLD_EN              0     //16
#define    SIGNAL_CMD_FRONTLAMP_EN                1     //17
#define    SIGNAL_CMD_REARLAMP_EN                 0     //18
#define    SIGNAL_SW_ALARM_EN                     0     //19
#define    SIGNAL_CMD_STOPALARM_EN                0     //20
#define    SIGNAL_CMD_DRIER_EN                    0     //21
#define    SIGNAL_STATE_MR_UDMOTOR_EN             0     //22
#define    SIGNAL_STATE_MR_LRMOTOR_EN             0     //23
#define    SIGNAL_STATE_MR_FOLDMOTOR_EN           0     //24
#define    SIGNAL_STATE_MR_HEATER_EN              0     //25
#define    SIGNAL_MR_RESPONSE_ERROR_EN            0     //26
#define    SIGNAL_STATE_ML_UDMOTOR_EN             0     //27
#define    SIGNAL_STATE_ML_LRMOTOR_EN             0     //28
#define    SIGNAL_STATE_ML_FOLDMOTOR_EN           0     //29
#define    SIGNAL_STATE_MLHEATER_EN               0     //30
#define    SIGNAL_ML_RESPONSE_ERROR_EN            0     //31
#define    SIGNAL_CMD_WR_UP_EN                    0     //32
#define    SIGNAL_CMD_WR_DOWN_EN                  0     //33
#define    SIGNAL_CMD_DR_LOCK_EN                  0     //34
#define    SIGNAL_STATE_SW_DLWR_UP_EN             0     //35
#define    SIGNAL_STATE_SW_DLWR_DOWN_EN           0     //36
#define    SIGNAL_STATE_SW_WL_UP_EN               0     //37
#define    SIGNAL_STATE_SW_WL_DOWN_EN             0     //38
#define    SIGNAL_STATE_WL_MOTOR_EN               0     //39
#define    SIGNAL_STATE_DL_LAMP_EN                0     //40
#define    SIGNAL_STATE_DL_TURNLAMP_EN            0     //41
#define    SIGNAL_STATE_DL_POSLAMP_EN             0     //42
#define    SIGNAL_DL_RESPONSE_ERROR_EN            0     //43
#define    SIGNAL_STATE_SW_WR_UP_EN               0     //44
#define    SIGNAL_STATE_SW_WR_DOWN_EN             0     //45
#define    SIGNAL_STATE_WR_MOTOR_EN               0     //46
#define    SIGNAL_STATE_DR_LAMP_EN                0     //47
#define    SIGNAL_STATE_DR_TURNLAMP_EN            0     //48
#define    SIGNAL_STATE_DR_POSLAMP_EN             0     //49
#define    SIGNAL_DR_RESPONSE_ERROR_EN            0     //50
#define    SIGNAL_STATE_HL_TURNLAMP_EN            0     //51
#define    SIGNAL_STATE_HR_TURNLAMP_EN            0     //52
#define    SIGNAL_STATE_SPEEDLAMPL_EN             0     //53
#define    SIGNAL_STATE_SPEEDLAMPM_EN             0     //54
#define    SIGNAL_STATE_SPEEDLAMPR_EN             0     //55
#define    SIGNAL_STATE_HR_POSLAMP_EN             0     //56
#define    SIGNAL_STATE_HL_POSLAMP_EN             0     //57
#define    SIGNAL_STATE_HR_BRAKELAMP_EN           0     //58
#define    SIGNAL_STATE_HL_BRAKELAMP_EN           0     //59
#define    SIGNAL_STATE_READINGLAMPR_EN           0     //60
#define    SIGNAL_STATE_READINGLAMPL_EN           0     //61
#define    SIGNAL_STATE_CABLIGHTING_EN            0     //62
#define    SIGNAL_STATE_SLEEPLIGHTL_EN            0     //63
#define    SIGNAL_STATE_SLEEPLIGHTR_EN            0     //64
#define    SIGNAL_HEAD_RESPONSE_ERROR_EN          0     //65
#define    SIGNAL_STATE_FR_TURNLAMP_EN            1     //66
#define    SIGNAL_CMD_FRSW_AF_EN                  1     //67
#define    SIGNAL_STATE_FR_FOGLAMP_EN             1     //68
#define    SIGNAL_STATE_FR_HEADLIGHT_EN           1     //69
#define    SIGNAL_STATE_FR_DIPPEDHEADLIGHT_EN     1     //70
#define    SIGNAL_STATE_FR_LITTLELAMP_EN          1     //71
#define    SIGNAL_STATE_AC_CLUTCH_EN              1     //72
#define    SIGNAL_STATE_COOLINGFAN_EN             1     //73
#define    SIGNAL_CMD_FR_SW_RESERVED1_EN          1     //74
#define    SIGNAL_STATE_FR_RESERVED1_EN           1     //75
#define    SIGNAL_STATE_FR_RESERVED2_EN           1     //76
#define    SIGNAL_FR_RESPONSE_ERROR_EN            1     //77
#define    SIGNAL_AN_FR_RESERVED1_EN              1     //78
#define    SIGNAL_STATE_FL_TURNLAMP_EN            0     //79
#define    SIGNAL_CMD_FLSW_AF_EN                  0     //80
#define    SIGNAL_STATE_FL_FOGLAMP_EN             0     //81
#define    SIGNAL_STATE_FL_HEADLIGHT_EN           0     //82
#define    SIGNAL_STATE_FL_DIPPEDHEADLIGHT_EN     0     //83
#define    SIGNAL_STATE_FL_LITTLELAMP_EN          0     //84
#define    SIGNAL_STATE_STARTER_EN                0     //85
#define    SIGNAL_CMD_FLSW_RESERVED1_EN           0     //86
#define    SIGNAL_STATE_FL_RESERVED1_EN           0     //87
#define    SIGNAL_STATE_FL_RESERVED2_EN           0     //88
#define    SIGNAL_FL_RESPONSE_ERROR_EN            0     //89
#define    SIGNAL_AN_FL_RESERVED1_EN              0     //90
#define    SIGNAL_STATE_RL_TURNLAMP_EN            0     //91
#define    SIGNAL_STATE_RL_FOGLAMP_EN             0     //92
#define    SIGNAL_STATE_RL_BACKLAMP_EN            0     //93
#define    SIGNAL_STATE_RL_BRAKELAMP_EN           0     //94
#define    SIGNAL_STATE_RL_LITTLELAMP_EN          0     //95
#define    SIGNAL_STATE_RR_TURNLAMP_EN            0     //96
#define    SIGNAL_STATE_RR_FOGLAMP_EN             0     //97
#define    SIGNAL_STATE_RR_BACKLAMP_EN            0     //98
#define    SIGNAL_STATE_RR_BRAKELAMP_EN           0     //99
#define    SIGNAL_STATE_RR_LITTLELAMP_EN          0     //100
#define    SIGNAL_STATE_R_RESERVED1_EN            0     //101
#define    SIGNAL_STATE_R_RESERVED2_EN            0     //102
#define    SIGNAL_CMD_RSW_RESERVED1_EN            0     //103
#define    SIGNAL_CMD_RSW_RESERVED2_EN            0     //104
#define    SIGNAL_R_RESPONSE_ERROR_EN             0     //105
#define    SIGNAL_CMD_SW_AC_EN                    1     //106
#define    SIGNAL_CMD_SW_BACK_EN                  0     //107
#define    SIGNAL_CMD_SW_BRAKE_EN                 0     //108
#define    SIGNAL_CMD_KEYPOS_EN                   1     //109
#define    SIGNAL_CMD_TURNLEFT_EN                 0     //110
#define    SIGNAL_CMD_TURNRIGHT_EN                1     //111
#define    SIGNAL_AN_VSPEED_EN                    0     //112
#define    SIGNAL_AN_AIRPRESSURE_EN               0     //113
#endif//#if LIN_NODE_SEL   ==  LIN_NODE_FR
//Total Number of this node signals is 21


//#if LIN_NODE_SEL   ==  LIN_NODE_FL constant definitions.
#if LIN_NODE_SEL   ==  LIN_NODE_FL
#define    SIGNAL_CMD_BRUSH_EN                    1     //0
#define    SIGNAL_CMD_WASH_EN                     0     //1
#define    SIGNAL_SW_TURNLEFT_EN                  0     //2
#define    SIGNAL_SW_TURNRIGHT_EN                 0     //3
#define    SIGNAL_CMD_HEADLIGHT_EN                1     //4
#define    SIGNAL_CMD_DIPPEDHEADLIGHT_EN          1     //5
#define    SIGNAL_CMD_LITTLELAMP_EN               1     //6
#define    SIGNAL_SW_C_RESPONSE_ERROR_EN          0     //7
#define    SIGNAL_CMD_WARMFAN_EN                  0     //8
#define    SIGNAL_SM_RESPONSE_ERROR_EN            0     //9
#define    SIGNAL_CMD_MIRROR_SEL_EN               0     //10
#define    SIGNAL_CMD_MIRROR_UP_EN                0     //11
#define    SIGNAL_CMD_MIRROR_DOWN_EN              0     //12
#define    SIGNAL_CMD_MIRROR_LEFT_EN              0     //13
#define    SIGNAL_CMD_MIRROR_RIGHT_EN             0     //14
#define    SIGNAL_CMD_MIRROR_HEAT_EN              0     //15
#define    SIGNAL_CMD_MIRROR_FOLD_EN              0     //16
#define    SIGNAL_CMD_FRONTLAMP_EN                1     //17
#define    SIGNAL_CMD_REARLAMP_EN                 0     //18
#define    SIGNAL_SW_ALARM_EN                     0     //19
#define    SIGNAL_CMD_STOPALARM_EN                0     //20
#define    SIGNAL_CMD_DRIER_EN                    0     //21
#define    SIGNAL_STATE_MR_UDMOTOR_EN             0     //22
#define    SIGNAL_STATE_MR_LRMOTOR_EN             0     //23
#define    SIGNAL_STATE_MR_FOLDMOTOR_EN           0     //24
#define    SIGNAL_STATE_MR_HEATER_EN              0     //25
#define    SIGNAL_MR_RESPONSE_ERROR_EN            0     //26
#define    SIGNAL_STATE_ML_UDMOTOR_EN             0     //27
#define    SIGNAL_STATE_ML_LRMOTOR_EN             0     //28
#define    SIGNAL_STATE_ML_FOLDMOTOR_EN           0     //29
#define    SIGNAL_STATE_MLHEATER_EN               0     //30
#define    SIGNAL_ML_RESPONSE_ERROR_EN            0     //31
#define    SIGNAL_CMD_WR_UP_EN                    0     //32
#define    SIGNAL_CMD_WR_DOWN_EN                  0     //33
#define    SIGNAL_CMD_DR_LOCK_EN                  0     //34
#define    SIGNAL_STATE_SW_DLWR_UP_EN             0     //35
#define    SIGNAL_STATE_SW_DLWR_DOWN_EN           0     //36
#define    SIGNAL_STATE_SW_WL_UP_EN               0     //37
#define    SIGNAL_STATE_SW_WL_DOWN_EN             0     //38
#define    SIGNAL_STATE_WL_MOTOR_EN               0     //39
#define    SIGNAL_STATE_DL_LAMP_EN                0     //40
#define    SIGNAL_STATE_DL_TURNLAMP_EN            0     //41
#define    SIGNAL_STATE_DL_POSLAMP_EN             0     //42
#define    SIGNAL_DL_RESPONSE_ERROR_EN            0     //43
#define    SIGNAL_STATE_SW_WR_UP_EN               0     //44
#define    SIGNAL_STATE_SW_WR_DOWN_EN             0     //45
#define    SIGNAL_STATE_WR_MOTOR_EN               0     //46
#define    SIGNAL_STATE_DR_LAMP_EN                0     //47
#define    SIGNAL_STATE_DR_TURNLAMP_EN            0     //48
#define    SIGNAL_STATE_DR_POSLAMP_EN             0     //49
#define    SIGNAL_DR_RESPONSE_ERROR_EN            0     //50
#define    SIGNAL_STATE_HL_TURNLAMP_EN            0     //51
#define    SIGNAL_STATE_HR_TURNLAMP_EN            0     //52
#define    SIGNAL_STATE_SPEEDLAMPL_EN             0     //53
#define    SIGNAL_STATE_SPEEDLAMPM_EN             0     //54
#define    SIGNAL_STATE_SPEEDLAMPR_EN             0     //55
#define    SIGNAL_STATE_HR_POSLAMP_EN             0     //56

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -