|
PF1550 Driver
API reference
|
Full diagnostic snapshot returned by PF1550::ReadDiagnosticSnapshot().
More...
#include <pf1550_diagnostics.hpp>
Public Attributes | |
| bool | read_ok {false} |
| All required I²C reads succeeded. | |
| uint8_t | device_id {0} |
Reg 0x00 — must equal 0x7C. | |
| uint8_t | silicon_rev {0} |
| Reg 0x02. | |
| uint8_t | otp_flavor {0} |
Reg 0x01 — 0x00 for A0EP. | |
| uint8_t | int_category {0} |
| Reg 0x06 — top-level interrupt summary. | |
| uint8_t | state_info_reg {0} |
| Reg 0x67 raw. | |
| PmicState | state {PmicState::Unknown} |
| Decoded STATE_INFO[5:0]. | |
| uint8_t | chg_sense_reg {0} |
| Reg 0x87 raw. | |
| ChargerState | charger {ChargerState::Unknown} |
| Decoded CHG_SNS[3:0]. | |
| uint8_t | vbus_sns_reg {0} |
| Reg 0x86. | |
| uint16_t | vbus_in_limit_ma {0} |
| Decoded VBUS input current limit (mA). | |
| FaultFlags | faults {} |
| Aggregated latched + sense conditions. | |
| RailDiagnostics | rails [static_cast< size_t >(RailId::COUNT)] {} |
Full diagnostic snapshot returned by PF1550::ReadDiagnosticSnapshot().
All fields are valid only if read_ok is true.
| ChargerState pf1550::DiagnosticSnapshot::charger {ChargerState::Unknown} |
Decoded CHG_SNS[3:0].
| uint8_t pf1550::DiagnosticSnapshot::chg_sense_reg {0} |
Reg 0x87 raw.
| uint8_t pf1550::DiagnosticSnapshot::device_id {0} |
Reg 0x00 — must equal 0x7C.
| FaultFlags pf1550::DiagnosticSnapshot::faults {} |
Aggregated latched + sense conditions.
| uint8_t pf1550::DiagnosticSnapshot::int_category {0} |
Reg 0x06 — top-level interrupt summary.
| uint8_t pf1550::DiagnosticSnapshot::otp_flavor {0} |
Reg 0x01 — 0x00 for A0EP.
| RailDiagnostics pf1550::DiagnosticSnapshot::rails[static_cast< size_t >(RailId::COUNT)] {} |
| bool pf1550::DiagnosticSnapshot::read_ok {false} |
All required I²C reads succeeded.
| uint8_t pf1550::DiagnosticSnapshot::silicon_rev {0} |
Reg 0x02.
| PmicState pf1550::DiagnosticSnapshot::state {PmicState::Unknown} |
Decoded STATE_INFO[5:0].
| uint8_t pf1550::DiagnosticSnapshot::state_info_reg {0} |
Reg 0x67 raw.
| uint16_t pf1550::DiagnosticSnapshot::vbus_in_limit_ma {0} |
Decoded VBUS input current limit (mA).
| uint8_t pf1550::DiagnosticSnapshot::vbus_sns_reg {0} |
Reg 0x86.