Skip to content

Class OpenSkyhawk::BoardThermal

ClassList > OpenSkyhawk > BoardThermal

  • #include <BoardThermal.h>

Inherits the following classes: OpenSkyhawk::FaultSource

Public Functions

Type Name
BoardThermal () = default
virtual NodeFaultCode faultCode () override const
Current fault code ( NodeFaultCode::NONE when healthy). Cheap/const, cached state only.
virtual const char * faultDetail () override const
Human-readable fault detail for the local DiagSerial tap only — never on the wire.
uint8_t flags () const
PduStatusFlag bits this monitor owns: TEMP_WARN, TEMP_CRIT, NTC_FAULT.
void sample (int16_t tempDC, bool ntcFault, bool armed)
Feed one reading.
int16_t tempDC () const
Latest temperature, 0.1 °C; NTC_TEMP_UNAVAILABLE when no reading yet / NTC fault.

Public Functions inherited from OpenSkyhawk::FaultSource

See OpenSkyhawk::FaultSource

Type Name
virtual NodeFaultCode faultCode () const
Current fault code ( NodeFaultCode::NONE when healthy). Cheap/const, cached state only.
virtual const char * faultDetail () const
Human-readable fault detail for the local DiagSerial tap only — never on the wire.
FaultSource * next () const
Next fault source; nullptr at end.

Public Static Functions inherited from OpenSkyhawk::FaultSource

See OpenSkyhawk::FaultSource

Type Name
FaultSource * head ()
Head of the self-registered fault-source list.

Protected Functions inherited from OpenSkyhawk::FaultSource

See OpenSkyhawk::FaultSource

Type Name
FaultSource ()
Registers this instance into the list.
~FaultSource () = default
Protected, non-virtual: a base/mixin, never deleted through this type.

Public Functions Documentation

function BoardThermal

OpenSkyhawk::BoardThermal::BoardThermal () = default

function faultCode

Current fault code ( NodeFaultCode::NONE when healthy). Cheap/const, cached state only.

virtual NodeFaultCode OpenSkyhawk::BoardThermal::faultCode () override const

Implements OpenSkyhawk::FaultSource::faultCode


function faultDetail

Human-readable fault detail for the local DiagSerial tap only — never on the wire.

virtual const char * OpenSkyhawk::BoardThermal::faultDetail () override const

Implements OpenSkyhawk::FaultSource::faultDetail


function flags

PduStatusFlag bits this monitor owns: TEMP_WARN, TEMP_CRIT, NTC_FAULT.

uint8_t OpenSkyhawk::BoardThermal::flags () const


function sample

Feed one reading.

void OpenSkyhawk::BoardThermal::sample (
    int16_t tempDC,
    bool ntcFault,
    bool armed
) 

Parameters:

  • tempDC Board temperature, 0.1 °C (ignored when ntcFault).
  • ntcFault NTC channel open or shorted.
  • armed false during power-up blanking — the flags are held clear.

function tempDC

Latest temperature, 0.1 °C; NTC_TEMP_UNAVAILABLE when no reading yet / NTC fault.

inline int16_t OpenSkyhawk::BoardThermal::tempDC () const



The documentation for this class was generated from the following file Firmware/Libraries/PowerMonitor/BoardThermal.h