master/fsm_sii.c
changeset 1965 c6e6ec6ba5d8
parent 1957 b481ccf21272
equal deleted inserted replaced
1964:9327c261056f 1965:c6e6ec6ba5d8
   182     EC_WRITE_U8 (datagram->data,     0x80); // two address octets
   182     EC_WRITE_U8 (datagram->data,     0x80); // two address octets
   183     EC_WRITE_U8 (datagram->data + 1, 0x01); // request read operation
   183     EC_WRITE_U8 (datagram->data + 1, 0x01); // request read operation
   184     EC_WRITE_U16(datagram->data + 2, fsm->word_offset);
   184     EC_WRITE_U16(datagram->data + 2, fsm->word_offset);
   185 
   185 
   186 #ifdef SII_DEBUG
   186 #ifdef SII_DEBUG
   187     EC_SLAVE_DBG(slave, 0, "reading SII data:\n");
   187     EC_SLAVE_DBG(fsm->slave, 0, "reading SII data, word %u:\n",
       
   188             fsm->word_offset);
   188     ec_print_data(datagram->data, 4);
   189     ec_print_data(datagram->data, 4);
   189 #endif
   190 #endif
   190 
   191 
   191     fsm->retries = EC_FSM_RETRIES;
   192     fsm->retries = EC_FSM_RETRIES;
   192     fsm->state = ec_fsm_sii_state_read_check;
   193     fsm->state = ec_fsm_sii_state_read_check;