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
DataStructures/Headers/FreezeFrame.h
- Committer:
- pspatel321
- Date:
- 2015-02-11
- Revision:
- 39:ddf38df9699e
- Parent:
- 38:8efacce315ae
File content as of revision 39:ddf38df9699e:
#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
