master/fsm_master.h
changeset 2094 83e9160319ec
parent 2045 ff2a13a4603c
child 2589 2b9c78543663
equal deleted inserted replaced
2093:c7e7d80e49ea 2094:83e9160319ec
   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 */