FastLED 3.10.8
Loading...
Searching...
No Matches

◆ lastResetInfo()

ResetInfo fl::Watchdog::lastResetInfo ( ) const

Detailed reset information including platform raw register + subcause id.

Default implementation returns {lastResetCause(), 0, 0}; platforms that capture the raw register override with a strong definition in their .impl.hpp.

Definition at line 141 of file watchdog.cpp.hpp.

141 {
142 ResetInfo info{};
143 info.cause = lastResetCause();
144 info.subcauseId = 0;
145 info.rawRegister = 0;
146 return info;
147}
ResetCause lastResetCause() const FL_NO_EXCEPT

References fl::ResetInfo::cause, fl::FL_NO_EXCEPT, and lastResetCause().

Referenced by lastResetWasWatchdog(), and fl::platforms::scopedWatchdogFirstInit().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: