15#ifndef PF1550_REGISTERS_HPP
16#define PF1550_REGISTERS_HPP
109inline constexpr uint8_t
kKey1 = 0x6F;
170using PorDly = detail::Field<uint8_t, 3U, 3U>;
171using TgReset = detail::Field<uint8_t, 6U, 2U>;
178using Uvdet = detail::Field<uint8_t, 0U, 2U>;
189using Eoctime = detail::Field<uint8_t, 3U, 3U>;
192using Ieoc = detail::Field<uint8_t, 4U, 3U>;
193using ChgCc = detail::Field<uint8_t, 0U, 5U>;
195using Chgcv = detail::Field<uint8_t, 0U, 6U>;
196using VsysMin = detail::Field<uint8_t, 6U, 2U>;
197using Wdtclr = detail::Field<uint8_t, 0U, 2U>;
202using ThmCnfg = detail::Field<uint8_t, 0U, 2U>;
203using Regtemp = detail::Field<uint8_t, 2U, 2U>;
219using CvAdj = detail::Field<uint8_t, 2U, 2U>;
220using CcAdj = detail::Field<uint8_t, 4U, 2U>;
225inline constexpr uint8_t
kLedEn = 1U << 7;
231using LedFreq = detail::Field<uint8_t, 0U, 2U>;
370 if (info.address == address) {
385 found = found || (info.address == address);
constexpr uint8_t kUsbPhyLdo
USB_PHY_LDO_CNFG.USBPHYLDO.
Definition pf1550_registers.hpp:212
detail::Field< uint8_t, 0U, 4U > CoinVcoin
COINCELL_CONTROL.VCOIN.
Definition pf1550_registers.hpp:151
constexpr uint8_t kBuckDvsSpeed
SWx_CTRL.DVSSPEED (0: 2 us, 1: 4 us).
Definition pf1550_registers.hpp:157
constexpr uint8_t kPwrCtrl0
PWRCTRL0: STANDBYDLY, STANDBYINV, POR_DLY, TGRESET.
Definition pf1550_registers.hpp:93
constexpr uint8_t kVbusLinDpm
VBUS_LIN_DPM: VBUS_DPM_REG, VIN_DPM_STOP.
Definition pf1550_registers.hpp:128
detail::Field< uint8_t, 0U, 3U > I2cSlaveAddr
I2C_ADDR.I2C_SLAVE_ADDR[2:0].
Definition pf1550_registers.hpp:184
detail::Field< uint8_t, 4U, 2U > SysWkupDly
DBNC_DELAY_TIME.SYS_WKUP_DLY.
Definition pf1550_registers.hpp:214
constexpr uint8_t kOnkeyRstEn
PWRCTRL1.ONKEY_RST_EN.
Definition pf1550_registers.hpp:177
detail::Field< uint8_t, 2U, 2U > OnkeyDbnc
PWRCTRL1.ONKEYDBNC.
Definition pf1550_registers.hpp:173
constexpr uint8_t kSw3Volt
SW3_VOLT (run), read only.
Definition pf1550_registers.hpp:76
constexpr uint8_t kKey1
KEY1 (bitmap; not exposed).
Definition pf1550_registers.hpp:109
detail::Field< uint8_t, 0U, 3U > DeviceIdLow
DEVICE_ID[2:0] = 100.
Definition pf1550_registers.hpp:149
constexpr uint8_t kLedRamp
LED_PWM.LED_RAMP.
Definition pf1550_registers.hpp:224
constexpr uint8_t kLdo1Volt
LDO1_VOLT.
Definition pf1550_registers.hpp:83
constexpr bool IsWritable(uint8_t address) noexcept
Whether any driver call may write a register: false for ReadOnly, Never and undocumented addresses.
Definition pf1550_registers.hpp:396
constexpr uint8_t kSwIntStat2
SW_INT_STAT2: SW1 and SW2 DVS done.
Definition pf1550_registers.hpp:46
detail::Field< uint8_t, 6U, 2U > VsysMin
BATT_REG.VSYSMIN.
Definition pf1550_registers.hpp:196
constexpr uint8_t kDeviceIdValue
Identity values (Tables 86 to 88).
Definition pf1550_registers.hpp:141
constexpr uint8_t kVrefddrCtrl
VREFDDR_CTRL.
Definition pf1550_registers.hpp:82
constexpr uint8_t kThmsusBfetEn
... on thermistor fault.
Definition pf1550_registers.hpp:228
detail::Field< uint8_t, 0U, 2U > StandbyDly
PWRCTRL0.STANDBYDLY.
Definition pf1550_registers.hpp:168
constexpr uint8_t kSwIntSense0
SW_INT_SENSE0.
Definition pf1550_registers.hpp:42
constexpr uint8_t kSw2Ctrl
SW2_CTRL.
Definition pf1550_registers.hpp:74
constexpr uint8_t kWdfltBfetEn
... on watchdog fault.
Definition pf1550_registers.hpp:227
constexpr uint8_t kSwIntMask2
SW_INT_MASK2.
Definition pf1550_registers.hpp:47
constexpr uint8_t kLdo3PwrdnSeq
LDO3_PWRDN_SEQ[2:0].
Definition pf1550_registers.hpp:102
constexpr uint8_t kCtrlStbyEn
xxx_CTRL.STBY_EN.
Definition pf1550_registers.hpp:154
constexpr uint8_t kBattReg
BATT_REG: CHGCV, VSYSMIN.
Definition pf1550_registers.hpp:124
detail::Field< uint8_t, 6U, 2U > TgReset
PWRCTRL0.TGRESET.
Definition pf1550_registers.hpp:171
detail::Field< uint8_t, 0U, 6U > LedPwmDuty
LED_PWM.LED_PWM.
Definition pf1550_registers.hpp:223
detail::Field< uint8_t, 0U, 4U > BuckVolt4
SW3 voltage code.
Definition pf1550_registers.hpp:164
detail::Field< uint8_t, 3U, 5U > VbusLinIlim
VBUS_INLIM_CNFG.VBUS_LIN_ILIM.
Definition pf1550_registers.hpp:207
constexpr uint8_t kChgEocCnfg
CHG_EOC_CNFG: CHG_RESTART, IEOC.
Definition pf1550_registers.hpp:122
constexpr uint8_t kChgOper
CHG_OPER: mode, WDTEN, DISBATFET.
Definition pf1550_registers.hpp:120
constexpr uint8_t kLedCfg
LED_CNFG.LED_CFG.
Definition pf1550_registers.hpp:235
constexpr uint8_t kPwrCtrl1
PWRCTRL1: debounce, reset paths, REGSCPEN.
Definition pf1550_registers.hpp:94
constexpr uint8_t kLedEn
LED_PWM.LED_EN.
Definition pf1550_registers.hpp:225
constexpr uint8_t kVbusInlimCnfg
VBUS_INLIM_CNFG: VBUS_LIN_ILIM.
Definition pf1550_registers.hpp:127
constexpr uint8_t kGapProbe
An address in the gap between the PMIC and the charger pages: documented nowhere.
Definition pf1550_registers.hpp:407
constexpr uint8_t kThmHot
THM_REG_CNFG.THM_HOT (1: 55 C).
Definition pf1550_registers.hpp:205
constexpr uint8_t kChgSnsThm
CHG_SNS.THM_SNS.
Definition pf1550_registers.hpp:239
constexpr uint8_t kTempIntMask0
TEMP_INT_MASK0.
Definition pf1550_registers.hpp:53
detail::Field< uint8_t, 0U, 4U > Ldo4Volt
LDO2 voltage code.
Definition pf1550_registers.hpp:166
constexpr uint8_t kChgIntCnfg
CHG_INT_CNFG.
Definition pf1550_registers.hpp:131
constexpr uint8_t kVrefddrPwrdnSeq
VREFDDR_PWRDN_SEQ[2:0].
Definition pf1550_registers.hpp:103
detail::Field< uint8_t, 3U, 3U > Eoctime
CHG_TMR.EOCTIME.
Definition pf1550_registers.hpp:189
constexpr uint8_t kThmWarm
THM_ADJ_SETTING.THM_WARM (1: 50 C).
Definition pf1550_registers.hpp:217
constexpr uint8_t kCoinChen
COINCELL_CONTROL.COINCHEN.
Definition pf1550_registers.hpp:152
constexpr uint8_t kLedOvrd
LED_CNFG.LEDOVRD.
Definition pf1550_registers.hpp:236
detail::Field< uint8_t, 0U, 6U > BuckVolt6
SW1/SW2 voltage code.
Definition pf1550_registers.hpp:163
constexpr uint8_t kFaultBatfetCnfg
FAULT_BATFET_CNFG: BATFET policy per fault.
Definition pf1550_registers.hpp:135
constexpr uint8_t kTmrfltBfetEn
... on timer fault.
Definition pf1550_registers.hpp:230
constexpr uint8_t kSw1Volt
SW1_VOLT (run).
Definition pf1550_registers.hpp:66
constexpr uint8_t kLedPwm
LED_PWM: duty, ramp, enable.
Definition pf1550_registers.hpp:134
constexpr uint8_t kSw1Ctrl1
SW1_CTRL1 (the data sheet titles it SW1_SLP_VOLT).
Definition pf1550_registers.hpp:70
constexpr uint8_t kCtrlLpwr
xxx_CTRL.LPWR.
Definition pf1550_registers.hpp:156
detail::Field< uint8_t, 0U, 5U > Ldo5Volt
LDO1/LDO3 voltage code.
Definition pf1550_registers.hpp:165
constexpr uint8_t kMiscIntStat0
MISC_INT_STAT0: power-up/down, PWRON, VSYS.
Definition pf1550_registers.hpp:58
constexpr std::array< RegisterInfo, 90 > kRegisters
Every documented register with its access class (matrix rows REG-xx).
Definition pf1550_registers.hpp:269
constexpr uint8_t kLdo2PwrdnSeq
LDO2_PWRDN_SEQ[2:0].
Definition pf1550_registers.hpp:101
constexpr uint8_t kChgIntMask
CHG_INT_MASK (reset: all masked).
Definition pf1550_registers.hpp:115
constexpr uint8_t kTprechg
CHG_TMR.TPRECHG (0: 30 min, 1: 45 min).
Definition pf1550_registers.hpp:190
constexpr uint8_t kThmRegCnfg
THM_REG_CNFG: THM_CNFG, REGTEMP, cold, hot.
Definition pf1550_registers.hpp:126
detail::Field< uint8_t, 4U, 3U > Ieoc
CHG_EOC_CNFG.IEOC.
Definition pf1550_registers.hpp:192
constexpr uint8_t kSw2Volt
SW2_VOLT (run).
Definition pf1550_registers.hpp:71
constexpr uint8_t kIoDrv1
IO_DRV1 (bitmap only, not exposed).
Definition pf1550_registers.hpp:107
constexpr uint8_t kI2cAddr
I2C_ADDR: I2C_SLAVE_ADDR[2:0] (R), USE_DEFAULT_ADDR.
Definition pf1550_registers.hpp:105
constexpr uint8_t kLdo1Ctrl
LDO1_CTRL.
Definition pf1550_registers.hpp:84
detail::Field< uint8_t, 0U, 2U > Uvdet
PWRCTRL2.UVDET.
Definition pf1550_registers.hpp:178
constexpr uint8_t kRestartEn
PWRCTRL1.RESTARTEN.
Definition pf1550_registers.hpp:175
constexpr uint8_t kMiscIntSense0
MISC_INT_SENSE0.
Definition pf1550_registers.hpp:60
constexpr uint8_t kTempIntStat0
TEMP_INT_STAT0: die temperature 110 and 125 C.
Definition pf1550_registers.hpp:52
constexpr uint8_t kBatfetCnfg
BATFET_CNFG: WDTCLR, BATFET_OC, WD_TIME, ...
Definition pf1550_registers.hpp:125
constexpr uint8_t kBattSnsOc
BATT_SNS.BATTOC_SNS.
Definition pf1550_registers.hpp:242
constexpr uint8_t kLedCnfg
LED_CNFG.
Definition pf1550_registers.hpp:136
detail::Field< uint8_t, 0U, 3U > VbusDpmReg
VBUS_LIN_DPM.VBUS_DPM_REG.
Definition pf1550_registers.hpp:208
constexpr uint8_t kChgIntOk
CHG_INT_OK (R): live state of the sources.
Definition pf1550_registers.hpp:116
detail::Field< uint8_t, 0U, 2U > LedFreq
LED_CNFG.LED_FREQ.
Definition pf1550_registers.hpp:231
detail::Field< uint8_t, 2U, 2U > Regtemp
THM_REG_CNFG.REGTEMP.
Definition pf1550_registers.hpp:203
constexpr uint8_t kCtrlEn
xxx_CTRL.EN (run).
Definition pf1550_registers.hpp:153
constexpr uint8_t kVbusSns
VBUS_SNS (R).
Definition pf1550_registers.hpp:117
constexpr uint8_t kChgCurrCnfg
CHG_CURR_CNFG: CHG_CC, PRECHGLB_THRS.
Definition pf1550_registers.hpp:123
detail::Field< uint8_t, 4U, 2U > BatfetOc
BATFET_CNFG.BATFET_OC.
Definition pf1550_registers.hpp:199
constexpr uint8_t kBuckFpwmInDvs
SWx_CTRL.FPWM_IN_DVS.
Definition pf1550_registers.hpp:158
constexpr uint8_t kSwIntSense1
SW_INT_SENSE1.
Definition pf1550_registers.hpp:45
constexpr uint8_t kChgIntGen
CHG_INT_CNFG.CHG_INT_GEN.
Definition pf1550_registers.hpp:215
detail::Field< uint8_t, 0U, 3U > Fchgtime
CHG_TMR.FCHGTIME.
Definition pf1550_registers.hpp:188
constexpr uint8_t kLdo2Ctrl
LDO2_CTRL.
Definition pf1550_registers.hpp:86
constexpr uint8_t kSwIntSense2
SW_INT_SENSE2.
Definition pf1550_registers.hpp:48
detail::Field< uint8_t, 0U, 2U > Vbus2SysTdb
VBUS2SYS_CNFG.VBUS2SYS_TDB.
Definition pf1550_registers.hpp:221
constexpr uint8_t kOtpFlavor
OTP_FLAVOR (R): the start-up option.
Definition pf1550_registers.hpp:36
constexpr uint8_t kLdoIntMask0
LDO_INT_MASK0.
Definition pf1550_registers.hpp:50
constexpr uint8_t kThmCool
THM_ADJ_SETTING.THM_COOL (1: 10 C).
Definition pf1550_registers.hpp:218
constexpr uint8_t kOvfltBfetEn
FAULT_BATFET_CNFG: BATFET stays closed on OV.
Definition pf1550_registers.hpp:226
constexpr uint8_t kSwIntStat0
SW_INT_STAT0: SWx low-side current limit.
Definition pf1550_registers.hpp:40
constexpr uint8_t kEocInt
CHG_INT_CNFG.EOC_INT.
Definition pf1550_registers.hpp:216
constexpr uint8_t kLedCurrent6mA
LED_CNFG.LED_CURRENT = 01 (6 mA), the only non-reserved code (Table 172), in place.
Definition pf1550_registers.hpp:234
constexpr uint8_t kChgSnsWdt
CHG_SNS.WDT_SNS.
Definition pf1550_registers.hpp:238
constexpr uint8_t kBattSns
BATT_SNS (R).
Definition pf1550_registers.hpp:119
constexpr uint8_t kMiscIntMask0
MISC_INT_MASK0.
Definition pf1550_registers.hpp:59
constexpr uint8_t kLastPmicRegister
Highest address of the PMIC page.
Definition pf1550_registers.hpp:143
detail::Field< uint8_t, 0U, 6U > Chgcv
BATT_REG.CHGCV.
Definition pf1550_registers.hpp:195
detail::Field< uint8_t, 2U, 2U > LowSysWarn
PWRCTRL2.LOW_SYS_WARN.
Definition pf1550_registers.hpp:179
constexpr uint8_t kTempFbEn
THM_REG_CNFG.TEMP_FB_EN.
Definition pf1550_registers.hpp:206
constexpr uint8_t kVbusIn2Sys
VBUS_SNS.VBUS_IN2SYS_SNS.
Definition pf1550_registers.hpp:244
constexpr uint8_t kLdo3Volt
LDO3_VOLT.
Definition pf1550_registers.hpp:87
constexpr uint8_t kSw3Ctrl
SW3_CTRL.
Definition pf1550_registers.hpp:79
constexpr uint8_t kVsnvsLibgdis
VSNVS_CTRL.LIBGDIS.
Definition pf1550_registers.hpp:167
constexpr uint8_t kPwrCtrl2
PWRCTRL2: UVDET, LOW_SYS_WARN.
Definition pf1550_registers.hpp:95
constexpr uint8_t kVbusDpm
VBUS_SNS.VBUS_DPM_SNS.
Definition pf1550_registers.hpp:247
constexpr uint8_t kChgInt
CHG_INT: charger interrupt status.
Definition pf1550_registers.hpp:114
constexpr uint8_t kLdoIntStat0
LDO_INT_STAT0: LDOx current-limit faults.
Definition pf1550_registers.hpp:49
detail::Field< uint8_t, 3U, 3U > PorDly
PWRCTRL0.POR_DLY (OTP loaded).
Definition pf1550_registers.hpp:170
Access
Access class of a register: what the driver is allowed to do with it.
Definition pf1550_registers.hpp:251
constexpr uint8_t kVsnvsCtrl
VSNVS_CTRL.
Definition pf1550_registers.hpp:81
constexpr uint8_t kBuckFpwm
SWx_CTRL.FPWM.
Definition pf1550_registers.hpp:159
constexpr uint8_t kVbus2SysThrsh
VBUS2SYS_CNFG.VBUS2SYS_THRSH (1: 175 mV).
Definition pf1550_registers.hpp:222
detail::Field< uint8_t, 0U, 2U > ThmCnfg
THM_REG_CNFG.THM_CNFG.
Definition pf1550_registers.hpp:202
detail::Field< uint8_t, 2U, 2U > CvAdj
THM_ADJ_SETTING.CV_ADJ.
Definition pf1550_registers.hpp:219
constexpr uint8_t kChgTmr
CHG_TMR: FCHGTIME, EOCTIME, TPRECHG.
Definition pf1550_registers.hpp:121
constexpr uint8_t kActDisPhy
USB_PHY_LDO_CNFG.ACTDISPHY.
Definition pf1550_registers.hpp:210
constexpr uint8_t kChgOperWdten
CHG_OPER.WDTEN.
Definition pf1550_registers.hpp:186
constexpr uint8_t kOnkeyIntStat0
ONKEY_INT_STAT0: push and 1, 2, 3, 4, 8 s.
Definition pf1550_registers.hpp:55
constexpr uint8_t kVbus2SysCnfg
VBUS2SYS_CNFG.
Definition pf1550_registers.hpp:133
constexpr uint8_t kGotoCoreOff
PWRCTRL3.GOTO_CORE_OFF.
Definition pf1550_registers.hpp:181
constexpr uint8_t kSw3StbyVolt
SW3_STBY_VOLT, read only.
Definition pf1550_registers.hpp:77
constexpr uint8_t kIntCategory
INT_CATEGORY (R): which group has a pending event.
Definition pf1550_registers.hpp:38
detail::Field< uint8_t, 0U, 4U > ChgSnsState
CHG_SNS.CHG_SNS.
Definition pf1550_registers.hpp:237
constexpr uint8_t kUsbPhy49
USB_PHY_LDO_CNFG.USBPHY (1: 4.9 V).
Definition pf1550_registers.hpp:211
constexpr uint8_t kChgSns
CHG_SNS (R): state, WDT_SNS, THM_SNS, TREG_SNS.
Definition pf1550_registers.hpp:118
detail::Field< uint8_t, 0U, 2U > PwronDbnc
PWRCTRL1.PWRONDBNC.
Definition pf1550_registers.hpp:172
constexpr uint8_t kDbncDelayTime
DBNC_DELAY_TIME.
Definition pf1550_registers.hpp:130
constexpr uint8_t kThmCold
THM_REG_CNFG.THM_COLD (1: -10 C).
Definition pf1550_registers.hpp:204
detail::Field< uint8_t, 0U, 2U > BuckIlim
SWx_CTRL1.ILIM.
Definition pf1550_registers.hpp:162
constexpr uint8_t kVbusUvlo
VBUS_SNS.VBUS_UVLO_SNS.
Definition pf1550_registers.hpp:243
detail::Field< uint8_t, 0U, 2U > ChgOperMode
CHG_OPER.CHG_OPER.
Definition pf1550_registers.hpp:185
constexpr uint8_t kSw1Ctrl
SW1_CTRL.
Definition pf1550_registers.hpp:69
constexpr uint8_t kThmAdjSetting
THM_ADJ_SETTING: warm, cool, CV_ADJ, CC_ADJ.
Definition pf1550_registers.hpp:132
detail::Field< uint8_t, 0U, 3U > PwrdnSeq
xxx_PWRDN_SEQ[2:0].
Definition pf1550_registers.hpp:182
constexpr uint8_t kCtrlOmode
xxx_CTRL.OMODE (enabled in SLEEP).
Definition pf1550_registers.hpp:155
constexpr uint8_t kVbusValid
VBUS_SNS.VBUS_VALID.
Definition pf1550_registers.hpp:246
constexpr uint8_t kGotoShip
PWRCTRL3.GOTO_SHIP.
Definition pf1550_registers.hpp:180
constexpr Access AccessOf(uint8_t address) noexcept
The access class of a register.
Definition pf1550_registers.hpp:368
constexpr uint8_t kSwIntStat1
SW_INT_STAT1: SWx high-side current limit.
Definition pf1550_registers.hpp:43
constexpr uint8_t kOnkeyIntMask0
ONKEY_INT_MASK0.
Definition pf1550_registers.hpp:56
constexpr uint8_t kLdoIntSense0
LDO_INT_SENSE0.
Definition pf1550_registers.hpp:51
constexpr uint8_t kUsbPhyLdoCnfg
USB_PHY_LDO_CNFG.
Definition pf1550_registers.hpp:129
constexpr uint8_t kStandbyInv
PWRCTRL0.STANDBYINV.
Definition pf1550_registers.hpp:169
constexpr uint8_t kSwIntMask1
SW_INT_MASK1.
Definition pf1550_registers.hpp:44
constexpr uint8_t kTempIntSense0
TEMP_INT_SENSE0.
Definition pf1550_registers.hpp:54
constexpr uint8_t kLdo1PwrdnSeq
LDO1_PWRDN_SEQ[2:0].
Definition pf1550_registers.hpp:100
constexpr uint8_t kIoDrv0
IO_DRV0 (bitmap only, not exposed).
Definition pf1550_registers.hpp:106
detail::Field< uint8_t, 2U, 2U > LedCurrent
Definition pf1550_registers.hpp:232
detail::Field< uint8_t, 0U, 6U > StateInfo
STATE_INFO.STATE.
Definition pf1550_registers.hpp:183
constexpr uint8_t kVinDpmStop
VBUS_LIN_DPM.VIN_DPM_STOP (1: 250 mV).
Definition pf1550_registers.hpp:209
constexpr uint8_t kStateInfo
STATE_INFO (R).
Definition pf1550_registers.hpp:104
detail::Field< uint8_t, 0U, 3U > BattSnsState
BATT_SNS.BATT_SNS.
Definition pf1550_registers.hpp:241
constexpr uint8_t kOnkeyIntSense0
ONKEY_INT_SENSE0.
Definition pf1550_registers.hpp:57
detail::Field< uint8_t, 4U, 2U > CcAdj
THM_ADJ_SETTING.CC_ADJ.
Definition pf1550_registers.hpp:220
detail::Field< uint8_t, 5U, 2U > PrechgLbThrs
CHG_CURR_CNFG.PRECHGLB_THRS.
Definition pf1550_registers.hpp:194
constexpr uint8_t kSw3SlpVolt
SW3_SLP_VOLT, read only.
Definition pf1550_registers.hpp:78
constexpr uint8_t kPwrCtrl3
PWRCTRL3: GOTO_SHIP, GOTO_CORE_OFF.
Definition pf1550_registers.hpp:96
constexpr uint8_t kSw2StbyVolt
SW2_STBY_VOLT.
Definition pf1550_registers.hpp:72
constexpr uint8_t kBovrcNovbus
BATFET_CNFG.BOVRC_NOVBUS.
Definition pf1550_registers.hpp:201
constexpr uint8_t kBovrcDisbatfet
BATFET_CNFG.BOVRC_DISBATFET.
Definition pf1550_registers.hpp:198
constexpr uint8_t kWdTime
BATFET_CNFG.WD_TIME.
Definition pf1550_registers.hpp:200
constexpr uint8_t kSw1PwrdnSeq
SW1_PWRDN_SEQ[2:0].
Definition pf1550_registers.hpp:97
constexpr uint8_t kBuckRdisEnb
SWx_CTRL.RDIS_ENB (1: no discharge resistor).
Definition pf1550_registers.hpp:160
constexpr uint8_t kChgOperDisbatfet
CHG_OPER.DISBATFET.
Definition pf1550_registers.hpp:187
constexpr uint8_t kSiliconRev
SILICON_REV (R).
Definition pf1550_registers.hpp:37
constexpr uint8_t kSw3PwrdnSeq
SW3_PWRDN_SEQ[2:0] (Table 141 prints SW2).
Definition pf1550_registers.hpp:99
constexpr uint8_t kSw3Ctrl1
SW3_CTRL1.
Definition pf1550_registers.hpp:80
constexpr uint8_t kSw2SlpVolt
SW2_SLP_VOLT.
Definition pf1550_registers.hpp:73
constexpr uint8_t kSw1SlpVolt
SW1_SLP_VOLT.
Definition pf1550_registers.hpp:68
constexpr bool IsDocumented(uint8_t address) noexcept
Whether the data sheet documents a register at this address.
Definition pf1550_registers.hpp:382
constexpr uint8_t kSwIntMask0
SW_INT_MASK0.
Definition pf1550_registers.hpp:41
constexpr uint8_t kRegScpEn
PWRCTRL1.REGSCPEN.
Definition pf1550_registers.hpp:176
constexpr uint8_t kPwronRstEn
PWRCTRL1.PWRONRSTEN.
Definition pf1550_registers.hpp:174
constexpr uint8_t kSw1StbyVolt
SW1_STBY_VOLT.
Definition pf1550_registers.hpp:67
constexpr uint8_t kSw2PwrdnSeq
SW2_PWRDN_SEQ[2:0].
Definition pf1550_registers.hpp:98
constexpr uint8_t kChgrKey2
CHGR_KEY2 (Reserved; not exposed).
Definition pf1550_registers.hpp:137
detail::Field< uint8_t, 0U, 2U > VbusOvTdb
DBNC_DELAY_TIME.VBUS_OV_TDB.
Definition pf1550_registers.hpp:213
constexpr uint8_t kVbusOvlo
VBUS_SNS.VBUS_OVLO_SNS.
Definition pf1550_registers.hpp:245
constexpr uint8_t kLdo2Volt
LDO2_VOLT.
Definition pf1550_registers.hpp:85
constexpr uint8_t kChgSnsTreg
CHG_SNS.TREG_SNS.
Definition pf1550_registers.hpp:240
detail::Field< uint8_t, 0U, 2U > ChgRestart
CHG_EOC_CNFG.CHG_RESTART.
Definition pf1550_registers.hpp:191
constexpr uint8_t kLastChargerRegister
Highest address of the charger page.
Definition pf1550_registers.hpp:145
constexpr uint8_t kLdo3Ctrl
LDO3_CTRL.
Definition pf1550_registers.hpp:88
constexpr uint8_t kDeviceId
DEVICE_ID (R): 0x7C.
Definition pf1550_registers.hpp:35
detail::Field< uint8_t, 0U, 5U > ChgCc
CHG_CURR_CNFG.CHG_CC.
Definition pf1550_registers.hpp:193
detail::Field< uint8_t, 0U, 2U > Wdtclr
BATFET_CNFG.WDTCLR.
Definition pf1550_registers.hpp:197
constexpr uint8_t kRc16Mhz
RC_16MHZ (not exposed).
Definition pf1550_registers.hpp:108
constexpr uint8_t kCoinCellControl
COINCELL_CONTROL: VCOIN[3:0], COINCHEN.
Definition pf1550_registers.hpp:65
constexpr uint8_t kTshdnBfetEn
... on thermal shutdown.
Definition pf1550_registers.hpp:229
constexpr uint8_t kSw2Ctrl1
SW2_CTRL1.
Definition pf1550_registers.hpp:75
detail::Field< uint8_t, 3U, 5U > DeviceIdFamily
DEVICE_ID[7:3] = 01111.
Definition pf1550_registers.hpp:150
constexpr uint8_t kLdoLsEn
LDOx_CTRL.LS_EN (load switch, one way).
Definition pf1550_registers.hpp:161
@ ReadOnly
Identity, state, SENSE, OK and SNS registers: never written.
@ OtpCfg
Loaded from OTP at start-up, then read/write: typed setter with read-back.
@ Mask
Interrupt mask: read-modify-write of defined bits.
@ Cfg
Ordinary configuration: typed setter with read-back.
@ Never
Documented, but no call writes it (reserved, keys, SW3 voltages, evaluation bits).
@ Status
Interrupt status (write 1 clears reported bits only): written by the service only.
The PF1550 register map.
Definition pf1550_registers.hpp:25
Compile-time helpers of the PF1550 driver: typed integer literals, exact hook matching,...
One row of the access table.
Definition pf1550_registers.hpp:263
uint8_t address
Absolute register address.
Definition pf1550_registers.hpp:264
Access access
What the driver may do.
Definition pf1550_registers.hpp:265