esp_hal::i2c

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§

  • Represents any I2C peripheral.
  • I2C driver configuration
  • I2C driver

Enums§