SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
Loading...
Searching...
No Matches
axp192_regs::factory Struct Reference

Factory-calibrated ADC conversion step sizes. More...

#include <AXP192Regs.hpp>

Static Public Attributes

static constexpr float ACIN_VOLTAGE_STEP = 1.7f
 ACIN voltage/current steps: 1.7 mV/0.625 mA per LSB.
 
static constexpr float ACIN_CURRENT_STEP = 0.625f
 ACIN current step: 0.625 mA per LSB.
 
static constexpr float TS_VOLTAGE_STEP = 0.8f
 TS voltage step: 0.8 mV per LSB.
 
static constexpr float VBUS_VOLTAGE_STEP = 1.7f
 VBUS voltage step: 1.7 mV per LSB.
 
static constexpr float VBUS_CURRENT_STEP = 0.375f
 VBUS current step: 0.375 mA per LSB.
 
static constexpr float BAT_VOLTAGE_STEP = 1.1f
 BAT voltage step: 1.1 mV per LSB.
 
static constexpr float BAT_CHARGE_CUR_STEP = 0.5f
 BAT charge current step: 0.5 mA per LSB.
 
static constexpr float BAT_DISCHARGE_CUR_STEP = 0.5f
 BAT discharge current step: 0.5 mA per LSB.
 
static constexpr float APS_VOLTAGE_STEP = 1.4f
 APS voltage step: 1.4 mV per LSB.
 
static constexpr float INTERNAL_TEMP_STEP = 0.1f
 Internal temperature step: 0.1 degC per LSB.
 
static constexpr float INTERNAL_TEMP_OFFSET = 144.7f
 Internal temperature offset: 144.7 degC.
 
static constexpr float FACTORY_GPIO_VOLTAGE = 0.5f
 GPIO voltage step: 0.5 V per LSB.
 

Detailed Description

Factory-calibrated ADC conversion step sizes.

These constants define the LSB weight for each ADC measurement channel. Raw ADC register values are multiplied by the corresponding step to obtain real-world voltage (mV), current (mA), or temperature (degC).

Definition at line 217 of file AXP192Regs.hpp.

Member Data Documentation

◆ ACIN_CURRENT_STEP

constexpr float axp192_regs::factory::ACIN_CURRENT_STEP = 0.625f
staticconstexpr

ACIN current step: 0.625 mA per LSB.

Definition at line 221 of file AXP192Regs.hpp.

Referenced by axp1xx::AdcTraitsBase< AXP192Core >::readChannel().

◆ ACIN_VOLTAGE_STEP

constexpr float axp192_regs::factory::ACIN_VOLTAGE_STEP = 1.7f
staticconstexpr

ACIN voltage/current steps: 1.7 mV/0.625 mA per LSB.

Definition at line 219 of file AXP192Regs.hpp.

Referenced by axp1xx::AdcTraitsBase< AXP192Core >::readChannel().

◆ APS_VOLTAGE_STEP

constexpr float axp192_regs::factory::APS_VOLTAGE_STEP = 1.4f
staticconstexpr

APS voltage step: 1.4 mV per LSB.

Definition at line 235 of file AXP192Regs.hpp.

Referenced by axp1xx::AdcTraitsBase< AXP192Core >::readChannel().

◆ BAT_CHARGE_CUR_STEP

constexpr float axp192_regs::factory::BAT_CHARGE_CUR_STEP = 0.5f
staticconstexpr

BAT charge current step: 0.5 mA per LSB.

Definition at line 231 of file AXP192Regs.hpp.

Referenced by axp1xx::AdcTraitsBase< AXP192Core >::readChannel().

◆ BAT_DISCHARGE_CUR_STEP

constexpr float axp192_regs::factory::BAT_DISCHARGE_CUR_STEP = 0.5f
staticconstexpr

BAT discharge current step: 0.5 mA per LSB.

Definition at line 233 of file AXP192Regs.hpp.

Referenced by axp1xx::AdcTraitsBase< AXP192Core >::readChannel().

◆ BAT_VOLTAGE_STEP

constexpr float axp192_regs::factory::BAT_VOLTAGE_STEP = 1.1f
staticconstexpr

BAT voltage step: 1.1 mV per LSB.

Definition at line 229 of file AXP192Regs.hpp.

Referenced by axp1xx::AdcTraitsBase< AXP192Core >::readChannel().

◆ FACTORY_GPIO_VOLTAGE

constexpr float axp192_regs::factory::FACTORY_GPIO_VOLTAGE = 0.5f
staticconstexpr

GPIO voltage step: 0.5 V per LSB.

Definition at line 241 of file AXP192Regs.hpp.

◆ INTERNAL_TEMP_OFFSET

constexpr float axp192_regs::factory::INTERNAL_TEMP_OFFSET = 144.7f
staticconstexpr

Internal temperature offset: 144.7 degC.

Definition at line 239 of file AXP192Regs.hpp.

Referenced by axp1xx::AdcTraitsBase< AXP192Core >::readChannel().

◆ INTERNAL_TEMP_STEP

constexpr float axp192_regs::factory::INTERNAL_TEMP_STEP = 0.1f
staticconstexpr

Internal temperature step: 0.1 degC per LSB.

Definition at line 237 of file AXP192Regs.hpp.

Referenced by axp1xx::AdcTraitsBase< AXP192Core >::readChannel().

◆ TS_VOLTAGE_STEP

constexpr float axp192_regs::factory::TS_VOLTAGE_STEP = 0.8f
staticconstexpr

TS voltage step: 0.8 mV per LSB.

Definition at line 223 of file AXP192Regs.hpp.

◆ VBUS_CURRENT_STEP

constexpr float axp192_regs::factory::VBUS_CURRENT_STEP = 0.375f
staticconstexpr

VBUS current step: 0.375 mA per LSB.

Definition at line 227 of file AXP192Regs.hpp.

Referenced by axp1xx::AdcTraitsBase< AXP192Core >::readChannel().

◆ VBUS_VOLTAGE_STEP

constexpr float axp192_regs::factory::VBUS_VOLTAGE_STEP = 1.7f
staticconstexpr

VBUS voltage step: 1.7 mV per LSB.

Definition at line 225 of file AXP192Regs.hpp.

Referenced by axp1xx::AdcTraitsBase< AXP192Core >::readChannel().


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