Subversion Repositories HomeAutomation

Rev

Rev 1586 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1586 Rev 1910
Line 87... Line 87...
87
    txMsg.Header.ModuleType = CAN_MODULE_TYPE_SNS_NTC; ///TODO: Change this to the actual module type
87
    txMsg.Header.ModuleType = CAN_MODULE_TYPE_SNS_NTC; ///TODO: Change this to the actual module type
88
    txMsg.Header.ModuleId = sns_NTC_ID;
88
    txMsg.Header.ModuleId = sns_NTC_ID;
89
    txMsg.Header.Command = CAN_MODULE_CMD_GLOBAL_LIST;
89
    txMsg.Header.Command = CAN_MODULE_CMD_GLOBAL_LIST;
90
    txMsg.Length = 6;
90
    txMsg.Length = 6;
91
 
91
 
-
 
92
    uint32_t HwId=BIOS_GetHwId();
92
    txMsg.Data[0] = NODE_HW_ID_BYTE0;
93
    txMsg.Data[0] = HwId&0xff;
93
    txMsg.Data[1] = NODE_HW_ID_BYTE1;
94
    txMsg.Data[1] = (HwId>>8)&0xff;
94
    txMsg.Data[2] = NODE_HW_ID_BYTE2;
95
    txMsg.Data[2] = (HwId>>16)&0xff;
95
    txMsg.Data[3] = NODE_HW_ID_BYTE3;
96
    txMsg.Data[3] = (HwId>>24)&0xff;
96
   
97
   
97
    txMsg.Data[4] = NUMBER_OF_MODULES;
98
    txMsg.Data[4] = NUMBER_OF_MODULES;
98
    txMsg.Data[5] = ModuleSequenceNumber;
99
    txMsg.Data[5] = ModuleSequenceNumber;
99
   
100
   
100
    while (StdCan_Put(&txMsg) != StdCan_Ret_OK);
101
    while (StdCan_Put(&txMsg) != StdCan_Ret_OK);