FastLED 3.9.15
Loading...
Searching...
No Matches
fl::ResetInfo Struct Reference

Detailed Description

Detailed reset information bundling the normalized cause with a platform-specific subcause id and the raw cause-register value.

subcauseId and rawRegister are zero on platforms that don't expose them; on Teensy 4 the subcause distinguishes WDOG3 from WDOG1/2 etc., and rawRegister holds the captured SRC_SRSR bits.

Definition at line 82 of file watchdog.h.

#include <watchdog.h>

Public Member Functions

fl::string_view causeName () const FL_NOEXCEPT
 Cause name (zero-cost, static string_view).
 
fl::size describe (fl::span< char > out, bool verbose=false) const FL_NOEXCEPT
 Write a single-line human-readable description into the caller's buffer.
 
fl::string_view subcauseName () const FL_NOEXCEPT
 Platform-specific subcause name (zero-cost, static string_view).
 

Public Attributes

ResetCause cause
 Normalized cross-platform enum.
 
fl::u32 rawRegister
 Raw value of the platform's reset-cause register.
 
fl::u8 subcauseId
 Platform-specific subcause id (0 = none)
 

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