master/fsm_coe_map.h
changeset 814 a51f857b1b2d
parent 792 3778920f61e4
child 831 ded9519c8d6e
equal deleted inserted replaced
813:bfc3f1ab52de 814:a51f857b1b2d
    57 {
    57 {
    58     void (*state)(ec_fsm_coe_map_t *); /**< CoE mapping state function */
    58     void (*state)(ec_fsm_coe_map_t *); /**< CoE mapping state function */
    59     ec_fsm_coe_t *fsm_coe; /**< CoE state machine to use */
    59     ec_fsm_coe_t *fsm_coe; /**< CoE state machine to use */
    60 
    60 
    61     ec_slave_t *slave; /**< EtherCAT slave */
    61     ec_slave_t *slave; /**< EtherCAT slave */
    62     ec_sdo_request_t request; /**< SDO request */
    62     ec_sdo_request_t request; /**< Sdo request */
    63 
    63 
    64     unsigned int sync_index; /**< index of the current sync manager */
    64     unsigned int sync_index; /**< index of the current sync manager */
    65     ec_sdo_t *sync_sdo; /**< pointer to the sync managers mapping SDO */
    65     ec_sdo_t *sync_sdo; /**< pointer to the sync managers mapping Sdo */
    66     uint8_t sync_subindices; /**< number of mapped PDOs */
    66     uint8_t sync_subindices; /**< number of mapped Pdos */
    67     uint16_t sync_subindex; /**< current subindex in mapping SDO */
    67     uint16_t sync_subindex; /**< current subindex in mapping Sdo */
    68 
    68 
    69     ec_pdo_mapping_t mapping; /**< Mapping to apply. */
    69     ec_pdo_mapping_t mapping; /**< Mapping to apply. */
    70     ec_pdo_t *pdo; /**< current PDO */
    70     ec_pdo_t *pdo; /**< current Pdo */
    71     ec_sdo_t *pdo_sdo; /**< current PDO SDO */
    71     ec_sdo_t *pdo_sdo; /**< current Pdo Sdo */
    72     uint8_t pdo_subindices; /**< number of PDO entries */
    72     uint8_t pdo_subindices; /**< number of Pdo entries */
    73     uint16_t pdo_subindex; /**< current subindex in PDO SDO */
    73     uint16_t pdo_subindex; /**< current subindex in Pdo Sdo */
    74 };
    74 };
    75 
    75 
    76 /*****************************************************************************/
    76 /*****************************************************************************/
    77 
    77 
    78 void ec_fsm_coe_map_init(ec_fsm_coe_map_t *, ec_fsm_coe_t *);
    78 void ec_fsm_coe_map_init(ec_fsm_coe_map_t *, ec_fsm_coe_t *);