Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed CANBuffer Watchdog MODSERIAL mbed-rtos xbeeRelay IAP
Fork of SystemManagement by
FreezeFrame.h
00001 #ifndef FREEZE_FRAME_H 00002 #define FREEZE_FRAME_H 00003 00004 #include "OperatingInfo.h" 00005 #include "Profile.h" 00006 00007 // Freeze frame class, containing everything that describes the current operation of the AMS 00008 class FreezeFrame 00009 { 00010 public: 00011 FreezeFrame(); 00012 Profile_checkSum param; // Profile - contains parameters and configurable settings 00013 OperatingInfo_checkSum op; // OperatingInfo - contains all the data gathered from sensors and processed outputs 00014 00015 static bool getFrame(FreezeFrame **frame); // Fetch pointer to the last stored freeze frame if available 00016 static bool writeFrame(); // Write the current RAM frame to flash as a freeze frame 00017 static bool prepare(); // Call on microcontroller startup, pre-erase a flash sector so flash write occurs very fast upon error 00018 00019 static bool getError(); // Get last marked error state 00020 static bool setError(); // Mark error 00021 static bool clearError(); // Reset (clear) the freeze frame error flag 00022 }; 00023 00024 #endif
Generated on Fri Jul 15 2022 06:07:18 by
1.7.2
