Rev 1809 | Rev 2016 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1809 | Rev 1910 | ||
|---|---|---|---|
| Line 628... | Line 628... | ||
| 628 | txMsg.Header.ModuleType = CAN_MODULE_TYPE_ACT_KS0108; |
628 | txMsg.Header.ModuleType = CAN_MODULE_TYPE_ACT_KS0108; |
| 629 | txMsg.Header.ModuleId = act_ks0108_ID; |
629 | txMsg.Header.ModuleId = act_ks0108_ID; |
| 630 | txMsg.Header.Command = CAN_MODULE_CMD_GLOBAL_LIST; |
630 | txMsg.Header.Command = CAN_MODULE_CMD_GLOBAL_LIST; |
| 631 | txMsg.Length = 6; |
631 | txMsg.Length = 6; |
| 632 | 632 | ||
| - | 633 | uint32_t HwId=BIOS_GetHwId(); |
|
| 633 | txMsg.Data[0] = |
634 | txMsg.Data[0] = HwId&0xff; |
| 634 | txMsg.Data[1] = |
635 | txMsg.Data[1] = (HwId>>8)&0xff; |
| 635 | txMsg.Data[2] = |
636 | txMsg.Data[2] = (HwId>>16)&0xff; |
| 636 | txMsg.Data[3] = |
637 | txMsg.Data[3] = (HwId>>24)&0xff; |
| 637 | 638 | ||
| 638 | txMsg.Data[4] = NUMBER_OF_MODULES; |
639 | txMsg.Data[4] = NUMBER_OF_MODULES; |
| 639 | txMsg.Data[5] = ModuleSequenceNumber; |
640 | txMsg.Data[5] = ModuleSequenceNumber; |
| 640 | 641 | ||
| 641 | while (StdCan_Put(&txMsg) != StdCan_Ret_OK); |
642 | while (StdCan_Put(&txMsg) != StdCan_Ret_OK); |