PF1550 Driver 0.1.0
API reference
Loading...
Searching...
No Matches
Classes | Enumerations | Functions | Variables
Register map

Addresses, fields, reset values and the access table. More...

Classes

struct  pf1550::reg::RegisterInfo
 One row of the access table. More...
 

Enumerations

enum class  pf1550::reg::Access : uint8_t {
  pf1550::reg::Access::ReadOnly , pf1550::reg::Access::Status , pf1550::reg::Access::Mask , pf1550::reg::Access::OtpCfg ,
  pf1550::reg::Access::Cfg , pf1550::reg::Access::Command , pf1550::reg::Access::Never
}
 Access class of a register: what the driver is allowed to do with it. More...
 

Functions

constexpr Access pf1550::reg::AccessOf (uint8_t address) noexcept
 The access class of a register.
 
constexpr bool pf1550::reg::IsDocumented (uint8_t address) noexcept
 Whether the data sheet documents a register at this address.
 
constexpr bool pf1550::reg::IsWritable (uint8_t address) noexcept
 Whether any driver call may write a register: false for ReadOnly, Never and undocumented addresses.
 

Variables

constexpr uint8_t pf1550::reg::kDeviceIdValue = 0x7C
 Identity values (Tables 86 to 88).
 
constexpr uint8_t pf1550::reg::kLastPmicRegister = 0x6F
 Highest address of the PMIC page.
 
constexpr uint8_t pf1550::reg::kLastChargerRegister = 0x9F
 Highest address of the charger page.
 
constexpr std::array< RegisterInfo, 90 > pf1550::reg::kRegisters
 Every documented register with its access class (matrix rows REG-xx).
 
constexpr uint8_t pf1550::reg::kGapProbe = 0x7F
 An address in the gap between the PMIC and the charger pages: documented nowhere.
 

Bit fields (all shifts and widths from the register tables)

using pf1550::reg::DeviceIdLow = detail::Field< uint8_t, 0U, 3U >
 DEVICE_ID[2:0] = 100.
 
using pf1550::reg::DeviceIdFamily = detail::Field< uint8_t, 3U, 5U >
 DEVICE_ID[7:3] = 01111.
 
using pf1550::reg::CoinVcoin = detail::Field< uint8_t, 0U, 4U >
 COINCELL_CONTROL.VCOIN.
 
using pf1550::reg::BuckIlim = detail::Field< uint8_t, 0U, 2U >
 SWx_CTRL1.ILIM.
 
using pf1550::reg::BuckVolt6 = detail::Field< uint8_t, 0U, 6U >
 SW1/SW2 voltage code.
 
using pf1550::reg::BuckVolt4 = detail::Field< uint8_t, 0U, 4U >
 SW3 voltage code.
 
using pf1550::reg::Ldo5Volt = detail::Field< uint8_t, 0U, 5U >
 LDO1/LDO3 voltage code.
 
using pf1550::reg::Ldo4Volt = detail::Field< uint8_t, 0U, 4U >
 LDO2 voltage code.
 
using pf1550::reg::StandbyDly = detail::Field< uint8_t, 0U, 2U >
 PWRCTRL0.STANDBYDLY.
 
using pf1550::reg::PorDly = detail::Field< uint8_t, 3U, 3U >
 PWRCTRL0.POR_DLY (OTP loaded).
 
using pf1550::reg::TgReset = detail::Field< uint8_t, 6U, 2U >
 PWRCTRL0.TGRESET.
 
using pf1550::reg::PwronDbnc = detail::Field< uint8_t, 0U, 2U >
 PWRCTRL1.PWRONDBNC.
 
using pf1550::reg::OnkeyDbnc = detail::Field< uint8_t, 2U, 2U >
 PWRCTRL1.ONKEYDBNC.
 
using pf1550::reg::Uvdet = detail::Field< uint8_t, 0U, 2U >
 PWRCTRL2.UVDET.
 
