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

◆ bootGuardValid()

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

True when r holds a valid record written by firmware image.

Definition at line 36 of file boot_guard_record.h.

36 {
37 return r.magic == kBootGuardMagic && r.image == image &&
38 r.check == bootGuardCheck(image, r.boots, r.crashes);
39}
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, and fl::BootGuardRecord::magic.

Referenced by bootGuardDecode(), and bootGuardDecodeCrashes().

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