Subversion Repositories HomeAutomation

Rev

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

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