Rev 1396 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1396 | Rev 1910 | ||
|---|---|---|---|
| Line 361... | Line 361... | ||
| 361 | txMsg.Header.ModuleType = CAN_MODULE_TYPE_ACT_PID; ///TODO: Change this to the actual module type |
361 | txMsg.Header.ModuleType = CAN_MODULE_TYPE_ACT_PID; ///TODO: Change this to the actual module type |
| 362 | txMsg.Header.ModuleId = act_PID_ID; |
362 | txMsg.Header.ModuleId = act_PID_ID; |
| 363 | txMsg.Header.Command = CAN_MODULE_CMD_GLOBAL_LIST; |
363 | txMsg.Header.Command = CAN_MODULE_CMD_GLOBAL_LIST; |
| 364 | txMsg.Length = 6; |
364 | txMsg.Length = 6; |
| 365 | 365 | ||
| - | 366 | uint32_t HwId=BIOS_GetHwId(); |
|
| 366 | txMsg.Data[0] = |
367 | txMsg.Data[0] = HwId&0xff; |
| 367 | txMsg.Data[1] = |
368 | txMsg.Data[1] = (HwId>>8)&0xff; |
| 368 | txMsg.Data[2] = |
369 | txMsg.Data[2] = (HwId>>16)&0xff; |
| 369 | txMsg.Data[3] = |
370 | txMsg.Data[3] = (HwId>>24)&0xff; |
| 370 | 371 | ||
| 371 | txMsg.Data[4] = NUMBER_OF_MODULES; |
372 | txMsg.Data[4] = NUMBER_OF_MODULES; |
| 372 | txMsg.Data[5] = ModuleSequenceNumber; |
373 | txMsg.Data[5] = ModuleSequenceNumber; |
| 373 | 374 | ||
| 374 | while (StdCan_Put(&txMsg) != StdCan_Ret_OK); |
375 | while (StdCan_Put(&txMsg) != StdCan_Ret_OK); |