|
TB2026-YDS Firmware
|
Shared I2C master bus (expander, DAC control, fuel gauge). More...

Macros | |
| #define | I2C_BUS_FREQ_HZ (400 * 1000) |
Functions | |
| esp_err_t | i2c_bus_init (i2c_master_bus_handle_t *out_handle) |
| Initialize the shared I2C master bus on the board's SDA/SCL pins. | |
| i2c_master_bus_handle_t | i2c_bus_handle (void) |
| The shared bus handle cached by i2c_bus_init(). | |
| void | i2c_bus_scan (i2c_master_bus_handle_t bus) |
| Probe 0x08..0x77 and log every ACKing address. Bring-up helper. | |
Shared I2C master bus (expander, DAC control, fuel gauge).
| #define I2C_BUS_FREQ_HZ (400 * 1000) |
Per-device SCL speed, set when drivers add themselves to the bus.
| i2c_master_bus_handle_t i2c_bus_handle | ( | void | ) |
The shared bus handle cached by i2c_bus_init().
Lets a consumer that didn't run init (e.g. the stats diagnostics page probing device presence) reach the bus without threading the handle through every layer.
| esp_err_t i2c_bus_init | ( | i2c_master_bus_handle_t * | out_handle | ) |
Initialize the shared I2C master bus on the board's SDA/SCL pins.
| [out] | out_handle | Receives the master bus handle. |
| void i2c_bus_scan | ( | i2c_master_bus_handle_t | bus | ) |
Probe 0x08..0x77 and log every ACKing address. Bring-up helper.
| bus | Master bus handle from i2c_bus_init(). |