master/fmmu_config.c
changeset 1327 4d179b06dd3c
parent 1326 ef907b0b5125
child 1363 11c0b2caa253
equal deleted inserted replaced
1326:ef907b0b5125 1327:4d179b06dd3c
    39 /*****************************************************************************/
    39 /*****************************************************************************/
    40 
    40 
    41 /** FMMU configuration constructor.
    41 /** FMMU configuration constructor.
    42  *
    42  *
    43  * Inits an FMMU configuration, sets the logical start address and adds the
    43  * Inits an FMMU configuration, sets the logical start address and adds the
    44  * process data size for the mapped Pdos of the given direction to the domain
    44  * process data size for the mapped PDOs of the given direction to the domain
    45  * data size.
    45  * data size.
    46  */
    46  */
    47 void ec_fmmu_config_init(
    47 void ec_fmmu_config_init(
    48         ec_fmmu_config_t *fmmu, /**< EtherCAT FMMU configuration. */
    48         ec_fmmu_config_t *fmmu, /**< EtherCAT FMMU configuration. */
    49         ec_slave_config_t *sc, /**< EtherCAT slave configuration. */
    49         ec_slave_config_t *sc, /**< EtherCAT slave configuration. */
    50         ec_domain_t *domain, /**< EtherCAT domain. */
    50         ec_domain_t *domain, /**< EtherCAT domain. */
    51         uint8_t sync_index, /**< Sync manager index to use. */
    51         uint8_t sync_index, /**< Sync manager index to use. */
    52         ec_direction_t dir /**< Pdo direction. */
    52         ec_direction_t dir /**< PDO direction. */
    53         )
    53         )
    54 {
    54 {
    55     INIT_LIST_HEAD(&fmmu->list);
    55     INIT_LIST_HEAD(&fmmu->list);
    56     fmmu->sc = sc;
    56     fmmu->sc = sc;
    57     fmmu->sync_index = sync_index;
    57     fmmu->sync_index = sync_index;