master/fsm_pdo_entry.h
changeset 1823 2bf892fe8080
parent 1363 11c0b2caa253
child 2498 9cdd7669dc0b
equal deleted inserted replaced
1822:74e6ac2369f4 1823:2bf892fe8080
    56     ec_sdo_request_t request; /**< SDO request. */
    56     ec_sdo_request_t request; /**< SDO request. */
    57 
    57 
    58     ec_slave_t *slave; /**< Slave the FSM runs on. */
    58     ec_slave_t *slave; /**< Slave the FSM runs on. */
    59     ec_pdo_t *target_pdo; /**< PDO to read the mapping for. */
    59     ec_pdo_t *target_pdo; /**< PDO to read the mapping for. */
    60     const ec_pdo_t *source_pdo; /**< PDO with desired mapping. */
    60     const ec_pdo_t *source_pdo; /**< PDO with desired mapping. */
       
    61     const ec_pdo_t *cur_pdo; /**< PDO with current mapping (display only). */
    61     const ec_pdo_entry_t *entry; /**< Current entry. */
    62     const ec_pdo_entry_t *entry; /**< Current entry. */
    62     unsigned int entry_count; /**< Number of entries. */
    63     unsigned int entry_count; /**< Number of entries. */
    63     unsigned int entry_pos; /**< Position in PDO mapping. */
    64     unsigned int entry_pos; /**< Position in PDO mapping. */
    64 };
    65 };
    65 
    66 
    69 void ec_fsm_pdo_entry_clear(ec_fsm_pdo_entry_t *);
    70 void ec_fsm_pdo_entry_clear(ec_fsm_pdo_entry_t *);
    70 
    71 
    71 void ec_fsm_pdo_entry_start_reading(ec_fsm_pdo_entry_t *, ec_slave_t *,
    72 void ec_fsm_pdo_entry_start_reading(ec_fsm_pdo_entry_t *, ec_slave_t *,
    72         ec_pdo_t *);
    73         ec_pdo_t *);
    73 void ec_fsm_pdo_entry_start_configuration(ec_fsm_pdo_entry_t *, ec_slave_t *,
    74 void ec_fsm_pdo_entry_start_configuration(ec_fsm_pdo_entry_t *, ec_slave_t *,
    74         const ec_pdo_t *);
    75         const ec_pdo_t *, const ec_pdo_t *);
    75 
    76 
    76 int ec_fsm_pdo_entry_exec(ec_fsm_pdo_entry_t *);
    77 int ec_fsm_pdo_entry_exec(ec_fsm_pdo_entry_t *);
    77 int ec_fsm_pdo_entry_success(const ec_fsm_pdo_entry_t *);
    78 int ec_fsm_pdo_entry_success(const ec_fsm_pdo_entry_t *);
    78 
    79 
    79 /*****************************************************************************/
    80 /*****************************************************************************/