Module i2c

Source
Expand description

§I2C Driver

Provides a hardware abstraction layer for Inter-Integrated Circuit (I2C) communication on STM32 microcontrollers.

This module defines the I2C trait and supporting types for master/slave communication, bus speed configuration, and address handling across different STM32 families.

Modules§

stm32f103
stm32f401
stm32f407
stm32f411

Structs§

Event
Represents I2C communication events.
Status
Represents the status of the I2C peripheral.

Enums§

BusSpeed
Defines the possible bus speeds for I2C communication.

Traits§

I2c
A trait that defines a standard interface for an I2C driver.

Type Aliases§

Error
A generic error type for the I2C driver, using i32 for error codes.
Result
A specialized Result type for I2C operations.