Rev 1384 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1384 | Rev 1910 | ||
|---|---|---|---|
| Line 277... | Line 277... | ||
| 277 | txMsg.Header.ModuleType = CAN_MODULE_TYPE_SNS_ROTARY; ///TODO: Change this to the actual module type |
277 | txMsg.Header.ModuleType = CAN_MODULE_TYPE_SNS_ROTARY; ///TODO: Change this to the actual module type |
| 278 | txMsg.Header.ModuleId = sns_rotary_ID; |
278 | txMsg.Header.ModuleId = sns_rotary_ID; |
| 279 | txMsg.Header.Command = CAN_MODULE_CMD_GLOBAL_LIST; |
279 | txMsg.Header.Command = CAN_MODULE_CMD_GLOBAL_LIST; |
| 280 | txMsg.Length = 6; |
280 | txMsg.Length = 6; |
| 281 | 281 | ||
| - | 282 | uint32_t HwId=BIOS_GetHwId(); |
|
| 282 | txMsg.Data[0] = |
283 | txMsg.Data[0] = HwId&0xff; |
| 283 | txMsg.Data[1] = |
284 | txMsg.Data[1] = (HwId>>8)&0xff; |
| 284 | txMsg.Data[2] = |
285 | txMsg.Data[2] = (HwId>>16)&0xff; |
| 285 | txMsg.Data[3] = |
286 | txMsg.Data[3] = (HwId>>24)&0xff; |
| 286 | 287 | ||
| 287 | txMsg.Data[4] = NUMBER_OF_MODULES; |
288 | txMsg.Data[4] = NUMBER_OF_MODULES; |
| 288 | txMsg.Data[5] = ModuleSequenceNumber; |
289 | txMsg.Data[5] = ModuleSequenceNumber; |
| 289 | 290 | ||
| 290 | while (StdCan_Put(&txMsg) != StdCan_Ret_OK); |
291 | while (StdCan_Put(&txMsg) != StdCan_Ret_OK); |