master/sync.c
changeset 1183 d77f634ab0b5
parent 1060 5e51425da89f
child 1326 ef907b0b5125
equal deleted inserted replaced
1182:f5e725aa5483 1183:d77f634ab0b5
    56     sync->physical_start_address = 0x0000;
    56     sync->physical_start_address = 0x0000;
    57     sync->default_length = 0x0000;
    57     sync->default_length = 0x0000;
    58     sync->control_register = 0x00;
    58     sync->control_register = 0x00;
    59     sync->enable = 0x00;
    59     sync->enable = 0x00;
    60     ec_pdo_list_init(&sync->pdos);
    60     ec_pdo_list_init(&sync->pdos);
    61     sync->assign_source = EC_ASSIGN_NONE;
       
    62 }
    61 }
    63 
    62 
    64 /*****************************************************************************/
    63 /*****************************************************************************/
    65 
    64 
    66 /** Copy constructor.
    65 /** Copy constructor.
    75    sync->default_length = other->default_length;
    74    sync->default_length = other->default_length;
    76    sync->control_register = other->control_register;
    75    sync->control_register = other->control_register;
    77    sync->enable = other->enable;
    76    sync->enable = other->enable;
    78    ec_pdo_list_init(&sync->pdos);
    77    ec_pdo_list_init(&sync->pdos);
    79    ec_pdo_list_copy(&sync->pdos, &other->pdos);
    78    ec_pdo_list_copy(&sync->pdos, &other->pdos);
    80    sync->assign_source = other->assign_source;
       
    81 }
    79 }
    82 
    80 
    83 /*****************************************************************************/
    81 /*****************************************************************************/
    84 
    82 
    85 /** Destructor.
    83 /** Destructor.