46 void setup()
override;
47 void dump_config()
override;
48 float get_setup_priority()
const override;
49 void update()
override;
74 int32_t twos_complement_(int32_t
val, uint8_t bits);
AdcTime bus_voltage_conversion_time
uint32_t calibration_lsb_
This class simplifies creating components that periodically check a state.
void set_shunt_resistance_ohm(float shunt_resistance_ohm)
void set_current_sensor(sensor::Sensor *current_sensor)
void set_shunt_voltage_sensor(sensor::Sensor *shunt_voltage_sensor)
float shunt_resistance_ohm_
AdcAvgSamples avg_samples
struct esphome::ina226::ConfigurationRegister::@82 __attribute__((packed))
void set_power_sensor(sensor::Sensor *power_sensor)
Implementation of SPI Controller mode.
void set_adc_time_current(AdcTime time)
void set_max_current_a(float max_current_a)
void set_bus_voltage_sensor(sensor::Sensor *bus_voltage_sensor)
Base-class for all sensors.
AdcTime shunt_voltage_conversion_time
void set_adc_avg_samples(AdcAvgSamples samples)
void set_adc_time_voltage(AdcTime time)
This Class provides the methods to read/write bytes from/to an i2c device.