using pf1550::reg::LowSysWarn = detail::Field< uint8_t, 2U, 2U >
 PWRCTRL2.LOW_SYS_WARN.
 
using pf1550::reg::PwrdnSeq = detail::Field< uint8_t, 0U, 3U >
 xxx_PWRDN_SEQ[2:0].
 
using pf1550::reg::StateInfo = detail::Field< uint8_t, 0U, 6U >
 STATE_INFO.STATE.
 
using pf1550::reg::I2cSlaveAddr = detail::Field< uint8_t, 0U, 3U >
 I2C_ADDR.I2C_SLAVE_ADDR[2:0].
 
using pf1550::reg::ChgOperMode = detail::Field< uint8_t, 0U, 2U >
 CHG_OPER.CHG_OPER.
 
using pf1550::reg::Fchgtime = detail::Field< uint8_t, 0U, 3U >
 CHG_TMR.FCHGTIME.
 
using pf1550::reg::Eoctime = detail::Field< uint8_t, 3U, 3U >
 CHG_TMR.EOCTIME.
 
using pf1550::reg::ChgRestart = detail::Field< uint8_t, 0U, 2U >
 CHG_EOC_CNFG.CHG_RESTART.
 
using pf1550::reg::Ieoc = detail::Field< uint8_t, 4U, 3U >
 CHG_EOC_CNFG.IEOC.
 
using pf1550::reg::ChgCc = detail::Field< uint8_t, 0U, 5U >
 CHG_CURR_CNFG.CHG_CC.
 
using pf1550::reg::PrechgLbThrs = detail::Field< uint8_t, 5U, 2U >
 CHG_CURR_CNFG.PRECHGLB_THRS.
 
using pf1550::reg::Chgcv = detail::Field< uint8_t, 0U, 6U >
 BATT_REG.CHGCV.
 
using pf1550::reg::VsysMin = detail::Field< uint8_t, 6U, 2U >
 BATT_REG.VSYSMIN.
 
using pf1550::reg::Wdtclr = detail::Field< uint8_t, 0U, 2U >
 BATFET_CNFG.WDTCLR.
 
using pf1550::reg::BatfetOc = detail::Field< uint8_t, 4U, 2U >
 BATFET_CNFG.BATFET_OC.
 
using pf1550::reg::ThmCnfg = detail::Field< uint8_t, 0U, 2U >
 THM_REG_CNFG.THM_CNFG.
 
using pf1550::reg::Regtemp = detail::Field< uint8_t, 2U, 2U >
 THM_REG_CNFG.REGTEMP.
 
using pf1550::reg::VbusLinIlim = detail::Field< uint8_t, 3U, 5U >
 VBUS_INLIM_CNFG.VBUS_LIN_ILIM.
 
using pf1550::reg::VbusDpmReg = detail::Field< uint8_t, 0U, 3U >
 VBUS_LIN_DPM.VBUS_DPM_REG.
 
using pf1550::reg::VbusOvTdb = detail::Field< uint8_t, 0U, 2U >
 DBNC_DELAY_TIME.VBUS_OV_TDB.
 
using pf1550::reg::SysWkupDly = detail::Field< uint8_t, 4U, 2U >
 DBNC_DELAY_TIME.SYS_WKUP_DLY.
 
using pf1550::reg::CvAdj = detail::Field< uint8_t, 2U, 2U >
 THM_ADJ_SETTING.CV_ADJ.
 
using pf1550::reg::CcAdj = detail::Field< uint8_t, 4U, 2U >
 THM_ADJ_SETTING.CC_ADJ.
 
using pf1550::reg::Vbus2SysTdb = detail::Field< uint8_t, 0U, 2U >
 VBUS2SYS_CNFG.VBUS2SYS_TDB.
 
using pf1550::reg::LedPwmDuty = detail::Field< uint8_t, 0U, 6U >
 LED_PWM.LED_PWM.
 
using pf1550::reg::LedFreq = detail::Field< uint8_t, 0U, 2U >
 LED_CNFG.LED_FREQ.
 
