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

◆ bootGuardEncodeCrashes()

FL_ALWAYS_INLINE void fl::bootGuardEncodeCrashes ( volatile BootGuardRecord & r,
fl::u32 image,
fl::u32 crashes )

Store crashes, keeping the boot count (0 if the record is invalid).

Definition at line 73 of file boot_guard_record.h.

74 {
75 bootGuardStore(r, image, bootGuardDecode(r, image), crashes);
76}
FL_ALWAYS_INLINE void bootGuardStore(volatile BootGuardRecord &r, fl::u32 image, fl::u32 boots, fl::u32 crashes)
Store both counts in r as a valid record of image.
FL_ALWAYS_INLINE fl::u32 bootGuardDecode(const volatile BootGuardRecord &r, fl::u32 image)
Boot count stored in r, or 0 if r is not a valid record of image.

References bootGuardDecode(), bootGuardStore(), and FL_ALWAYS_INLINE.

+ Here is the call graph for this function: