|
PF1550 Driver 0.1.0
API reference
|
The regulator power-up and power-down sequencer of the PF1550 as pure constexpr data: the pre-programmed start-up options (Table 85), the sequencer timing (Table 84) and the power-down order (section 10.7).
More...
#include <array>#include <cstddef>#include <cstdint>#include "pf1550_detail.hpp"#include "pf1550_types.hpp"Go to the source code of this file.
Classes | |
| struct | pf1550::StartupProfile |
| The start-up behaviour of one pre-programmed option (Table 85). More... | |
Namespaces | |
| namespace | pf1550 |
The PF1550 driver: everything it declares lives here; internals in detail. | |
Functions | |
| constexpr Result< StartupProfile > | pf1550::StartupProfileOf (Option option) noexcept |
| The pre-programmed start-up sequence of an option (Table 85). | |
| constexpr uint32_t | pf1550::PowerUpDelayUs (const StartupProfile &profile, Rail rail) noexcept |
| When a rail turns on, counted from the start of the first power-up slot. | |
| constexpr uint32_t | pf1550::PowerUpDurationUs (const StartupProfile &profile) noexcept |
| How long the power-up sequencer runs: the start of the last slot used. | |
| constexpr Result< uint32_t > | pf1550::ResetReleaseDelayMs (uint32_t code) noexcept |
The delay of RESETBMCU after the last regulator, from POR_DLY[2:0] (Table 135). | |
| constexpr Result< uint32_t > | pf1550::ColdStartToResetReleaseUs (const StartupProfile &profile, uint32_t por_dly_code) noexcept |
From a cold start to RESETBMCU high, for an option and a POR_DLY code (Table 84). | |
| constexpr bool | pf1550::IsPowerDownBypassed (const PowerDownSequence &sequence) noexcept |
| Whether the power-down sequencer is bypassed: every order is 0 (section 10.7). | |
| constexpr uint32_t | pf1550::PowerDownDelayUs (const PowerDownSequence &sequence, Rail rail) noexcept |
| When a rail turns off in a power-down, counted from the start of the sequence. | |
| constexpr uint32_t | pf1550::PowerDownDurationUs (const PowerDownSequence &sequence) noexcept |
| How long the power-down sequence takes: the delay of the last rail. | |
| constexpr PowerDownSequence | pf1550::MirrorOf (const StartupProfile &profile) noexcept |
The power-down order that mirrors the power-up order of an option, as the registers hold it after reset (section 10.7: SW1_PWRDN_SEQ = OTP_SW1_PWRUP_SEQ, and so on). | |
The regulator power-up and power-down sequencer of the PF1550 as pure constexpr data: the pre-programmed start-up options (Table 85), the sequencer timing (Table 84) and the power-down order (section 10.7).
The power-up order is fixed by OTP and cannot be read back over I2C (the OTP image is not documented in the public data sheet), so the driver reports it only for the pre-programmed options A1 to A9 that Table 85 lists, selected by the OTP_FLAVOR byte that ReadVariant() returns. The power-down order is a set of read/write registers, *_PWRDN_SEQ, that the application may change in a system-on state.
Model choices where the data sheet is silent (each one has a knob in the test model):
PWRUP_SEQ = n starts (n - 1) slots after the first one, and a PWRUP_SEQ of 0 starts in the first slot (ambiguity C54);