Subversion Repositories HomeAutomation

Rev

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

Rev 899 Rev 900
Line 336... Line 336...
336
 
336
 
337
void act_dimmer230_List(uint8_t ModuleSequenceNumber)
337
void act_dimmer230_List(uint8_t ModuleSequenceNumber)
338
{
338
{
339
    StdCan_Msg_t txMsg;
339
    StdCan_Msg_t txMsg;
340
   
340
   
341
    StdCan_Set_class(txMsg.Header, CAN_CLASS_MODULE_DEF); ///TODO: Change this to the actual class type
341
    StdCan_Set_class(txMsg.Header, CAN_CLASS_MODULE_ACT);
342
    StdCan_Set_direction(txMsg.Header, DIR_FROM_OWNER);
342
    StdCan_Set_direction(txMsg.Header, DIR_FROM_OWNER);
343
    txMsg.Header.ModuleType = CAN_TYPE_MODULE_def_default; ///TODO: Change this to the actual module type
343
    txMsg.Header.ModuleType = CAN_TYPE_MODULE_act_Dimmer230;
344
    txMsg.Header.ModuleId = act_dimmer230_ID;
344
    txMsg.Header.ModuleId = act_dimmer230_ID;
345
    txMsg.Header.Command = CAN_CMD_MODULE_NMT_LIST;
345
    txMsg.Header.Command = CAN_CMD_MODULE_NMT_LIST;
346
    txMsg.Length = 6;
346
    txMsg.Length = 6;
347
 
347
 
348
    txMsg.Data[0] = NODE_HW_ID_BYTE0;
348
    txMsg.Data[0] = NODE_HW_ID_BYTE0;