spinal.lib.com.i2c
I2C Master IO Layer _ | |<------- I2C ------->| | | Master | | Slave | CMD Stream ->||-> RSP Flow |_|
Sequence :
CMD : START DATA DATA DATA DATA STOP Master : | START | DATA | | DATA | | STOP | Slave : | | | DATA | | DATA | | RSP : DATA DATA DATA DATA
Detect the start/restart and the stop sequence
Filter SDA and SCL input
Detect the rising and falling edge of the scl signal
Main state machine of the Master HAL
I2C Master IO Layer _ | |<------- I2C ------->| | | Master | | Slave | CMD Stream ->||-> RSP Flow |_|
Sequence :
CMD : START DATA DATA DATA DATA STOP Master : | START | DATA | | DATA | | STOP | Slave : | | | DATA | | DATA | | RSP : DATA DATA DATA DATA