TB2026-YDS Firmware
Loading...
Searching...
No Matches
i2c_bus.h File Reference

Shared I2C master bus (expander, DAC control, fuel gauge). More...

#include "esp_err.h"
#include "driver/i2c_master.h"

Go to the source code of this file.

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.

Detailed Description

Shared I2C master bus (expander, DAC control, fuel gauge).

Note
Développé avec l'assistance de Claude Opus 4.8 (Anthropic), sous la direction de Y. Dos Santos : spécification, revue et validation sur cible par l'auteur.