S12 Receive "byte count" byte

Event from I2C driver indicating successfull receipt of byte causes transition to S13 or S14 depending on the data direction bit in the I2C command already sent. The state transition function used is "STF_S_rd_len"

The state transition function "STF_S_rd_len" generates the event "event_read_block" if the data direction bit in the I2C command indicates a read, otherwise it generates the event "event_write_block" if the data direction bit in the I2C command indicates a write.

The "event_read_block" event causes a transition to S13. The state transition function used is "STF_S_rd_block".

The "event_write_block" event causes a transition to S14. The state transition function used is "STF_S_wt_block"

Event from I2C driver indicating failure in receipt causes transition to S15. The state transition function used is "STF_S_wait_for_stop"

Event from I2C driver indicating unexpected stop condition seen causes transition to S1. The state transition function used is "STF_S_ready"