65 unsigned int master_slaves_responding; /**< number of responding slaves */ |
65 unsigned int master_slaves_responding; /**< number of responding slaves */ |
66 ec_slave_state_t master_slave_states; /**< states of responding slaves */ |
66 ec_slave_state_t master_slave_states; /**< states of responding slaves */ |
67 unsigned int master_validation; /**< non-zero, if validation to do */ |
67 unsigned int master_validation; /**< non-zero, if validation to do */ |
68 |
68 |
69 void (*slave_state)(ec_fsm_t *); /**< slave state function */ |
69 void (*slave_state)(ec_fsm_t *); /**< slave state function */ |
70 uint8_t slave_sii_num; /**< SII value iteration counter */ |
|
71 uint8_t *slave_cat_data; /**< temporary memory for category data */ |
|
72 uint16_t slave_cat_offset; /**< current category word offset in EEPROM */ |
|
73 uint16_t slave_cat_data_offset; /**< current offset in category data */ |
|
74 uint16_t slave_cat_type; /**< type of current category */ |
|
75 uint16_t slave_cat_words; /**< number of words of current category */ |
|
76 |
70 |
77 void (*sii_state)(ec_fsm_t *); /**< SII state function */ |
71 void (*sii_state)(ec_fsm_t *); /**< SII state function */ |
78 uint16_t sii_offset; /**< input: offset in SII */ |
72 uint16_t sii_offset; /**< input: offset in SII */ |
79 unsigned int sii_mode; /**< SII reading done by APRD (0) or NPRD (1) */ |
73 unsigned int sii_mode; /**< SII reading done by APRD (0) or NPRD (1) */ |
80 uint32_t sii_result; /**< output: read SII value (32bit) */ |
74 uint8_t sii_value[4]; /**< raw SII value (32bit) */ |
81 cycles_t sii_start; /**< sii start */ |
75 cycles_t sii_start; /**< sii start */ |
82 |
76 |
83 void (*change_state)(ec_fsm_t *); /**< slave state change state function */ |
77 void (*change_state)(ec_fsm_t *); /**< slave state change state function */ |
84 uint8_t change_new; /**< input: new state */ |
78 uint8_t change_new; /**< input: new state */ |
85 cycles_t change_start; /**< change start */ |
79 cycles_t change_start; /**< change start */ |