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

◆ bootGuardDecode()

FL_ALWAYS_INLINE fl::u32 fl::bootGuardDecode ( const volatile BootGuardRecord & r,
fl::u32 image )

Boot count stored in r, or 0 if r is not a valid record of image.

Definition at line 42 of file boot_guard_record.h.

42 {
43 return bootGuardValid(r, image) ? r.boots : 0;
44}
FL_ALWAYS_INLINE bool bootGuardValid(const volatile BootGuardRecord &r, fl::u32 image)
True when r holds a valid record written by firmware image.

References bootGuardValid(), fl::BootGuardRecord::boots, and FL_ALWAYS_INLINE.

Referenced by bootGuardEncodeCrashes().

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