using pf1550::reg::LedCurrent = detail::Field< uint8_t, 2U, 2U >
 
using pf1550::reg::ChgSnsState = detail::Field< uint8_t, 0U, 4U >
 CHG_SNS.CHG_SNS.
 
using pf1550::reg::BattSnsState = detail::Field< uint8_t, 0U, 3U >
 BATT_SNS.BATT_SNS.
 
constexpr uint8_t pf1550::reg::kCoinChen = 1U << 4
 COINCELL_CONTROL.COINCHEN.
 
constexpr uint8_t pf1550::reg::kCtrlEn = 1U << 0
 xxx_CTRL.EN (run).
 
constexpr uint8_t pf1550::reg::kCtrlStbyEn = 1U << 1
 xxx_CTRL.STBY_EN.
 
constexpr uint8_t pf1550::reg::kCtrlOmode = 1U << 2
 xxx_CTRL.OMODE (enabled in SLEEP).
 
constexpr uint8_t pf1550::reg::kCtrlLpwr = 1U << 3
 xxx_CTRL.LPWR.
 
constexpr uint8_t pf1550::reg::kBuckDvsSpeed = 1U << 4
 SWx_CTRL.DVSSPEED (0: 2 us, 1: 4 us).
 
constexpr uint8_t pf1550::reg::kBuckFpwmInDvs = 1U << 5
 SWx_CTRL.FPWM_IN_DVS.
 
constexpr uint8_t pf1550::reg::kBuckFpwm = 1U << 6
 SWx_CTRL.FPWM.
 
constexpr uint8_t pf1550::reg::kBuckRdisEnb = 1U << 7
 SWx_CTRL.RDIS_ENB (1: no discharge resistor).
 
constexpr uint8_t pf1550::reg::kLdoLsEn = 1U << 4
 LDOx_CTRL.LS_EN (load switch, one way).
 
constexpr uint8_t pf1550::reg::kVsnvsLibgdis = 1U << 5
 VSNVS_CTRL.LIBGDIS.
 
constexpr uint8_t pf1550::reg::kStandbyInv = 1U << 2
 PWRCTRL0.STANDBYINV.
 
constexpr uint8_t pf1550::reg::kPwronRstEn = 1U << 4
 PWRCTRL1.PWRONRSTEN.
 
constexpr uint8_t pf1550::reg::kRestartEn = 1U << 5
 PWRCTRL1.RESTARTEN.
 
constexpr uint8_t pf1550::reg::kRegScpEn = 1U << 6
 PWRCTRL1.REGSCPEN.
 
constexpr uint8_t pf1550::reg::kOnkeyRstEn = 1U << 7
 PWRCTRL1.ONKEY_RST_EN.
 
constexpr uint8_t pf1550::reg::kGotoShip = 1U << 0
 PWRCTRL3.GOTO_SHIP.
 
constexpr uint8_t pf1550::reg::kGotoCoreOff = 1U << 1
 PWRCTRL3.GOTO_CORE_OFF.
 
constexpr uint8_t pf1550::reg::kChgOperWdten = 1U << 3
 CHG_OPER.WDTEN.
 
constexpr uint8_t pf1550::reg::kChgOperDisbatfet = 1U << 4
 CHG_OPER.DISBATFET.
 
constexpr uint8_t pf1550::reg::kTprechg = 1U << 7
 CHG_TMR.TPRECHG (0: 30 min, 1: 45 min).
 
constexpr uint8_t pf1550::reg::kBovrcDisbatfet = 1U << 3
 BATFET_CNFG.BOVRC_DISBATFET.
 
constexpr uint8_t pf1550::reg::kWdTime = 1U << 6
 BATFET_CNFG.WD_TIME.
 
constexpr uint8_t pf1550::reg::kBovrcNovbus = 1U << 7
 BATFET_CNFG.BOVRC_NOVBUS.
 
constexpr uint8_t pf1550::reg::kThmCold = 1U << 4
 THM_REG_CNFG.THM_COLD (1: -10 C).
 
