|
idfxx 1.0.0
Modern C++23 components for ESP-IDF
|
Type-safe I2C master bus driver for ESP32. More...
Namespaces | |
| namespace | idfxx |
| namespace | idfxx::i2c |
| I2C master driver classes. | |
Classes | |
| class | idfxx::i2c::master_bus |
| I2C master bus controller with thread-safe device access. More... | |
| class | idfxx::i2c::master_device |
| I2C device at a specific address with register operations. More... | |
Typedefs | |
| typedef struct i2c_master_bus_t * | i2c_master_bus_handle_t |
| typedef struct i2c_master_dev_t * | i2c_master_dev_handle_t |
Enumerations | |
| enum class | idfxx::i2c::port : int { idfxx::i2c::port::i2c0 = 0 } |
| I2C port identifiers. More... | |
| enum class | idfxx::i2c::clk_source : int { idfxx::i2c::clk_source::default_source = 0 } |
| I2C master bus clock source. More... | |
Variables | |
| static constexpr auto | idfxx::i2c::DEFAULT_TIMEOUT = std::chrono::milliseconds(50) |
| Default timeout for I2C operations. | |
Type-safe I2C master bus driver for ESP32.
Provides I2C bus lifecycle management with thread-safe device access and register operations.
Depends on Core Utilities for error handling and GPIO Component for pin configuration.
| typedef struct i2c_master_bus_t* i2c_master_bus_handle_t |
Definition at line 36 of file master.hpp.
| typedef struct i2c_master_dev_t* i2c_master_dev_handle_t |
Definition at line 37 of file master.hpp.
|
strong |
I2C master bus clock source.
| Enumerator | |
|---|---|
| default_source | Default clock source for the target. |
Definition at line 70 of file master.hpp.
|
strong |
Default timeout for I2C operations.
Definition at line 46 of file master.hpp.
Referenced by idfxx::i2c::master_device::probe(), idfxx::i2c::master_bus::probe(), idfxx::i2c::master_bus::scan_devices(), idfxx::i2c::master_device::try_probe(), idfxx::i2c::master_bus::try_probe(), idfxx::i2c::master_device::try_read_register(), idfxx::i2c::master_device::try_read_register(), idfxx::i2c::master_device::try_read_register(), idfxx::i2c::master_device::try_read_register(), idfxx::i2c::master_device::try_read_register(), idfxx::i2c::master_device::try_read_register(), idfxx::i2c::master_device::try_receive(), idfxx::i2c::master_device::try_receive(), idfxx::i2c::master_device::try_receive(), idfxx::i2c::master_device::try_transmit(), idfxx::i2c::master_device::try_transmit(), idfxx::i2c::master_device::try_write_register(), idfxx::i2c::master_device::try_write_register(), idfxx::i2c::master_device::try_write_register(), idfxx::i2c::master_device::try_write_register(), idfxx::i2c::master_device::try_write_registers(), and idfxx::i2c::master_device::try_write_registers().