49 static constexpr uint8_t
STATUS = 0x00;
101 if ((code & 0x02) == 0) {
104 return (code & 0x01) ? 100 : 500;
AC input measurement registers.
static constexpr uint8_t ACIN_VOL_L4
static constexpr uint8_t ACIN_CUR_L4
static constexpr uint8_t ACIN_CUR_H8
static constexpr uint8_t ACIN_VOL_H8
ADC measurement and control registers.
static constexpr uint8_t BAT_AVERCHGCUR_L5
static constexpr uint8_t GPIO2_ADC_H8
static constexpr uint8_t APS_AVERVOL_H8
static constexpr uint8_t BAT_AVERDISCHGCUR_L5
static constexpr uint8_t INTERNAL_TEMP_H8
static constexpr uint8_t VBUS_VOL_L4
static constexpr uint8_t TS_IN_H8
static constexpr uint8_t BAT_AVERCHGCUR_H8
static constexpr uint8_t GPIO0_ADC_L4
static constexpr uint8_t GPIO1_ADC_L4
static constexpr uint8_t ADC_EN2
static constexpr uint8_t TS_IN_L4
static constexpr uint8_t BAT_AVERDISCHGCUR_H8
static constexpr uint8_t ADC_SPEED
static constexpr uint8_t GPIO3_ADC_L4
static constexpr uint8_t ADC_INPUTRANGE
static constexpr uint8_t VBUS_CUR_L4
static constexpr uint8_t GPIO2_ADC_L4
static constexpr uint8_t GPIO3_ADC_H8
static constexpr uint8_t VBUS_CUR_H8
static constexpr uint8_t GPIO1_ADC_H8
static constexpr uint8_t ADC_EN1
static constexpr uint8_t APS_AVERVOL_L4
static constexpr uint8_t BAT_AVERVOL_L4
static constexpr uint8_t INTERNAL_TEMP_L4
static constexpr uint8_t BAT_AVERVOL_H8
static constexpr uint8_t GPIO0_ADC_H8
static constexpr uint8_t VBUS_VOL_H8
Battery Management Unit (BMU) registers.
static constexpr uint8_t DATA_BUFFER1
static constexpr uint8_t MODE_CHGSTATUS
static constexpr uint8_t DATA_BUFFER4
static constexpr uint8_t DATA_BUFFER3
static constexpr uint8_t OTG_STATUS
static constexpr uint8_t STATUS
static constexpr uint8_t DATA_BUFFER2
static constexpr uint8_t IC_TYPE
Charger control registers.
static constexpr uint8_t CHARGE1
static constexpr uint16_t CHG_CUR_MIN
static constexpr uint8_t CHARGE2
static constexpr uint16_t CHG_CUR_STEP
static constexpr uint16_t CHG_CUR_MAX
static constexpr uint8_t BACKUP_CHG
Factory-calibrated ADC conversion step sizes.
static constexpr float INTERNAL_TEMP_OFFSET
Internal temperature offset: 144.7 degC.
static constexpr float ACIN_VOLTAGE_STEP
ACIN voltage/current steps: 1.7 mV/0.625 mA per LSB.
static constexpr float BAT_VOLTAGE_STEP
BAT voltage step: 1.1 mV per LSB.
static constexpr float VBUS_CURRENT_STEP
VBUS current step: 0.375 mA per LSB.
static constexpr float APS_VOLTAGE_STEP
APS voltage step: 1.4 mV per LSB.
static constexpr float INTERNAL_TEMP_STEP
Internal temperature step: 0.1 degC per LSB.
static constexpr float ACIN_CURRENT_STEP
ACIN current step: 0.625 mA per LSB.
static constexpr float BAT_DISCHARGE_CUR_STEP
BAT discharge current step: 0.5 mA per LSB.
static constexpr float BAT_CHARGE_CUR_STEP
BAT charge current step: 0.5 mA per LSB.
static constexpr float VBUS_VOLTAGE_STEP
VBUS voltage step: 1.7 mV per LSB.
static constexpr float FACTORY_GPIO_VOLTAGE
GPIO voltage step: 0.5 V per LSB.
static constexpr float TS_VOLTAGE_STEP
TS voltage step: 0.8 mV per LSB.
GPIO control and signal registers.
static constexpr uint8_t GPIO1_CTL
static constexpr uint8_t PWM2_FREQ
static constexpr uint8_t GPIO012_SIGNAL
static constexpr uint8_t GPIO34_SIGNAL
static constexpr uint8_t PWM2_DUTY2
static constexpr uint8_t GPIO2_CTL
static constexpr uint8_t GPIO012_PULLDOWN
static constexpr uint8_t GPIO0_VOL
static constexpr uint8_t GPIO0_CTL
static constexpr uint8_t PWM1_FREQ
static constexpr uint8_t PWM1_DUTY2
static constexpr uint8_t PWM1_DUTY1
static constexpr uint8_t GPIO34_CTL
static constexpr uint8_t GPIO5_CTL
static constexpr uint8_t PWM2_DUTY1
Interrupt control and status registers.
static constexpr uint8_t ENABLE4
static constexpr uint8_t STATUS3
static constexpr uint8_t STATUS2
static constexpr uint8_t STATUS4
static constexpr uint8_t ENABLE1
static constexpr uint8_t STATUS1
static constexpr uint8_t ENABLE5
static constexpr uint8_t ENABLE3
static constexpr uint8_t ENABLE2
static constexpr uint8_t STATUS5
Power Management Unit (PMU) registers.
static constexpr uint8_t INPUT_CURR_MASK
static uint8_t encodeInputCurrentLimit(uint32_t mA)
static constexpr uint8_t POK_SET
static constexpr uint8_t IPS_SET
static uint32_t decodeInputCurrentLimit(uint8_t reg)
static constexpr uint8_t VOFF_SET
static constexpr uint8_t OFF_CTL
Power output channel control registers.
static constexpr uint8_t DC2_DVM
static constexpr uint8_t LDO23_DC123_EXT_CTL
static constexpr uint8_t LDO23OUT_VOL
static constexpr uint8_t DC1_VOLTAGE
static constexpr uint8_t DC3OUT_VOL
static constexpr uint8_t LDO3OUT_VOL
static constexpr uint8_t DC2OUT_VOL
static constexpr uint8_t DCDC_MODESET
static constexpr uint8_t TIMER_CTL
static constexpr uint8_t CHIP_ID