constexpr uint8_t pf1550::reg::kThmHot = 1U << 5
 THM_REG_CNFG.THM_HOT (1: 55 C).
 
constexpr uint8_t pf1550::reg::kTempFbEn = 1U << 7
 THM_REG_CNFG.TEMP_FB_EN.
 
constexpr uint8_t pf1550::reg::kVinDpmStop = 1U << 5
 VBUS_LIN_DPM.VIN_DPM_STOP (1: 250 mV).
 
constexpr uint8_t pf1550::reg::kActDisPhy = 1U << 0
 USB_PHY_LDO_CNFG.ACTDISPHY.
 
constexpr uint8_t pf1550::reg::kUsbPhy49 = 1U << 1
 USB_PHY_LDO_CNFG.USBPHY (1: 4.9 V).
 
constexpr uint8_t pf1550::reg::kUsbPhyLdo = 1U << 2
 USB_PHY_LDO_CNFG.USBPHYLDO.
 
constexpr uint8_t pf1550::reg::kChgIntGen = 1U << 0
 CHG_INT_CNFG.CHG_INT_GEN.
 
constexpr uint8_t pf1550::reg::kEocInt = 1U << 1
 CHG_INT_CNFG.EOC_INT.
 
constexpr uint8_t pf1550::reg::kThmWarm = 1U << 0
 THM_ADJ_SETTING.THM_WARM (1: 50 C).
 
constexpr uint8_t pf1550::reg::kThmCool = 1U << 1
 THM_ADJ_SETTING.THM_COOL (1: 10 C).
 
constexpr uint8_t pf1550::reg::kVbus2SysThrsh = 1U << 2
 VBUS2SYS_CNFG.VBUS2SYS_THRSH (1: 175 mV).
 
constexpr uint8_t pf1550::reg::kLedRamp = 1U << 6
 LED_PWM.LED_RAMP.
 
constexpr uint8_t pf1550::reg::kLedEn = 1U << 7
 LED_PWM.LED_EN.
 
constexpr uint8_t pf1550::reg::kOvfltBfetEn = 1U << 0
 FAULT_BATFET_CNFG: BATFET stays closed on OV.
 
constexpr uint8_t pf1550::reg::kWdfltBfetEn = 1U << 1
 ... on watchdog fault.
 
constexpr uint8_t pf1550::reg::kThmsusBfetEn = 1U << 2
 ... on thermistor fault.
 
constexpr uint8_t pf1550::reg::kTshdnBfetEn = 1U << 3
 ... on thermal shutdown.
 
constexpr uint8_t pf1550::reg::kTmrfltBfetEn = 1U << 4
 ... on timer fault.
 
constexpr uint8_t pf1550::reg::kLedCurrent6mA = 1U << 2
 LED_CNFG.LED_CURRENT = 01 (6 mA), the only non-reserved code (Table 172), in place.
 
constexpr uint8_t pf1550::reg::kLedCfg = 1U << 4
 LED_CNFG.LED_CFG.
 
constexpr uint8_t pf1550::reg::kLedOvrd = 1U << 5
 LED_CNFG.LEDOVRD.
 
constexpr uint8_t pf1550::reg::kChgSnsWdt = 1U << 5
 CHG_SNS.WDT_SNS.
 
constexpr uint8_t pf1550::reg::kChgSnsThm = 1U << 6
 CHG_SNS.THM_SNS.
 
constexpr uint8_t pf1550::reg::kChgSnsTreg = 1U << 7
 CHG_SNS.TREG_SNS.
 
constexpr uint8_t pf1550::reg::kBattSnsOc = 1U << 5
 BATT_SNS.BATTOC_SNS.
 
constexpr uint8_t pf1550::reg::kVbusUvlo = 1U << 2
 VBUS_SNS.VBUS_UVLO_SNS.
 
constexpr uint8_t pf1550::reg::kVbusIn2Sys = 1U << 3
 VBUS_SNS.VBUS_IN2SYS_SNS.
 
