14#ifndef PF1550_PLAN_HPP
15#define PF1550_PLAN_HPP
28namespace pf1550::detail {
42constexpr RegWrite MakeWrite(uint8_t reg, uint8_t mask, uint8_t value)
noexcept {
43 return RegWrite{.reg = reg, .mask = mask, .value = value};
56inline constexpr std::array<RailRegs, kRailCount> kRailRegs = {{
75 {.volt = 0, .stby_volt = 0, .slp_volt = 0, .ctrl =
reg::kVrefddrCtrl, .ctrl1 = 0},
79inline constexpr std::array<uint8_t, kRailCount> kPwrdnSeqRegs = {
84constexpr const RailRegs& RegsOf(
Rail rail)
noexcept {
85 return kRailRegs[
static_cast<std::size_t
>(ToUnderlying(rail)) %
kRailCount];
89constexpr uint8_t BitIf(
bool flag, uint8_t bit)
noexcept {
90 return flag ? bit :
static_cast<uint8_t
>(0U);
94constexpr uint8_t Or(uint8_t a, uint8_t b)
noexcept {
95 return static_cast<uint8_t
>(
static_cast<uint32_t
>(a) |
static_cast<uint32_t
>(b));
99inline constexpr uint8_t kModeMask =
105constexpr uint8_t SelfChangingBits(uint8_t address)
noexcept {
107 return reg::ChgOperMode::kMask;
110 return reg::Wdtclr::kMask;
112 for (
const RailRegs& r : kRailRegs) {
113 if ((r.ctrl == address) && (address != 0U)) {
131constexpr uint8_t PartialResetBits(uint8_t address)
noexcept {
136constexpr bool IsMaskRegister(uint8_t address)
noexcept {
139 found = found || (m == address);
145constexpr uint8_t ModeBits(
const RailModes& modes)
noexcept {
151template <Enumeration E>
152constexpr uint32_t CodeOf(E e)
noexcept {
153 return static_cast<uint32_t
>(ToUnderlying(e));
157constexpr uint32_t DebounceCode(
Debounce d)
noexcept {
162constexpr uint32_t ShortDebounceCode(
ShortDebounce d)
noexcept {
163 return CodeOf(d) + 1U;
167constexpr RegWrite BuckCtrlWrite(
Rail rail,
const BuckConfig& b)
noexcept {
168 const bool dvs_rail = (rail !=
Rail::Sw3);
170 uint8_t value = Or(ModeBits(b.modes), Or(BitIf(b.fpwm,
reg::kBuckFpwm),
175 mask =
static_cast<uint8_t
>(
static_cast<uint32_t
>(mask) &
177 value =
static_cast<uint8_t
>(
static_cast<uint32_t
>(value) &
static_cast<uint32_t
>(mask));
183 return MakeWrite(RegsOf(rail).ctrl, mask, value);
187constexpr RegWrite BuckVoltWrite(uint8_t address, Microvolts uv)
noexcept {
188 if (uv.value == 0U) {
191 const Result<uint8_t> code =
BuckDvsCode(uv.value);
192 return MakeWrite(address, reg::BuckVolt6::kMask,
static_cast<uint8_t
>(code.value));
196constexpr std::array<RegWrite, 5> BuckPlan(
Rail rail,
const BuckConfig& b)
noexcept {
197 const RailRegs& r = RegsOf(rail);
200 {volts ? BuckVoltWrite(r.volt, b.run_uv) : RegWrite{},
201 volts ? BuckVoltWrite(r.stby_volt, b.standby_uv) : RegWrite{},
202 volts ? BuckVoltWrite(r.slp_volt, b.sleep_uv) : RegWrite{}, BuckCtrlWrite(rail, b),
203 MakeWrite(r.ctrl1, reg::
BuckIlim::kMask, static_cast<uint8_t>(CodeOf(b.current_limit)))}};
208constexpr std::array<RegWrite, 2> LdoPlan(
Rail rail,
const LdoConfig& l)
noexcept {
209 const RailRegs& r = RegsOf(rail);
211 if (l.volt.value != 0U) {
212 const uint8_t mask = (rail ==
Rail::Ldo2) ? reg::Ldo4Volt::kMask : reg::
Ldo5Volt::kMask;
213 volt = MakeWrite(r.volt, mask,
LdoCode(rail, l.volt.value).value);
215 return {{volt, MakeWrite(r.ctrl, kModeMask, ModeBits(l.modes))}};
219constexpr RegWrite VrefDdrPlan(
const VrefDdrConfig& v)
noexcept {
224constexpr std::array<RegWrite, 5> PeripheralPlan(
const Config& c)
noexcept {
239 if (c.usbphy.apply) {
242 Or(BitIf(c.usbphy.voltage == UsbPhyVoltage::V4p9,
reg::kUsbPhy49),
246 const LedConfig& l = c.led;
248 Or(
static_cast<uint8_t
>(l.duty_32nds),
253 Or(
static_cast<uint8_t
>(CodeOf(l.frequency)),
257 return {{vsnvs, coin, phy, led_pwm, led_cfg}};
261constexpr std::array<RegWrite, 3> PowerPlan(
const PowerConfig& p)
noexcept {
267 uint8_t m0 = p.write_standby ? Or(reg::StandbyDly::kMask,
reg::kStandbyInv) : 0_u8;
268 uint8_t v0 = p.write_standby ? Or(
static_cast<uint8_t
>(CodeOf(p.standby_delay)),
271 uint8_t m1 = p.write_debounce ? Or(reg::PwronDbnc::kMask, reg::OnkeyDbnc::kMask) : 0_u8;
272 uint8_t v1 = p.write_debounce ? Or(
static_cast<uint8_t
>(DebounceCode(p.pwron_debounce)),
273 static_cast<uint8_t
>(DebounceCode(p.onkey_debounce) << 2))
275 if (p.write_regscp) {
279 uint8_t m2 = p.write_low_sys_warn ? reg::LowSysWarn::kMask : 0_u8;
280 auto v2 = p.write_low_sys_warn ?
static_cast<uint8_t
>(CodeOf(p.low_sys_warn) << 2) : 0_u8;
281 if (p.write_reset_paths) {
282 m0 = Or(m0, reg::TgReset::kMask);
283 v0 = Or(v0,
static_cast<uint8_t
>(CodeOf(p.global_reset) << 6));
290 m2 = Or(m2, reg::Uvdet::kMask);
291 v2 = Or(v2,
static_cast<uint8_t
>(CodeOf(p.uvdet)));
298constexpr std::array<RegWrite, kRailCount> PowerDownPlan(
const PowerDownSequence& s)
noexcept {
299 std::array<RegWrite, kRailCount> plan{};
300 for (std::size_t i = 0U; i <
kRailCount; ++i) {
302 MakeWrite(kPwrdnSeqRegs[i], reg::PwrdnSeq::kMask,
303 static_cast<uint8_t
>(
static_cast<uint32_t
>(s.order[i]) & reg::PwrdnSeq::kMask));
310constexpr std::array<RegWrite, 12> ChargerPlan(
const ChargerConfig& c)
noexcept {
311 const BatfetConfig& b = c.batfet;
316 const uint8_t tmr = Or(
static_cast<uint8_t
>(CodeOf(c.fast_timer)),
317 Or(
static_cast<uint8_t
>(CodeOf(c.eoc_timer) << 3),
319 const uint8_t tmr_mask = Or(reg::Fchgtime::kMask, Or(reg::Eoctime::kMask,
reg::kTprechg));
320 const uint8_t fet_mask =
322 const uint8_t fet = Or(
static_cast<uint8_t
>(CodeOf(b.oc_threshold) << 4),
326 const uint8_t thm_mask =
327 Or(reg::ThmCnfg::kMask,
329 const uint8_t thm = Or(
static_cast<uint8_t
>(CodeOf(c.thermistor)),
330 Or(
static_cast<uint8_t
>(CodeOf(c.thermal_reg) << 2),
334 const uint8_t adj_mask =
336 const uint8_t adj = Or(Or(BitIf(c.jeita.warm == Warm::C50,
reg::kThmWarm),
338 Or(
static_cast<uint8_t
>(CodeOf(c.jeita.cv_adjust) << 2),
339 static_cast<uint8_t
>(CodeOf(c.jeita.cc_adjust) << 4)));
340 const VbusOptions& v = c.vbus;
344 Or(
static_cast<uint8_t
>(CodeOf(c.restart)),
static_cast<uint8_t
>(ieoc << 4U))),
346 MakeWrite(
reg::kBattReg, Or(reg::Chgcv::kMask, reg::VsysMin::kMask),
347 Or(cv,
static_cast<uint8_t
>(CodeOf(c.vsys_min) << 6))),
351 Or(
static_cast<uint8_t
>(CodeOf(v.dpm)),
354 Or(
static_cast<uint8_t
>(ShortDebounceCode(v.ovlo_debounce)),
355 static_cast<uint8_t
>(CodeOf(v.sys_wakeup_delay) << 4))),
362 Or(
static_cast<uint8_t
>(ShortDebounceCode(v.vbus2sys_debounce)),
368constexpr std::array<RegWrite, 2> ChargerTailPlan(
const ChargerConfig& c)
noexcept {
369 const FaultPolicy& f = c.batfet.fault_policy;
370 const uint8_t flt = Or(Or(BitIf(f.keep_closed_on_overvoltage,
reg::kOvfltBfetEn),
375 const uint8_t flt_mask =
constexpr Result< uint8_t > LdoCode(Rail rail, uint32_t uv) noexcept
LDO voltage code.
Definition pf1550_codec.hpp:206
constexpr Result< uint8_t > CoinVoltageCode(uint32_t mv) noexcept
VCOIN code for a coin cell charge voltage (1.8 V + 100 mV x code, ambiguity C40).
Definition pf1550_codec.hpp:247
constexpr Result< uint8_t > ChargeCurrentCode(uint32_t ma) noexcept
CHG_CC code for a charge current.
Definition pf1550_codec.hpp:87
constexpr Result< uint8_t > ChargeVoltageCode(uint32_t mv) noexcept
CHGCV code for a charge voltage.
Definition pf1550_codec.hpp:59
constexpr Result< uint8_t > BuckDvsCode(uint32_t uv) noexcept
DVS-mode buck code for a voltage (SW1, SW2: 0.6 V + 12.5 mV x code).
Definition pf1550_codec.hpp:165
constexpr Result< uint8_t > InputLimitCode(uint32_t ma) noexcept
VBUS_LIN_ILIM code for an input current limit.
Definition pf1550_codec.hpp:139
constexpr Result< uint8_t > TerminationCode(uint32_t ma) noexcept
IEOC code for a termination current.
Definition pf1550_codec.hpp:111
constexpr std::array< uint8_t, kIrqGroups > kIrqMaskRegs
The mask register of each group.
Definition pf1550_irq.hpp:57
constexpr uint8_t kUsbPhyLdo
USB_PHY_LDO_CNFG.USBPHYLDO.
Definition pf1550_registers.hpp:212
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
constexpr uint8_t kOnkeyRstEn
PWRCTRL1.ONKEY_RST_EN.
Definition pf1550_registers.hpp:177
constexpr uint8_t kSw3Volt
SW3_VOLT (run), read only.
Definition pf1550_registers.hpp:76
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 uint8_t kVrefddrCtrl
VREFDDR_CTRL.
Definition pf1550_registers.hpp:82
constexpr uint8_t kThmsusBfetEn
... on thermistor fault.
Definition pf1550_registers.hpp:228
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 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
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 kThmHot
THM_REG_CNFG.THM_HOT (1: 55 C).
Definition pf1550_registers.hpp:205
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
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
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 kLdo2PwrdnSeq
LDO2_PWRDN_SEQ[2:0].
Definition pf1550_registers.hpp:101
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
constexpr uint8_t kSw2Volt
SW2_VOLT (run).
Definition pf1550_registers.hpp:71
constexpr uint8_t kLdo1Ctrl
LDO1_CTRL.
Definition pf1550_registers.hpp:84
constexpr uint8_t kRestartEn
PWRCTRL1.RESTARTEN.
Definition pf1550_registers.hpp:175
constexpr uint8_t kBatfetCnfg
BATFET_CNFG: WDTCLR, BATFET_OC, WD_TIME, ...
Definition pf1550_registers.hpp:125
constexpr uint8_t kLedCnfg
LED_CNFG.
Definition pf1550_registers.hpp:136
constexpr uint8_t kCtrlEn
xxx_CTRL.EN (run).
Definition pf1550_registers.hpp:153
constexpr uint8_t kChgCurrCnfg
CHG_CURR_CNFG: CHG_CC, PRECHGLB_THRS.
Definition pf1550_registers.hpp:123
constexpr uint8_t kBuckFpwmInDvs
SWx_CTRL.FPWM_IN_DVS.
Definition pf1550_registers.hpp:158
constexpr uint8_t kChgIntGen
CHG_INT_CNFG.CHG_INT_GEN.
Definition pf1550_registers.hpp:215
constexpr uint8_t kLdo2Ctrl
LDO2_CTRL.
Definition pf1550_registers.hpp:86
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 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 kTempFbEn
THM_REG_CNFG.TEMP_FB_EN.
Definition pf1550_registers.hpp:206
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 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
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 kVbus2SysCnfg
VBUS2SYS_CNFG.
Definition pf1550_registers.hpp:133
constexpr uint8_t kSw3StbyVolt
SW3_STBY_VOLT, read only.
Definition pf1550_registers.hpp:77
constexpr uint8_t kUsbPhy49
USB_PHY_LDO_CNFG.USBPHY (1: 4.9 V).
Definition pf1550_registers.hpp:211
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 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
constexpr uint8_t kCtrlOmode
xxx_CTRL.OMODE (enabled in SLEEP).
Definition pf1550_registers.hpp:155
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 kLdo1PwrdnSeq
LDO1_PWRDN_SEQ[2:0].
Definition pf1550_registers.hpp:100
constexpr uint8_t kVinDpmStop
VBUS_LIN_DPM.VIN_DPM_STOP (1: 250 mV).
Definition pf1550_registers.hpp:209
constexpr uint8_t kSw3SlpVolt
SW3_SLP_VOLT, read only.
Definition pf1550_registers.hpp:78
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 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 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 kLdo2Volt
LDO2_VOLT.
Definition pf1550_registers.hpp:85
constexpr uint8_t kLdo3Ctrl
LDO3_CTRL.
Definition pf1550_registers.hpp:88
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
Debounce
Button debounce (PWRONDBNC, ONKEYDBNC; codes 00 and 01 are equal, ambiguity C41).
Definition pf1550_types.hpp:420
constexpr std::size_t kRailCount
Number of rails.
Definition pf1550_types.hpp:259
ShortDebounce
Short debounce times (VBUS_OV_TDB, VBUS2SYS_TDB; code 0 is reserved and not offered).
Definition pf1550_types.hpp:392
Rail
The power rails the driver configures.
Definition pf1550_types.hpp:249
@ Ms31
31.25 ms falling, 31.25 ms rising (register code 0).
@ FlashWhileCharging
Flashing while charging, on on a fault, off when done.
@ Enabled
DVS: voltage is 0.6 V + 12.5 mV x code.
@ Sw3
Buck 3, 1.0 A, voltage read only.
Register codecs of the PF1550: voltage and current grids of the data sheet tables,...
PF1550 configuration: the application's Limits, its explicit acknowledgements, the typed configuratio...
Compile-time helpers of the PF1550 driver: typed integer literals, exact hook matching,...
Interrupt map of the PF1550: which register and bit holds each source, and helpers over the events Se...
PF1550 register map: addresses, bit fields, reset values and the access table (datasheet section 12).
Public types of the PF1550 driver: errors, Result<T>, enumerations, units, status and interrupt types...