ESPHome  2024.12.2
Data Structures | Namespaces | Enumerations | Variables
ina2xx_base.h File Reference

Go to the source code of this file.

Data Structures

union  esphome::ina2xx_base::ConfigurationRegister
 
union  esphome::ina2xx_base::AdcConfigurationRegister
 
union  esphome::ina2xx_base::TempCompensationRegister
 
union  esphome::ina2xx_base::DiagnosticRegister
 
class  esphome::ina2xx_base::INA2XX
 

Namespaces

 esphome
 Implementation of SPI Controller mode.
 
 esphome::ina2xx_base
 

Enumerations

enum  esphome::ina2xx_base::RegisterMap : uint8_t {
  esphome::ina2xx_base::REG_CONFIG = 0x00, esphome::ina2xx_base::REG_ADC_CONFIG = 0x01, esphome::ina2xx_base::REG_SHUNT_CAL = 0x02, esphome::ina2xx_base::REG_SHUNT_TEMPCO = 0x03,
  esphome::ina2xx_base::REG_VSHUNT = 0x04, esphome::ina2xx_base::REG_VBUS = 0x05, esphome::ina2xx_base::REG_DIETEMP = 0x06, esphome::ina2xx_base::REG_CURRENT = 0x07,
  esphome::ina2xx_base::REG_POWER = 0x08, esphome::ina2xx_base::REG_ENERGY = 0x09, esphome::ina2xx_base::REG_CHARGE = 0x0A, esphome::ina2xx_base::REG_DIAG_ALRT = 0x0B,
  esphome::ina2xx_base::REG_SOVL = 0x0C, esphome::ina2xx_base::REG_SUVL = 0x0D, esphome::ina2xx_base::REG_BOVL = 0x0E, esphome::ina2xx_base::REG_BUVL = 0x0F,
  esphome::ina2xx_base::REG_TEMP_LIMIT = 0x10, esphome::ina2xx_base::REG_PWR_LIMIT = 0x11, esphome::ina2xx_base::REG_MANUFACTURER_ID = 0x3E, esphome::ina2xx_base::REG_DEVICE_ID = 0x3F
}
 
enum  esphome::ina2xx_base::AdcRange : uint16_t { esphome::ina2xx_base::ADC_RANGE_0 = 0, esphome::ina2xx_base::ADC_RANGE_1 = 1 }
 
enum  esphome::ina2xx_base::AdcTime : uint16_t {
  esphome::ina2xx_base::ADC_TIME_50US = 0, esphome::ina2xx_base::ADC_TIME_84US = 1, esphome::ina2xx_base::ADC_TIME_150US = 2, esphome::ina2xx_base::ADC_TIME_280US = 3,
  esphome::ina2xx_base::ADC_TIME_540US = 4, esphome::ina2xx_base::ADC_TIME_1052US = 5, esphome::ina2xx_base::ADC_TIME_2074US = 6, esphome::ina2xx_base::ADC_TIME_4120US = 7
}
 
enum  esphome::ina2xx_base::AdcAvgSamples : uint16_t {
  esphome::ina2xx_base::ADC_AVG_SAMPLES_1 = 0, esphome::ina2xx_base::ADC_AVG_SAMPLES_4 = 1, esphome::ina2xx_base::ADC_AVG_SAMPLES_16 = 2, esphome::ina2xx_base::ADC_AVG_SAMPLES_64 = 3,
  esphome::ina2xx_base::ADC_AVG_SAMPLES_128 = 4, esphome::ina2xx_base::ADC_AVG_SAMPLES_256 = 5, esphome::ina2xx_base::ADC_AVG_SAMPLES_512 = 6, esphome::ina2xx_base::ADC_AVG_SAMPLES_1024 = 7
}
 
enum  esphome::ina2xx_base::INAModel : uint8_t {
  esphome::ina2xx_base::INA_UNKNOWN = 0, esphome::ina2xx_base::INA_228, esphome::ina2xx_base::INA_229, esphome::ina2xx_base::INA_238,
  esphome::ina2xx_base::INA_239, esphome::ina2xx_base::INA_237
}
 