constexpr uint8_t pf1550::reg::kVbusOvlo = 1U << 4
 VBUS_SNS.VBUS_OVLO_SNS.
 
constexpr uint8_t pf1550::reg::kVbusValid = 1U << 5
 VBUS_SNS.VBUS_VALID.
 
constexpr uint8_t pf1550::reg::kVbusDpm = 1U << 7
 VBUS_SNS.VBUS_DPM_SNS.
 

PMIC page: identity and interrupts (Tables 86 to 110)

constexpr uint8_t pf1550::reg::kDeviceId = 0x00
 DEVICE_ID (R): 0x7C.
 
constexpr uint8_t pf1550::reg::kOtpFlavor = 0x01
 OTP_FLAVOR (R): the start-up option.
 
constexpr uint8_t pf1550::reg::kSiliconRev = 0x02
 SILICON_REV (R).
 
constexpr uint8_t pf1550::reg::kIntCategory
 INT_CATEGORY (R): which group has a pending event.
 
constexpr uint8_t pf1550::reg::kSwIntStat0 = 0x08
 SW_INT_STAT0: SWx low-side current limit.
 
constexpr uint8_t pf1550::reg::kSwIntMask0 = 0x09
 SW_INT_MASK0.
 
constexpr uint8_t pf1550::reg::kSwIntSense0 = 0x0A
 SW_INT_SENSE0.
 
constexpr uint8_t pf1550::reg::kSwIntStat1 = 0x0B
 SW_INT_STAT1: SWx high-side current limit.
 
constexpr uint8_t pf1550::reg::kSwIntMask1 = 0x0C
 SW_INT_MASK1.
 
constexpr uint8_t pf1550::reg::kSwIntSense1 = 0x0D
 SW_INT_SENSE1.
 
constexpr uint8_t pf1550::reg::kSwIntStat2 = 0x0E
 SW_INT_STAT2: SW1 and SW2 DVS done.
 
constexpr uint8_t pf1550::reg::kSwIntMask2 = 0x0F
 SW_INT_MASK2.
 
constexpr uint8_t pf1550::reg::kSwIntSense2 = 0x10
 SW_INT_SENSE2.
 
constexpr uint8_t pf1550::reg::kLdoIntStat0 = 0x18
 LDO_INT_STAT0: LDOx current-limit faults.
 
constexpr uint8_t pf1550::reg::kLdoIntMask0 = 0x19
 LDO_INT_MASK0.
 
constexpr uint8_t pf1550::reg::kLdoIntSense0 = 0x1A
 LDO_INT_SENSE0.
 
constexpr uint8_t pf1550::reg::kTempIntStat0 = 0x20
 TEMP_INT_STAT0: die temperature 110 and 125 C.
 
constexpr uint8_t pf1550::reg::kTempIntMask0 = 0x21
 TEMP_INT_MASK0.
 
constexpr uint8_t pf1550::reg::kTempIntSense0 = 0x22
 TEMP_INT_SENSE0.
 
constexpr uint8_t pf1550::reg::kOnkeyIntStat0 = 0x24
 ONKEY_INT_STAT0: push and 1, 2, 3, 4, 8 s.
 
constexpr uint8_t pf1550::reg::kOnkeyIntMask0 = 0x25
 ONKEY_INT_MASK0.
 
constexpr uint8_t pf1550::reg::kOnkeyIntSense0 = 0x26
 ONKEY_INT_SENSE0.
 
constexpr uint8_t pf1550::reg::kMiscIntStat0 = 0x28
 MISC_INT_STAT0: power-up/down, PWRON, VSYS.
 
constexpr uint8_t pf1550::reg::kMiscIntMask0 = 0x29
 MISC_INT_MASK0.
 
constexpr uint8_t pf1550::reg::kMiscIntSense0 = 0x2A
 MISC_INT_SENSE0.
 

PMIC page: supplies (Tables 111 to 134)

