Module stm32_hal2::i2c [−][src]
Expand description
Support for the Inter-Integrated Circuit (I2C) bus peripheral. Also supports SMBUS. Provides APIs to configure, read, and write from I2C, with blocking, nonblocking, and DMA functionality.
Structs
Represents an Inter-Integrated Circuit (I2C) peripheral.
Initial configuration data for the I2C peripheral.
Enums
Set the number of address bits to 7 or 10. Sets the CR2 register, ADD10 field.
I2C error
Set master or slave mode. Sets the __ register, _ field.
Set a preset I2C speed, based on RM tables: Examples of timings settings. Sets 5 fields of the TIMINGR register.
Set the number of address bits to 7 or 10. Sets the CR1 register, ANFOFF and DNF fields.