Variables

uint16_t reserved_0_3
 
AdcRange ADCRANGE
 
bool TEMPCOMP
 
uint16_t CONVDLY
 
bool RSTACC
 
bool RST
 
AdcAvgSamples AVG
 
AdcTime VTCT
 
AdcTime VSHCT
 
AdcTime VBUSCT
 
uint16_t MODE
 
uint16_t TEMPCO
 
uint16_t reserved
 
bool MEMSTAT
 
bool CNVRF
 
bool POL
 
bool BUSUL
 
bool BUSOL
 
bool SHNTUL
 
bool SHNTOL
 
bool TMPOL
 
bool RESERVED1
 
bool MATHOF
 
bool CHARGEOF
 
bool ENERGYOF
 
bool APOL
 
bool SLOWALERT
 
bool CNVR
 
bool ALATCH
 

Variable Documentation

◆ ADCRANGE

AdcRange ADCRANGE

Definition at line 62 of file ina2xx_base.h.

◆ ALATCH

bool ALATCH

Definition at line 107 of file ina2xx_base.h.

◆ APOL

bool APOL

Definition at line 104 of file ina2xx_base.h.

◆ AVG

AdcAvgSamples AVG

Definition at line 73 of file ina2xx_base.h.

◆ BUSOL

bool BUSOL

Definition at line 96 of file ina2xx_base.h.

◆ BUSUL

bool BUSUL

Definition at line 95 of file ina2xx_base.h.

◆ CHARGEOF

bool CHARGEOF

Definition at line 102 of file ina2xx_base.h.

◆ CNVR

bool CNVR

Definition at line 106 of file ina2xx_base.h.

◆ CNVRF

bool CNVRF

Definition at line 93 of file ina2xx_base.h.

◆ CONVDLY

uint16_t CONVDLY

Definition at line 64 of file ina2xx_base.h.

◆ ENERGYOF

bool ENERGYOF

Definition at line 103 of file ina2xx_base.h.

◆ MATHOF

bool MATHOF

Definition at line 101 of file ina2xx_base.h.

◆ MEMSTAT

bool MEMSTAT

Definition at line 92 of file ina2xx_base.h.

◆ MODE

uint16_t MODE

Definition at line 77 of file ina2xx_base.h.

◆ POL

bool POL

Definition at line 94 of file ina2xx_base.h.

◆ reserved

uint16_t reserved

Definition at line 85 of file ina2xx_base.h.

◆ RESERVED1

bool RESERVED1

Definition at line 100 of file ina2xx_base.h.

◆ reserved_0_3

uint16_t reserved_0_3

Definition at line 61 of file ina2xx_base.h.

◆ RST

bool RST

Definition at line 66 of file ina2xx_base.h.

◆ RSTACC

bool RSTACC

Definition at line 65 of file ina2xx_base.h.

◆ SHNTOL

bool SHNTOL

Definition at line 98 of file ina2xx_base.h.

◆ SHNTUL

bool SHNTUL

Definition at line 97 of file ina2xx_base.h.

◆ SLOWALERT

bool SLOWALERT

Definition at line 105 of file ina2xx_base.h.

◆ TEMPCO

uint16_t TEMPCO

Definition at line 84 of file ina2xx_base.h.

◆ TEMPCOMP

bool TEMPCOMP

Definition at line 63 of file ina2xx_base.h.

◆ TMPOL

bool TMPOL

Definition at line 99 of file ina2xx_base.h.

◆ VBUSCT

AdcTime VBUSCT

Definition at line 76 of file ina2xx_base.h.

◆ VSHCT

AdcTime VSHCT

Definition at line 75 of file ina2xx_base.h.

◆ VTCT

AdcTime VTCT

Definition at line 74 of file ina2xx_base.h.