constexpr uint8_t pf1550::reg::kCoinCellControl = 0x30
 COINCELL_CONTROL: VCOIN[3:0], COINCHEN.
 
constexpr uint8_t pf1550::reg::kSw1Volt = 0x32
 SW1_VOLT (run).
 
constexpr uint8_t pf1550::reg::kSw1StbyVolt = 0x33
 SW1_STBY_VOLT.
 
constexpr uint8_t pf1550::reg::kSw1SlpVolt = 0x34
 SW1_SLP_VOLT.
 
constexpr uint8_t pf1550::reg::kSw1Ctrl = 0x35
 SW1_CTRL.
 
constexpr uint8_t pf1550::reg::kSw1Ctrl1 = 0x36
 SW1_CTRL1 (the data sheet titles it SW1_SLP_VOLT).
 
constexpr uint8_t pf1550::reg::kSw2Volt = 0x38
 SW2_VOLT (run).
 
constexpr uint8_t pf1550::reg::kSw2StbyVolt = 0x39
 SW2_STBY_VOLT.
 
constexpr uint8_t pf1550::reg::kSw2SlpVolt = 0x3A
 SW2_SLP_VOLT.
 
constexpr uint8_t pf1550::reg::kSw2Ctrl = 0x3B
 SW2_CTRL.
 
constexpr uint8_t pf1550::reg::kSw2Ctrl1 = 0x3C
 SW2_CTRL1.
 
constexpr uint8_t pf1550::reg::kSw3Volt = 0x3E
 SW3_VOLT (run), read only.
 
constexpr uint8_t pf1550::reg::kSw3StbyVolt = 0x3F
 SW3_STBY_VOLT, read only.
 
constexpr uint8_t pf1550::reg::kSw3SlpVolt = 0x40
 SW3_SLP_VOLT, read only.
 
constexpr uint8_t pf1550::reg::kSw3Ctrl = 0x41
 SW3_CTRL.
 
constexpr uint8_t pf1550::reg::kSw3Ctrl1 = 0x42
 SW3_CTRL1.
 
constexpr uint8_t pf1550::reg::kVsnvsCtrl = 0x48
 VSNVS_CTRL.
 
constexpr uint8_t pf1550::reg::kVrefddrCtrl = 0x4A
 VREFDDR_CTRL.
 
constexpr uint8_t pf1550::reg::kLdo1Volt = 0x4C
 LDO1_VOLT.
 
constexpr uint8_t pf1550::reg::kLdo1Ctrl = 0x4D
 LDO1_CTRL.
 
constexpr uint8_t pf1550::reg::kLdo2Volt = 0x4F
 LDO2_VOLT.
 
constexpr uint8_t pf1550::reg::kLdo2Ctrl = 0x50
 LDO2_CTRL.
 
constexpr uint8_t pf1550::reg::kLdo3Volt = 0x52
 LDO3_VOLT.
 
constexpr uint8_t pf1550::reg::kLdo3Ctrl = 0x53
 LDO3_CTRL.
 

PMIC page: power control and state (Tables 135 to 149)

constexpr uint8_t pf1550::reg::kPwrCtrl0 = 0x58
 PWRCTRL0: STANDBYDLY, STANDBYINV, POR_DLY, TGRESET.
 
constexpr uint8_t pf1550::reg::kPwrCtrl1 = 0x59
 PWRCTRL1: debounce, reset paths, REGSCPEN.
 
constexpr uint8_t pf1550::reg::kPwrCtrl2 = 0x5A
 PWRCTRL2: UVDET, LOW_SYS_WARN.
 
constexpr uint8_t pf1550::reg::kPwrCtrl3 = 0x5B
 PWRCTRL3: GOTO_SHIP, GOTO_CORE_OFF.
 
constexpr uint8_t pf1550::reg::kSw1PwrdnSeq = 0x5F
 SW1_PWRDN_SEQ[2:0].
 
constexpr uint8_t pf1550::reg::kSw2PwrdnSeq = 0x60
 SW2_PWRDN_SEQ[2:0].
 
