idfxx 1.0.0
Modern C++23 components for ESP-IDF
Loading...
Searching...
No Matches
idfxx::i2c::master_device::config Struct Reference

I2C device configuration. More...

#include <idfxx_i2c/include/idfxx/i2c/master.hpp>

Public Attributes

freq::hertz scl_speed {0}
 Per-device SCL speed in Hz (0 = use bus frequency).
 
uint32_t scl_wait_us = 0
 SCL wait time in microseconds (0 = default).
 
bool addr_10bit = false
 Use 10-bit addressing mode instead of 7-bit.
 
bool disable_ack_check = false
 Disable ACK checking for this device.
 

Detailed Description

I2C device configuration.

Provides per-device settings for SCL speed, addressing mode, and ACK behavior.

.scl_speed = 400_kHz,
.disable_ack_check = true,
});
I2C device at a specific address with register operations.
Definition master.hpp:344
master_bus & bus() const
Returns the parent bus.
Definition master.hpp:446
std::expected< T, std::error_code > result
result type wrapping a value or error code.
Definition error.hpp:120

Definition at line 358 of file master.hpp.

Member Data Documentation

◆ addr_10bit

bool idfxx::i2c::master_device::config::addr_10bit = false

Use 10-bit addressing mode instead of 7-bit.

Definition at line 361 of file master.hpp.

◆ disable_ack_check

bool idfxx::i2c::master_device::config::disable_ack_check = false

Disable ACK checking for this device.

Definition at line 362 of file master.hpp.

◆ scl_speed

freq::hertz idfxx::i2c::master_device::config::scl_speed {0}

Per-device SCL speed in Hz (0 = use bus frequency).

Definition at line 359 of file master.hpp.

◆ scl_wait_us

uint32_t idfxx::i2c::master_device::config::scl_wait_us = 0

SCL wait time in microseconds (0 = default).

Definition at line 360 of file master.hpp.


The documentation for this struct was generated from the following file: