Expand description
§Inter-Integrated Circuit (I2C) - Master mode
§Overview
In this mode, the I2C acts as master and initiates the I2C communication by generating a START condition. Note that only one master is allowed to occupy the bus to access one slave at the same time.
§Configuration
Each I2C Master controller is individually configurable, and the usual setting such as frequency, timeout, and SDA/SCL pins can easily be configured.
§Usage
The I2C driver implements a number of third-party traits, with the intention of making the HAL inter-compatible with various device drivers from the community, including the embedded-hal.
Structs§
- Config
- I2C driver configuration
- FsmTimeout
unstable
- When the FSM remains unchanged for more than the 2^ the given amount of bus clock cycles a timeout will be triggered.
- I2c
- I2C driver
Enums§
- Acknowledge
Check Failed Reason - I2C no acknowledge error reason.
- BusTimeout
- I2C SCL timeout period.
- Config
Error - I2C-specific configuration errors
- Error
- I2C-specific transmission errors
- Event
unstable
- Stability
- I2cAddress
- Representation of I2C address.
- Operation
- I2C operation.
- Software
Timeout unstable
- Software timeout for I2C operations.
Traits§
- Instance
- A peripheral singleton compatible with the I2C master driver.