29#ifndef __EC_FSM_PDO_H__
30#define __EC_FSM_PDO_H__
EtherCAT datagram structure.
EtherCAT CoE state machines.
struct ec_fsm_coe ec_fsm_coe_t
void ec_fsm_pdo_clear(ec_fsm_pdo_t *fsm)
Destructor.
void ec_fsm_pdo_start_configuration(ec_fsm_pdo_t *fsm, ec_slave_t *slave)
Start writing the PDO configuration.
void ec_fsm_pdo_start_reading(ec_fsm_pdo_t *fsm, ec_slave_t *slave, ec_pdo_mode_t assign_mode, ec_pdo_mode_t config_mode)
Start reading the PDO configuration.
void ec_fsm_pdo_init(ec_fsm_pdo_t *fsm, ec_fsm_coe_t *fsm_coe)
Constructor.
int ec_fsm_pdo_exec(ec_fsm_pdo_t *fsm, ec_datagram_t *datagram)
Executes the current state of the state machine.
int ec_fsm_pdo_success(const ec_fsm_pdo_t *fsm)
Get execution result.
struct ec_fsm_pdo ec_fsm_pdo_t
EtherCAT PDO entry configuration state machine structures.
struct ec_fsm_pdo_entry ec_fsm_pdo_entry_t
Global definitions and macros.
struct ec_slave ec_slave_t
struct ec_sdo_request ec_sdo_request_t
ec_pdo_mode_t
PDO handling mode.
PDO configuration state machine.
ec_pdo_mode_t assign_mode
Whether/how to read resp.
ec_sync_t * sync
Current sync manager.
ec_sdo_request_t request
SDO request.
ec_pdo_t * pdo
Current PDO.
unsigned int pdo_count
Number of assigned PDOs.
ec_slave_t * slave
Slave the FSM runs on.
ec_pdo_mode_t config_mode
Whether/how to read resp.
ec_pdo_t slave_pdo
PDO actually appearing in a slave.
uint8_t sync_index
Current sync manager index.
void(*) state(ec_fsm_pdo_t *, ec_datagram_t *)
State function.
ec_pdo_list_t pdos
PDO configuration.
unsigned int pdo_pos
Assignment position of current PDOs.
ec_fsm_pdo_entry_t fsm_pdo_entry
PDO entry state machine.
ec_fsm_coe_t * fsm_coe
CoE state machine to use.