constexpr uint8_t pf1550::reg::kSw3PwrdnSeq = 0x61
 SW3_PWRDN_SEQ[2:0] (Table 141 prints SW2).
 
constexpr uint8_t pf1550::reg::kLdo1PwrdnSeq = 0x62
 LDO1_PWRDN_SEQ[2:0].
 
constexpr uint8_t pf1550::reg::kLdo2PwrdnSeq = 0x63
 LDO2_PWRDN_SEQ[2:0].
 
constexpr uint8_t pf1550::reg::kLdo3PwrdnSeq = 0x64
 LDO3_PWRDN_SEQ[2:0].
 
constexpr uint8_t pf1550::reg::kVrefddrPwrdnSeq = 0x65
 VREFDDR_PWRDN_SEQ[2:0].
 
constexpr uint8_t pf1550::reg::kStateInfo = 0x67
 STATE_INFO (R).
 
constexpr uint8_t pf1550::reg::kI2cAddr = 0x68
 I2C_ADDR: I2C_SLAVE_ADDR[2:0] (R), USE_DEFAULT_ADDR.
 
constexpr uint8_t pf1550::reg::kIoDrv0 = 0x69
 IO_DRV0 (bitmap only, not exposed).
 
constexpr uint8_t pf1550::reg::kIoDrv1 = 0x6A
 IO_DRV1 (bitmap only, not exposed).
 
constexpr uint8_t pf1550::reg::kRc16Mhz = 0x6B
 RC_16MHZ (not exposed).
 
constexpr uint8_t pf1550::reg::kKey1 = 0x6F
 KEY1 (bitmap; not exposed).
 

Charger page (absolute address 0x80 + table address; Tables 150 to 173)

constexpr uint8_t pf1550::reg::kChgInt = 0x80
 CHG_INT: charger interrupt status.
 
constexpr uint8_t pf1550::reg::kChgIntMask = 0x82
 CHG_INT_MASK (reset: all masked).
 
constexpr uint8_t pf1550::reg::kChgIntOk = 0x84
 CHG_INT_OK (R): live state of the sources.
 
constexpr uint8_t pf1550::reg::kVbusSns = 0x86
 VBUS_SNS (R).
 
constexpr uint8_t pf1550::reg::kChgSns = 0x87
 CHG_SNS (R): state, WDT_SNS, THM_SNS, TREG_SNS.
 
constexpr uint8_t pf1550::reg::kBattSns = 0x88
 BATT_SNS (R).
 
constexpr uint8_t pf1550::reg::kChgOper = 0x89
 CHG_OPER: mode, WDTEN, DISBATFET.
 
constexpr uint8_t pf1550::reg::kChgTmr = 0x8A
 CHG_TMR: FCHGTIME, EOCTIME, TPRECHG.
 
constexpr uint8_t pf1550::reg::kChgEocCnfg = 0x8D
 CHG_EOC_CNFG: CHG_RESTART, IEOC.
 
constexpr uint8_t pf1550::reg::kChgCurrCnfg = 0x8E
 CHG_CURR_CNFG: CHG_CC, PRECHGLB_THRS.
 
constexpr uint8_t pf1550::reg::kBattReg = 0x8F
 BATT_REG: CHGCV, VSYSMIN.
 
constexpr uint8_t pf1550::reg::kBatfetCnfg = 0x91
 BATFET_CNFG: WDTCLR, BATFET_OC, WD_TIME, ...
 
constexpr uint8_t pf1550::reg::kThmRegCnfg = 0x92
 THM_REG_CNFG: THM_CNFG, REGTEMP, cold, hot.
 
constexpr uint8_t pf1550::reg::kVbusInlimCnfg = 0x94
 VBUS_INLIM_CNFG: VBUS_LIN_ILIM.
 
constexpr uint8_t pf1550::reg::kVbusLinDpm = 0x95
 VBUS_LIN_DPM: VBUS_DPM_REG, VIN_DPM_STOP.
 
