ESPHome  2024.11.0
Data Structures | Enumerations
esphome::ina2xx_base Namespace Reference

Data Structures

union  AdcConfigurationRegister
 
union  ConfigurationRegister
 
union  DiagnosticRegister
 
class  INA2XX
 
union  TempCompensationRegister
 

Enumerations

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

Enumeration Type Documentation

◆ AdcAvgSamples

Enumerator
ADC_AVG_SAMPLES_1 
ADC_AVG_SAMPLES_4 
ADC_AVG_SAMPLES_16 
ADC_AVG_SAMPLES_64 
ADC_AVG_SAMPLES_128 
ADC_AVG_SAMPLES_256 
ADC_AVG_SAMPLES_512 
ADC_AVG_SAMPLES_1024 

Definition at line 48 of file ina2xx_base.h.

◆ AdcRange

Enumerator
ADC_RANGE_0 
ADC_RANGE_1 

Definition at line 32 of file ina2xx_base.h.

◆ AdcTime

Enumerator
ADC_TIME_50US 
ADC_TIME_84US 
ADC_TIME_150US 
ADC_TIME_280US 
ADC_TIME_540US 
ADC_TIME_1052US 
ADC_TIME_2074US 
ADC_TIME_4120US 

Definition at line 37 of file ina2xx_base.h.

◆ INAModel

Enumerator
INA_UNKNOWN 
INA_228 
INA_229 
INA_238 
INA_239 
INA_237 

Definition at line 112 of file ina2xx_base.h.

◆ RegisterMap

Enumerator
REG_CONFIG 
REG_ADC_CONFIG 
REG_SHUNT_CAL 
REG_SHUNT_TEMPCO 
REG_VSHUNT 
REG_VBUS 
REG_DIETEMP 
REG_CURRENT 
REG_POWER 
REG_ENERGY 
REG_CHARGE 
REG_DIAG_ALRT 
REG_SOVL 
REG_SUVL 
REG_BOVL 
REG_BUVL 
REG_TEMP_LIMIT 
REG_PWR_LIMIT 
REG_MANUFACTURER_ID 
REG_DEVICE_ID 

Definition at line 9 of file ina2xx_base.h.