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

◆ bootGuardEncode()

FL_ALWAYS_INLINE void fl::bootGuardEncode ( volatile BootGuardRecord & r,
fl::u32 image,
fl::u32 boots )

Store boots, keeping the crash count (0 if the record is invalid).

Always writes: every platform's watchdogBootGuardWrite() uses this.

Definition at line 67 of file boot_guard_record.h.

68 {
69 bootGuardStore(r, image, boots, bootGuardDecodeCrashes(r, image));
70}
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 bootGuardDecodeCrashes(const volatile BootGuardRecord &r, fl::u32 image)
Crash count stored in r, or 0 if r is not a valid record of image.

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

+ Here is the call graph for this function: