15 public spi::SPIDevice<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_HIGH,
16 spi::CLOCK_PHASE_TRAILING, spi::DATA_RATE_1MHZ> {
22 void setup()
override;
61 uint16_t
read16_(uint16_t a_register);
62 int read32_(uint16_t addr_h, uint16_t addr_l);
float get_local_phase_active_power_(uint8_t)
void set_enable_offset_calibration(bool flag)
sensor::Sensor * voltage_sensor_
void set_chip_temperature_sensor(sensor::Sensor *chip_temperature_sensor)
float reverse_active_energy_
sensor::Sensor * forward_active_energy_sensor_
void set_phase_angle_sensor(int phase, sensor::Sensor *obj)
sensor::Sensor * apparent_power_sensor_
float get_phase_power_factor_(uint8_t)
float get_setup_priority() const override
float get_local_phase_current_(uint8_t)
void write16_(uint16_t a_register, uint16_t val)
ESPPreferenceObject pref_
void clear_offset_calibrations()
float get_phase_reactive_power_(uint8_t)
uint32_t cumulative_reverse_active_energy_
void set_harmonic_active_power_sensor(int phase, sensor::Sensor *obj)
void set_current_sensor(int phase, sensor::Sensor *obj)
void set_reverse_active_energy_sensor(int phase, sensor::Sensor *obj)
int read32_(uint16_t addr_h, uint16_t addr_l)
struct esphome::atm90e32::ATM90E32Component::Calibration offset_phase_[3]
void set_peak_current_sensor(int phase, sensor::Sensor *obj)
sensor::Sensor * current_sensor_
This class simplifies creating components that periodically check a state.
static const uint8_t PHASEC
static const uint8_t PHASEB
void set_apparent_power_sensor(int phase, sensor::Sensor *obj)
int32_t last_periodic_millis
uint32_t IRAM_ATTR HOT millis()
float get_chip_temperature_()
The SPIDevice is what components using the SPI will create.
bool peak_current_signed_
bool enable_offset_calibration_
float get_phase_forward_active_energy_(uint8_t)
void set_ct_gain(int phase, uint16_t gain)
sensor::Sensor * harmonic_active_power_sensor_
void dump_config() override
static const uint8_t PHASEA
float get_phase_peak_current_(uint8_t)
float get_phase_current_avg_(uint8_t)
sensor::Sensor * phase_angle_sensor_
float forward_active_energy_
float get_local_phase_voltage_(uint8_t)
struct esphome::atm90e32::ATM90E32Component::ATM90E32Phase phase_[3]
float get_local_phase_forward_active_energy_(uint8_t)
void set_peak_current_signed(bool flag)
uint16_t calibrate_voltage_offset_phase(uint8_t)
sensor::Sensor * peak_current_sensor_
uint32_t cumulative_forward_active_energy_
void set_voltage_sensor(int phase, sensor::Sensor *obj)
float get_phase_current_(uint8_t)
sensor::Sensor * reverse_active_energy_sensor_
void set_power_factor_sensor(int phase, sensor::Sensor *obj)
void set_volt_gain(int phase, uint16_t gain)
float get_phase_reverse_active_energy_(uint8_t)
float get_local_phase_peak_current_(uint8_t)
float get_phase_voltage_avg_(uint8_t)
float get_phase_active_power_(uint8_t)
float get_phase_voltage_(uint8_t)
void set_power_sensor(int phase, sensor::Sensor *obj)
void run_offset_calibrations()
bool get_publish_interval_flag_()
float get_phase_harmonic_active_power_(uint8_t)
float harmonic_active_power_
void restore_calibrations_()
void set_current_phases(int phases)
uint16_t read16_(uint16_t a_register)
sensor::Sensor * chip_temperature_sensor_
bool publish_interval_flag_
float get_phase_angle_(uint8_t)
float get_local_phase_reverse_active_energy_(uint8_t)
Implementation of SPI Controller mode.
void set_pga_gain(uint16_t gain)
uint16_t calibrate_current_offset_phase(uint8_t)
sensor::Sensor * power_sensor_
sensor::Sensor * freq_sensor_
void set_reactive_power_sensor(int phase, sensor::Sensor *obj)
Base-class for all sensors.
void set_forward_active_energy_sensor(int phase, sensor::Sensor *obj)
sensor::Sensor * reactive_power_sensor_
float get_local_phase_harmonic_active_power_(uint8_t)
float get_local_phase_power_factor_(uint8_t)
void set_freq_sensor(sensor::Sensor *freq_sensor)
void set_publish_interval_flag_(bool flag)
void set_line_freq(int freq)
float get_local_phase_angle_(uint8_t)
float get_local_phase_reactive_power_(uint8_t)
sensor::Sensor * power_factor_sensor_