Subversion Repositories HomeAutomation

Rev

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

Rev 1726 Rev 1910
Line 112... Line 112...
112
    txMsg.Header.ModuleType = CAN_MODULE_TYPE_CHN_CHNMASTER;
112
    txMsg.Header.ModuleType = CAN_MODULE_TYPE_CHN_CHNMASTER;
113
    txMsg.Header.ModuleId = chn_ChnMaster_ID;
113
    txMsg.Header.ModuleId = chn_ChnMaster_ID;
114
    txMsg.Header.Command = CAN_MODULE_CMD_GLOBAL_LIST;
114
    txMsg.Header.Command = CAN_MODULE_CMD_GLOBAL_LIST;
115
    txMsg.Length = 6;
115
    txMsg.Length = 6;
116
 
116
 
-
 
117
    uint32_t HwId=BIOS_GetHwId();
117
    txMsg.Data[0] = NODE_HW_ID_BYTE0;
118
    txMsg.Data[0] = HwId&0xff;
118
    txMsg.Data[1] = NODE_HW_ID_BYTE1;
119
    txMsg.Data[1] = (HwId>>8)&0xff;
119
    txMsg.Data[2] = NODE_HW_ID_BYTE2;
120
    txMsg.Data[2] = (HwId>>16)&0xff;
120
    txMsg.Data[3] = NODE_HW_ID_BYTE3;
121
    txMsg.Data[3] = (HwId>>24)&0xff;
121
   
122
   
122
    txMsg.Data[4] = NUMBER_OF_MODULES;
123
    txMsg.Data[4] = NUMBER_OF_MODULES;
123
    txMsg.Data[5] = ModuleSequenceNumber;
124
    txMsg.Data[5] = ModuleSequenceNumber;
124
   
125
   
125
    while (StdCan_Put(&txMsg) != StdCan_Ret_OK);
126
    while (StdCan_Put(&txMsg) != StdCan_Ret_OK);