Module master

Source
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§

AnyI2c
Represents any I2C peripheral.
Config
I2C driver configuration
I2c
I2C driver

Enums§

AcknowledgeCheckFailedReason
I2C no acknowledge error reason.
BusTimeout
I2C SCL timeout period.
ConfigError
I2C-specific configuration errors
Error
I2C-specific transmission errors
Eventunstable
Stability
I2cAddress
Representation of I2C address.
Operation
I2C operation.