master/globals.h
changeset 1337 0253c74d0940
parent 1327 4d179b06dd3c
child 1363 11c0b2caa253
equal deleted inserted replaced
1336:e27b37e80a99 1337:0253c74d0940
   113     /**< unknown state */
   113     /**< unknown state */
   114     EC_SLAVE_STATE_INIT = 0x01,
   114     EC_SLAVE_STATE_INIT = 0x01,
   115     /**< INIT state (no mailbox communication, no IO) */
   115     /**< INIT state (no mailbox communication, no IO) */
   116     EC_SLAVE_STATE_PREOP = 0x02,
   116     EC_SLAVE_STATE_PREOP = 0x02,
   117     /**< PREOP state (mailbox communication, no IO) */
   117     /**< PREOP state (mailbox communication, no IO) */
       
   118     EC_SLAVE_STATE_BOOT = 0x03,
       
   119     /**< Bootstrap state (mailbox communication, firmware update) */
   118     EC_SLAVE_STATE_SAFEOP = 0x04,
   120     EC_SLAVE_STATE_SAFEOP = 0x04,
   119     /**< SAFEOP (mailbox communication and input update) */
   121     /**< SAFEOP (mailbox communication and input update) */
   120     EC_SLAVE_STATE_OP = 0x08,
   122     EC_SLAVE_STATE_OP = 0x08,
   121     /**< OP (mailbox communication and input/output update) */
   123     /**< OP (mailbox communication and input/output update) */
   122     EC_SLAVE_STATE_ACK_ERR = 0x10
   124     EC_SLAVE_STATE_ACK_ERR = 0x10
   224 
   226 
   225 /*****************************************************************************/
   227 /*****************************************************************************/
   226 
   228 
   227 void ec_print_data(const uint8_t *, size_t);
   229 void ec_print_data(const uint8_t *, size_t);
   228 void ec_print_data_diff(const uint8_t *, const uint8_t *, size_t);
   230 void ec_print_data_diff(const uint8_t *, const uint8_t *, size_t);
   229 size_t ec_state_string(uint8_t, char *);
   231 size_t ec_state_string(uint8_t, char *, uint8_t);
   230 ssize_t ec_mac_print(const uint8_t *, char *);
   232 ssize_t ec_mac_print(const uint8_t *, char *);
   231 int ec_mac_is_zero(const uint8_t *);
   233 int ec_mac_is_zero(const uint8_t *);
   232 
   234 
   233 ec_master_t *ecrt_request_master_err(unsigned int);
   235 ec_master_t *ecrt_request_master_err(unsigned int);
   234 
   236