Subversion Repositories HomeAutomation

Rev

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

Rev 1893 Rev 1910
Line 1237... Line 1237...
1237
 
1237
 
1238
    txMsg.Header.ModuleId = sns_irTransceive_ID;
1238
    txMsg.Header.ModuleId = sns_irTransceive_ID;
1239
    txMsg.Header.Command = CAN_MODULE_CMD_GLOBAL_LIST;
1239
    txMsg.Header.Command = CAN_MODULE_CMD_GLOBAL_LIST;
1240
    txMsg.Length = 6;
1240
    txMsg.Length = 6;
1241
 
1241
 
-
 
1242
    uint32_t HwId=BIOS_GetHwId();
1242
    txMsg.Data[0] = NODE_HW_ID_BYTE0;
1243
    txMsg.Data[0] = HwId&0xff;
1243
    txMsg.Data[1] = NODE_HW_ID_BYTE1;
1244
    txMsg.Data[1] = (HwId>>8)&0xff;
1244
    txMsg.Data[2] = NODE_HW_ID_BYTE2;
1245
    txMsg.Data[2] = (HwId>>16)&0xff;
1245
    txMsg.Data[3] = NODE_HW_ID_BYTE3;
1246
    txMsg.Data[3] = (HwId>>24)&0xff;
1246
 
1247
 
1247
    txMsg.Data[4] = NUMBER_OF_MODULES;
1248
    txMsg.Data[4] = NUMBER_OF_MODULES;
1248
    txMsg.Data[5] = ModuleSequenceNumber;
1249
    txMsg.Data[5] = ModuleSequenceNumber;
1249
 
1250
 
1250
    while (StdCan_Put(&txMsg) != StdCan_Ret_OK);
1251
    while (StdCan_Put(&txMsg) != StdCan_Ret_OK);