📄 lin_msgidsa.h
字号:
#ifndef __LIN_MSGIDS_H__
#define __LIN_MSGIDS_H__
#ifdef LIN_MSGIDS_GLOBALS
#define LIN_MSGIDS_EXT
#else
#define LIN_MSGIDS_EXT extern
#endif
#define LIN_MSG_IGNORE 0
#define LIN_MSG_SEND 0x40
#define LIN_MSG_RECEIVE 0x80
/* Message state */
/* The message data buffer is empty (data has not been initialized or reseived yet) */
#define LIN_MSG_NODATA 0x01u
/* The message data buffer has been updated by the user */
#define LIN_MSG_UPDATED 0x20u
#define LIN_FRAME_MAX_ID 0x3F
#define LIN_MSG_NOT_IGNORED (LIN_MSG_RECEIVE | LIN_MSG_SEND )
#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
#define LIN_NODE_SEL LIN_NODE_FL/*Here is Node Selection Definition, Put your NAD Here*/
#if LIN_NODE_SEL == LIN_NODE_FR
/*Message Send/Receive Definition*/
#define LIN_MSG_10 LIN_MSG_RECEIVE
#define LIN_MSG_11 LIN_MSG_RECEIVE
#define LIN_MSG_15 LIN_MSG_SEND
#define LIN_MSG_17 LIN_MSG_RECEIVE
#define LIN_MSG_1B LIN_MSG_RECEIVE
/* Message Length Definition */
#define LIN_MSG_10_LEN 2
#define LIN_MSG_11_LEN 4
#define LIN_MSG_15_LEN 5
#define LIN_MSG_17_LEN 2
#define LIN_MSG_1B_LEN 1
#endif/*#if LIN_NODE_SEL == LIN_NODE_FR*/
#if LIN_NODE_SEL == LIN_NODE_FL
/*Message Send/Receive Definition*/
#define LIN_MSG_10 LIN_MSG_RECEIVE
#define LIN_MSG_11 LIN_MSG_RECEIVE
#define LIN_MSG_16 LIN_MSG_SEND
#define LIN_MSG_17 LIN_MSG_RECEIVE
#define LIN_MSG_1B LIN_MSG_RECEIVE
/* Message Length Definition */
#define LIN_MSG_10_LEN 2
#define LIN_MSG_11_LEN 4
#define LIN_MSG_16_LEN 5
#define LIN_MSG_17_LEN 2
#define LIN_MSG_1B_LEN 1
#endif/*#if LIN_NODE_SEL == LIN_NODE_FL*/
#if LIN_NODE_SEL == LIN_NODE_RR
/*Message Send/Receive Definition*/
#define LIN_MSG_10 LIN_MSG_RECEIVE
#define LIN_MSG_11 LIN_MSG_RECEIVE
#define LIN_MSG_17 LIN_MSG_RECEIVE
#define LIN_MSG_1B LIN_MSG_RECEIVE
#define LIN_MSG_1C LIN_MSG_SEND
/* Message Length Definition */
#define LIN_MSG_10_LEN 2
#define LIN_MSG_11_LEN 4
#define LIN_MSG_17_LEN 2
#define LIN_MSG_1B_LEN 1
#define LIN_MSG_1C_LEN 4
#endif/*#if LIN_NODE_SEL == LIN_NODE_RR*/
#if LIN_NODE_SEL == LIN_NODE_DR
/*Message Send/Receive Definition*/
#define LIN_MSG_10 LIN_MSG_RECEIVE
#define LIN_MSG_11 LIN_MSG_RECEIVE
#define LIN_MSG_12 LIN_MSG_RECEIVE
#define LIN_MSG_13 LIN_MSG_SEND
#define LIN_MSG_1B LIN_MSG_RECEIVE
/* Message Length Definition */
#define LIN_MSG_10_LEN 2
#define LIN_MSG_11_LEN 4
#define LIN_MSG_12_LEN 3
#define LIN_MSG_13_LEN 2
#define LIN_MSG_1B_LEN 1
#endif/*#if LIN_NODE_SEL == LIN_NODE_DR*/
#if LIN_NODE_SEL == LIN_NODE_DL
/*Message Send/Receive Definition*/
#define LIN_MSG_10 LIN_MSG_RECEIVE
#define LIN_MSG_11 LIN_MSG_RECEIVE
#define LIN_MSG_12 LIN_MSG_SEND
#define LIN_MSG_1B LIN_MSG_RECEIVE
/* Message Length Definition */
#define LIN_MSG_10_LEN 2
#define LIN_MSG_11_LEN 4
#define LIN_MSG_12_LEN 3
#define LIN_MSG_1B_LEN 1
#endif/*#if LIN_NODE_SEL == LIN_NODE_DL*/
#if LIN_NODE_SEL == LIN_NODE_CH
/*Message Send/Receive Definition*/
#define LIN_MSG_10 LIN_MSG_RECEIVE
#define LIN_MSG_14 LIN_MSG_SEND
#define LIN_MSG_18 LIN_MSG_RECEIVE
#define LIN_MSG_1B LIN_MSG_RECEIVE
/* Message Length Definition */
#define LIN_MSG_10_LEN 2
#define LIN_MSG_14_LEN 4
#define LIN_MSG_18_LEN 4
#define LIN_MSG_1B_LEN 1
#endif/*#if LIN_NODE_SEL == LIN_NODE_CH*/
#if LIN_NODE_SEL == LIN_NODE_MR
/*Message Send/Receive Definition*/
#define LIN_MSG_11 LIN_MSG_RECEIVE
#define LIN_MSG_1A LIN_MSG_SEND
/* Message Length Definition */
#define LIN_MSG_11_LEN 4
#define LIN_MSG_1A_LEN 2
#endif/*#if LIN_NODE_SEL == LIN_NODE_MR*/
#if LIN_NODE_SEL == LIN_NODE_ML
/*Message Send/Receive Definition*/
#define LIN_MSG_11 LIN_MSG_RECEIVE
#define LIN_MSG_19 LIN_MSG_SEND
/* Message Length Definition */
#define LIN_MSG_11_LEN 4
#define LIN_MSG_19_LEN 2
#endif/*#if LIN_NODE_SEL == LIN_NODE_ML*/
#if LIN_NODE_SEL == LIN_NODE_SW_C
/*Message Send/Receive Definition*/
#define LIN_MSG_10 LIN_MSG_SEND
/* Message Length Definition */
#define LIN_MSG_10_LEN 2
#endif/*#if LIN_NODE_SEL == LIN_NODE_SW_C*/
#if LIN_NODE_SEL == LIN_NODE_SW_D
/*Message Send/Receive Definition*/
#define LIN_MSG_11 LIN_MSG_SEND
#define LIN_MSG_18 LIN_MSG_SEND
/* Message Length Definition */
#define LIN_MSG_11_LEN 4
#define LIN_MSG_18_LEN 4
#endif/*#if LIN_NODE_SEL == LIN_NODE_SW_D*/
#if LIN_NODE_SEL == LIN_NODE_BECU
/*Message Send/Receive Definition*/
#define LIN_MSG_10 LIN_MSG_RECEIVE
#define LIN_MSG_11 LIN_MSG_RECEIVE
#define LIN_MSG_12 LIN_MSG_RECEIVE
#define LIN_MSG_13 LIN_MSG_RECEIVE
#define LIN_MSG_14 LIN_MSG_RECEIVE
#define LIN_MSG_15 LIN_MSG_RECEIVE
#define LIN_MSG_16 LIN_MSG_RECEIVE
#define LIN_MSG_17 LIN_MSG_SEND
#define LIN_MSG_18 LIN_MSG_RECEIVE
#define LIN_MSG_19 LIN_MSG_RECEIVE
#define LIN_MSG_1A LIN_MSG_RECEIVE
#define LIN_MSG_1B LIN_MSG_SEND
#define LIN_MSG_1C LIN_MSG_RECEIVE
/* Message Length Definition */
#define LIN_MSG_10_LEN 2
#define LIN_MSG_11_LEN 4
#define LIN_MSG_12_LEN 3
#define LIN_MSG_13_LEN 2
#define LIN_MSG_14_LEN 4
#define LIN_MSG_15_LEN 5
#define LIN_MSG_16_LEN 5
#define LIN_MSG_17_LEN 2
#define LIN_MSG_18_LEN 4
#define LIN_MSG_19_LEN 2
#define LIN_MSG_1A_LEN 2
#define LIN_MSG_1B_LEN 1
#define LIN_MSG_1C_LEN 4
#endif/*#if LIN_NODE_SEL == LIN_NODE_BECU*/
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -