Subversion Repositories HomeAutomation

Rev

Rev 1557 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1557 Rev 1910
Line 69... Line 69...
69
    txMsg.Header.ModuleType = CAN_MODULE_TYPE_xyz; ///TODO: Change this to the actual module type
69
    txMsg.Header.ModuleType = CAN_MODULE_TYPE_xyz; ///TODO: Change this to the actual module type
70
    txMsg.Header.ModuleId = <template>_ID;
70
    txMsg.Header.ModuleId = <template>_ID;
71
    txMsg.Header.Command = CAN_MODULE_CMD_GLOBAL_LIST;
71
    txMsg.Header.Command = CAN_MODULE_CMD_GLOBAL_LIST;
72
    txMsg.Length = 6;
72
    txMsg.Length = 6;
73
 
73
 
-
 
74
    uint32_t HwId=BIOS_GetHwId();
74
    txMsg.Data[0] = NODE_HW_ID_BYTE0;
75
    txMsg.Data[0] = HwId&0xff;
75
    txMsg.Data[1] = NODE_HW_ID_BYTE1;
76
    txMsg.Data[1] = (HwId>>8)&0xff;
76
    txMsg.Data[2] = NODE_HW_ID_BYTE2;
77
    txMsg.Data[2] = (HwId>>16)&0xff;
77
    txMsg.Data[3] = NODE_HW_ID_BYTE3;
78
    txMsg.Data[3] = (HwId>>24)&0xff;
78
 
79
 
79
    txMsg.Data[4] = NUMBER_OF_MODULES;
80
    txMsg.Data[4] = NUMBER_OF_MODULES;
80
    txMsg.Data[5] = ModuleSequenceNumber;
81
    txMsg.Data[5] = ModuleSequenceNumber;
81
 
82
 
82
    while (StdCan_Put(&txMsg) != StdCan_Ret_OK);
83
    while (StdCan_Put(&txMsg) != StdCan_Ret_OK);