I2C instance. Holds the software registers and hardware pointer.
- Note
- This structure holds configuration values to be applied to the hardware.
- slaveAddress: 7-bit slave address.
- samplingClockDivider
- Sampling rate = (FCLK/(samplingClockDivider + 1)).
- Controls the rate at which the I2C controller samples SCL and SDA.
- timeout: Timeout value in number of SCL clock cycles.
- Inactive timeout clock cycle. The controller will drop the transfer when the value of the timeout is reached or exceeded.
- Setting the timeout value to zero will disable the timeout feature.
- Defines the maximum duration the controller will wait for SCL to
- tsuDat => Data setup time. The number of clock cycles should SDA hold its state before the rising edge of SCL.
- tLow => The number of clock cycles of SCL in LOW state.
- tHigh => The number of clock cycles of SCL in HIGH state.
- tBuf => The number of clock cycles delay before master can initiate a START bit after a STOP bit is issued.
-
To apply the changes, please call i2c_applyConfig() after modifying the configuration fields.
Definition at line 259 of file i2c.h.