constexpr uint8_t pf1550::reg::kUsbPhyLdoCnfg = 0x96
 USB_PHY_LDO_CNFG.
 
constexpr uint8_t pf1550::reg::kDbncDelayTime = 0x98
 DBNC_DELAY_TIME.
 
constexpr uint8_t pf1550::reg::kChgIntCnfg = 0x99
 CHG_INT_CNFG.
 
constexpr uint8_t pf1550::reg::kThmAdjSetting = 0x9A
 THM_ADJ_SETTING: warm, cool, CV_ADJ, CC_ADJ.
 
constexpr uint8_t pf1550::reg::kVbus2SysCnfg = 0x9B
 VBUS2SYS_CNFG.
 
constexpr uint8_t pf1550::reg::kLedPwm = 0x9C
 LED_PWM: duty, ramp, enable.
 
constexpr uint8_t pf1550::reg::kFaultBatfetCnfg = 0x9D
 FAULT_BATFET_CNFG: BATFET policy per fault.
 
constexpr uint8_t pf1550::reg::kLedCnfg = 0x9E
 LED_CNFG.
 
constexpr uint8_t pf1550::reg::kChgrKey2 = 0x9F
 CHGR_KEY2 (Reserved; not exposed).
 

Detailed Description

Addresses, fields, reset values and the access table.

Typedef Documentation

◆ LedCurrent

using pf1550::reg::LedCurrent = typedef detail::Field<uint8_t, 2U, 2U>

LED_CNFG.LED_CURRENT (01 = 6 mA).

Enumeration Type Documentation

◆ Access

enum class pf1550::reg::Access : uint8_t
strong

Access class of a register: what the driver is allowed to do with it.

Enumerator
ReadOnly 

Identity, state, SENSE, OK and SNS registers: never written.

Status 

Interrupt status (write 1 clears reported bits only): written by the service only.

Mask 

Interrupt mask: read-modify-write of defined bits.

OtpCfg 

Loaded from OTP at start-up, then read/write: typed setter with read-back.

Cfg 

Ordinary configuration: typed setter with read-back.

Command 

PWRCTRL3 (GOTO_SHIP, GOTO_CORE_OFF): written only by the shutdown calls; the typed setter refuses it.

Never 

Documented, but no call writes it (reserved, keys, SW3 voltages, evaluation bits).

Function Documentation

◆ AccessOf()

constexpr Access pf1550::reg::AccessOf ( uint8_t  address)
constexprnoexcept

The access class of a register.

Parameters
addressAn absolute register address.
Returns
The class, or Access::Never for an address that has no row (an undocumented register is never written).

◆ IsDocumented()

constexpr bool pf1550::reg::IsDocumented ( uint8_t  address)
constexprnoexcept

Whether the data sheet documents a register at this address.

Parameters
addressAn absolute register address.
Returns
true when kRegisters has a row for it.

◆ IsWritable()

constexpr bool pf1550::reg::IsWritable ( uint8_t  address)
constexprnoexcept

Whether any driver call may write a register: false for ReadOnly, Never and undocumented addresses.

Parameters
addressAn absolute register address.
Returns
true for the classes Status, Mask, OtpCfg, Cfg and Command.

Variable Documentation

◆ kDeviceIdValue

constexpr uint8_t pf1550::reg::kDeviceIdValue = 0x7C
inlineconstexpr

Identity values (Tables 86 to 88).

DEVICE_ID: FAMILY 01111, DEVICE_ID 100.

◆ kGapProbe

constexpr uint8_t pf1550::reg::kGapProbe = 0x7F
inlineconstexpr

An address in the gap between the PMIC and the charger pages: documented nowhere.

The charger registers on the charger page and the PMIC registers on the PMIC page agree with the table above; the table has one row per documented register.

◆ kIntCategory

constexpr uint8_t pf1550::reg::kIntCategory
inlineconstexpr
Initial value:
=
0x06

INT_CATEGORY (R): which group has a pending event.