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
Diff: DataStructures/Headers/FreezeFrame.h
- Revision:
- 38:8efacce315ae
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/DataStructures/Headers/FreezeFrame.h Sat Feb 07 08:54:51 2015 +0000
@@ -0,0 +1,24 @@
+#ifndef FREEZE_FRAME_H
+#define FREEZE_FRAME_H
+
+#include "OperatingInfo.h"
+#include "Profile.h"
+
+// Freeze frame class, containing everything that describes the current operation of the AMS
+class FreezeFrame
+{
+public:
+ FreezeFrame();
+ Profile_checkSum param; // Profile - contains parameters and configurable settings
+ OperatingInfo_checkSum op; // OperatingInfo - contains all the data gathered from sensors and processed outputs
+
+ static bool getFrame(FreezeFrame **frame); // Fetch pointer to the last stored freeze frame if available
+ static bool writeFrame(); // Write the current RAM frame to flash as a freeze frame
+ static bool prepare(); // Call on microcontroller startup, pre-erase a flash sector so flash write occurs very fast upon error
+
+ static bool getError(); // Get last marked error state
+ static bool setError(); // Mark error
+ static bool clearError(); // Reset (clear) the freeze frame error flag
+};
+
+#endif
