113 ec_master_t *master; /**< master the FSM runs on */ |
113 ec_master_t *master; /**< master the FSM runs on */ |
114 ec_datagram_t *datagram; /**< datagram used in the state machine */ |
114 ec_datagram_t *datagram; /**< datagram used in the state machine */ |
115 unsigned int retries; /**< retries on datagram timeout. */ |
115 unsigned int retries; /**< retries on datagram timeout. */ |
116 |
116 |
117 void (*state)(ec_fsm_master_t *); /**< master state function */ |
117 void (*state)(ec_fsm_master_t *); /**< master state function */ |
|
118 ec_device_index_t dev_idx; /**< Current device index (for scanning etc.). |
|
119 */ |
118 int idle; /**< state machine is in idle phase */ |
120 int idle; /**< state machine is in idle phase */ |
119 unsigned long scan_jiffies; /**< beginning of slave scanning */ |
121 unsigned long scan_jiffies; /**< beginning of slave scanning */ |
120 uint8_t link_state; /**< Last main device link state. */ |
122 uint8_t link_state[EC_NUM_DEVICES]; /**< Last link state for every device. |
121 unsigned int slaves_responding; /**< number of responding slaves */ |
123 */ |
|
124 unsigned int slaves_responding[EC_NUM_DEVICES]; /**< Number of responding |
|
125 slaves for every device. |
|
126 */ |
122 unsigned int rescan_required; /**< A bus rescan is required. */ |
127 unsigned int rescan_required; /**< A bus rescan is required. */ |
123 ec_slave_state_t slave_states; /**< states of responding slaves */ |
128 ec_slave_state_t slave_states[EC_NUM_DEVICES]; /**< AL states of |
|
129 responding slaves for |
|
130 every device. */ |
124 ec_slave_t *slave; /**< current slave */ |
131 ec_slave_t *slave; /**< current slave */ |
125 ec_sii_write_request_t *sii_request; /**< SII write request */ |
132 ec_sii_write_request_t *sii_request; /**< SII write request */ |
126 off_t sii_index; /**< index to SII write request data */ |
133 off_t sii_index; /**< index to SII write request data */ |
127 ec_sdo_request_t *sdo_request; /**< SDO request to process. */ |
134 ec_sdo_request_t *sdo_request; /**< SDO request to process. */ |
128 ec_reg_request_t *reg_request; /**< Register request to process. */ |
135 ec_reg_request_t *reg_request; /**< Register request to process. */ |