ESPHome  2024.12.2
Public Member Functions | Data Fields
esphome::ade7880::PowerChannel Struct Reference

#include <ade7880.h>

Public Member Functions

void set_current (sensor::Sensor *sens)
 
void set_voltage (sensor::Sensor *sens)
 
void set_active_power (sensor::Sensor *sens)
 
void set_apparent_power (sensor::Sensor *sens)
 
void set_power_factor (sensor::Sensor *sens)
 
void set_forward_active_energy (sensor::Sensor *sens)
 
void set_reverse_active_energy (sensor::Sensor *sens)
 
void set_current_gain_calibration (int32_t val)
 
void set_voltage_gain_calibration (int32_t val)
 
void set_power_gain_calibration (int32_t val)
 
void set_phase_angle_calibration (int32_t val)
 

Data Fields

sensor::Sensorcurrent {nullptr}
 
sensor::Sensorvoltage {nullptr}
 
sensor::Sensoractive_power {nullptr}
 
sensor::Sensorapparent_power {nullptr}
 
sensor::Sensorpower_factor {nullptr}
 
sensor::Sensorforward_active_energy {nullptr}
 
sensor::Sensorreverse_active_energy {nullptr}
 
int32_t current_gain_calibration {0}
 
int32_t voltage_gain_calibration {0}
 
int32_t power_gain_calibration {0}
 
uint16_t phase_angle_calibration {0}
 
float forward_active_energy_total {0}
 
float reverse_active_energy_total {0}
 

Detailed Description

Definition at line 31 of file ade7880.h.

Member Function Documentation

◆ set_active_power()

void esphome::ade7880::PowerChannel::set_active_power ( sensor::Sensor sens)
inline

Definition at line 34 of file ade7880.h.

◆ set_apparent_power()

void esphome::ade7880::PowerChannel::set_apparent_power ( sensor::Sensor sens)
inline

Definition at line 35 of file ade7880.h.

◆ set_current()

void esphome::ade7880::PowerChannel::set_current ( sensor::Sensor sens)
inline

Definition at line 32 of file ade7880.h.

◆ set_current_gain_calibration()

void esphome::ade7880::PowerChannel::set_current_gain_calibration ( int32_t  val)
inline

Definition at line 40 of file ade7880.h.

◆ set_forward_active_energy()

void esphome::ade7880::PowerChannel::set_forward_active_energy ( sensor::Sensor sens)
inline

Definition at line 37 of file ade7880.h.

◆ set_phase_angle_calibration()

void esphome::ade7880::PowerChannel::set_phase_angle_calibration ( int32_t  val)
inline

Definition at line 43 of file ade7880.h.

◆ set_power_factor()

void esphome::ade7880::PowerChannel::set_power_factor ( sensor::Sensor sens)
inline

Definition at line 36 of file ade7880.h.

◆ set_power_gain_calibration()

void esphome::ade7880::PowerChannel::set_power_gain_calibration ( int32_t  val)
inline

Definition at line 42 of file ade7880.h.

◆ set_reverse_active_energy()

void esphome::ade7880::PowerChannel::set_reverse_active_energy ( sensor::Sensor sens)
inline

Definition at line 38 of file ade7880.h.

◆ set_voltage()

void esphome::ade7880::PowerChannel::set_voltage ( sensor::Sensor sens)
inline

Definition at line 33 of file ade7880.h.

◆ set_voltage_gain_calibration()

void esphome::ade7880::PowerChannel::set_voltage_gain_calibration ( int32_t  val)
inline

Definition at line 41 of file ade7880.h.

Field Documentation

◆ active_power

sensor::Sensor* esphome::ade7880::PowerChannel::active_power {nullptr}

Definition at line 47 of file ade7880.h.

◆ apparent_power

sensor::Sensor* esphome::ade7880::PowerChannel::apparent_power {nullptr}

Definition at line 48 of file ade7880.h.

◆ current

sensor::Sensor* esphome::ade7880::PowerChannel::current {nullptr}

Definition at line 45 of file ade7880.h.

◆ current_gain_calibration

int32_t esphome::ade7880::PowerChannel::current_gain_calibration {0}

Definition at line 52 of file ade7880.h.

◆ forward_active_energy

sensor::Sensor* esphome::ade7880::PowerChannel::forward_active_energy {nullptr}

Definition at line 50 of file ade7880.h.

◆ forward_active_energy_total

float esphome::ade7880::PowerChannel::forward_active_energy_total {0}

Definition at line 56 of file ade7880.h.

◆ phase_angle_calibration

uint16_t esphome::ade7880::PowerChannel::phase_angle_calibration {0}

Definition at line 55 of file ade7880.h.

◆ power_factor

sensor::Sensor* esphome::ade7880::PowerChannel::power_factor {nullptr}

Definition at line 49 of file ade7880.h.

◆ power_gain_calibration

int32_t esphome::ade7880::PowerChannel::power_gain_calibration {0}

Definition at line 54 of file ade7880.h.

◆ reverse_active_energy

sensor::Sensor* esphome::ade7880::PowerChannel::reverse_active_energy {nullptr}

Definition at line 51 of file ade7880.h.

◆ reverse_active_energy_total

float esphome::ade7880::PowerChannel::reverse_active_energy_total {0}

Definition at line 57 of file ade7880.h.

◆ voltage

sensor::Sensor* esphome::ade7880::PowerChannel::voltage {nullptr}

Definition at line 46 of file ade7880.h.

◆ voltage_gain_calibration

int32_t esphome::ade7880::PowerChannel::voltage_gain_calibration {0}

Definition at line 53 of file ade7880.h.


The documentation for this struct was generated from the following file: