equal
deleted
inserted
replaced
126 /** Finite state machine of an EtherCAT master. |
126 /** Finite state machine of an EtherCAT master. |
127 */ |
127 */ |
128 struct ec_fsm_master { |
128 struct ec_fsm_master { |
129 ec_master_t *master; /**< master the FSM runs on */ |
129 ec_master_t *master; /**< master the FSM runs on */ |
130 ec_datagram_t *datagram; /**< datagram used in the state machine */ |
130 ec_datagram_t *datagram; /**< datagram used in the state machine */ |
131 ec_mailbox_t* mbox; /**< mailbox used in the CoE state machine */ |
131 ec_mailbox_t *mbox; /**< mailbox used in the state machine */ |
132 unsigned int retries; /**< retries on datagram timeout. */ |
132 unsigned int retries; /**< retries on datagram timeout. */ |
133 |
133 |
134 void (*state)(ec_fsm_master_t *); /**< master state function */ |
134 void (*state)(ec_fsm_master_t *); /**< master state function */ |
135 int idle; /**< state machine is in idle phase */ |
135 int idle; /**< state machine is in idle phase */ |
136 unsigned long scan_jiffies; /**< beginning of slave scanning */ |
136 unsigned long scan_jiffies; /**< beginning of slave scanning */ |