Rev 1439 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1439 | Rev 1910 | ||
|---|---|---|---|
| Line 569... | Line 569... | ||
| 569 | txMsg.Header.ModuleType = CAN_MODULE_TYPE_ACT_RGBW; ///TODO: Change this to the actual module type |
569 | txMsg.Header.ModuleType = CAN_MODULE_TYPE_ACT_RGBW; ///TODO: Change this to the actual module type |
| 570 | txMsg.Header.ModuleId = act_RGBW_ID; |
570 | txMsg.Header.ModuleId = act_RGBW_ID; |
| 571 | txMsg.Header.Command = CAN_MODULE_CMD_GLOBAL_LIST; |
571 | txMsg.Header.Command = CAN_MODULE_CMD_GLOBAL_LIST; |
| 572 | txMsg.Length = 6; |
572 | txMsg.Length = 6; |
| 573 | 573 | ||
| - | 574 | uint32_t HwId=BIOS_GetHwId(); |
|
| 574 | txMsg.Data[0] = |
575 | txMsg.Data[0] = HwId&0xff; |
| 575 | txMsg.Data[1] = |
576 | txMsg.Data[1] = (HwId>>8)&0xff; |
| 576 | txMsg.Data[2] = |
577 | txMsg.Data[2] = (HwId>>16)&0xff; |
| 577 | txMsg.Data[3] = |
578 | txMsg.Data[3] = (HwId>>24)&0xff; |
| 578 | 579 | ||
| 579 | txMsg.Data[4] = NUMBER_OF_MODULES; |
580 | txMsg.Data[4] = NUMBER_OF_MODULES; |
| 580 | txMsg.Data[5] = ModuleSequenceNumber; |
581 | txMsg.Data[5] = ModuleSequenceNumber; |
| 581 | 582 | ||
| 582 | while (StdCan_Put(&txMsg) != StdCan_Ret_OK); |
583 | while (StdCan_Put(&txMsg) != StdCan_Ret_OK); |