Rev 1521 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1521 | Rev 1530 | ||
|---|---|---|---|
| Line 94... | Line 94... | ||
| 94 | StdCan_Msg_t txMsg; |
94 | StdCan_Msg_t txMsg; |
| 95 | StdCan_Set_class(txMsg.Header, CAN_MODULE_CLASS_SNS); |
95 | StdCan_Set_class(txMsg.Header, CAN_MODULE_CLASS_SNS); |
| 96 | StdCan_Set_direction(txMsg.Header, DIRECTIONFLAG_FROM_OWNER); |
96 | StdCan_Set_direction(txMsg.Header, DIRECTIONFLAG_FROM_OWNER); |
| 97 | txMsg.Header.ModuleType = CAN_MODULE_TYPE_SNS_IDENTIFICATION; |
97 | txMsg.Header.ModuleType = CAN_MODULE_TYPE_SNS_IDENTIFICATION; |
| 98 | txMsg.Header.ModuleId = sns_identification_ID; |
98 | txMsg.Header.ModuleId = sns_identification_ID; |
| 99 | txMsg.Header.Command = |
99 | txMsg.Header.Command = CAN_MODULE_CMD_IDENTIFICATION_ID; |
| 100 | txMsg.Length = 4; |
100 | txMsg.Length = 4; |
| 101 | txMsg.Data[0] = NODE_HW_ID_BYTE0; |
101 | txMsg.Data[0] = NODE_HW_ID_BYTE0; |
| 102 | txMsg.Data[1] = NODE_HW_ID_BYTE1; |
102 | txMsg.Data[1] = NODE_HW_ID_BYTE1; |
| 103 | txMsg.Data[2] = NODE_HW_ID_BYTE2; |
103 | txMsg.Data[2] = NODE_HW_ID_BYTE2; |
| 104 | txMsg.Data[3] = NODE_HW_ID_BYTE3; |
104 | txMsg.Data[3] = NODE_HW_ID_BYTE3; |