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

◆ bootGuardStore()

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

Store both counts in r as a valid record of image.

Definition at line 53 of file boot_guard_record.h.

54 {
55 r.magic = kBootGuardMagic;
56 r.image = image;
57 r.boots = boots;
58 r.crashes = crashes;
59 r.check = bootGuardCheck(image, boots, crashes);
60 r.reserved[0] = 0;
61 r.reserved[1] = 0;
62 r.reserved[2] = 0;
63}
constexpr fl::u32 kBootGuardMagic
FL_ALWAYS_INLINE fl::u32 bootGuardCheck(fl::u32 image, fl::u32 boots, fl::u32 crashes)

References bootGuardCheck(), fl::BootGuardRecord::boots, fl::BootGuardRecord::check, fl::BootGuardRecord::crashes, FL_ALWAYS_INLINE, fl::BootGuardRecord::image, kBootGuardMagic, fl::BootGuardRecord::magic, and fl::BootGuardRecord::reserved.

Referenced by bootGuardEncode(), and bootGuardEncodeCrashes().

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