PF1550 Driver
API reference
Loading...
Searching...
No Matches
Public Attributes | List of all members
pf1550::DiagnosticSnapshot Struct Reference

Full diagnostic snapshot returned by PF1550::ReadDiagnosticSnapshot(). More...

#include <pf1550_diagnostics.hpp>

Collaboration diagram for pf1550::DiagnosticSnapshot:
[legend]

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)] {}
 

Detailed Description

Full diagnostic snapshot returned by PF1550::ReadDiagnosticSnapshot().

All fields are valid only if read_ok is true.

Member Data Documentation

◆ charger

ChargerState pf1550::DiagnosticSnapshot::charger {ChargerState::Unknown}

Decoded CHG_SNS[3:0].

◆ chg_sense_reg

uint8_t pf1550::DiagnosticSnapshot::chg_sense_reg {0}

Reg 0x87 raw.

◆ device_id

uint8_t pf1550::DiagnosticSnapshot::device_id {0}

Reg 0x00 — must equal 0x7C.

◆ faults

FaultFlags pf1550::DiagnosticSnapshot::faults {}

Aggregated latched + sense conditions.

◆ int_category

uint8_t pf1550::DiagnosticSnapshot::int_category {0}

Reg 0x06 — top-level interrupt summary.

◆ otp_flavor

uint8_t pf1550::DiagnosticSnapshot::otp_flavor {0}

Reg 0x01 — 0x00 for A0EP.

◆ rails

RailDiagnostics pf1550::DiagnosticSnapshot::rails[static_cast< size_t >(RailId::COUNT)] {}

◆ read_ok

bool pf1550::DiagnosticSnapshot::read_ok {false}

All required I²C reads succeeded.

◆ silicon_rev

uint8_t pf1550::DiagnosticSnapshot::silicon_rev {0}

Reg 0x02.

◆ state

PmicState pf1550::DiagnosticSnapshot::state {PmicState::Unknown}

Decoded STATE_INFO[5:0].

◆ state_info_reg

uint8_t pf1550::DiagnosticSnapshot::state_info_reg {0}

Reg 0x67 raw.

◆ vbus_in_limit_ma

uint16_t pf1550::DiagnosticSnapshot::vbus_in_limit_ma {0}

Decoded VBUS input current limit (mA).

◆ vbus_sns_reg

uint8_t pf1550::DiagnosticSnapshot::vbus_sns_reg {0}

Reg 0x86.


The documentation for this struct was generated from the following file: