eive-obsw/mission/com/PersistentSingleTmStoreTask.h

31 lines
1.1 KiB
C
Raw Normal View History

2023-03-09 17:44:05 +01:00
#ifndef MISSION_TMTC_PERSISTENTSINGLETMSTORETASK_H_
#define MISSION_TMTC_PERSISTENTSINGLETMSTORETASK_H_
#include <fsfw/objectmanager/SystemObject.h>
#include <fsfw/tasks/ExecutableObjectIF.h>
2023-03-31 01:14:59 +02:00
#include <mission/com/TmStoreTaskBase.h>
#include <mission/com/VirtualChannel.h>
2023-03-09 17:44:05 +01:00
#include <mission/tmtc/PersistentTmStoreWithTmQueue.h>
2023-03-09 19:42:20 +01:00
class PersistentSingleTmStoreTask : public TmStoreTaskBase, public ExecutableObjectIF {
2023-03-09 17:44:05 +01:00
public:
PersistentSingleTmStoreTask(object_id_t objectId, StorageManagerIF& ipcStore,
PersistentTmStoreWithTmQueue& storeWithQueue, VirtualChannel& channel,
2023-03-28 15:15:38 +02:00
Event eventIfDumpDone, Event eventIfCancelled,
SdCardMountedIF& sdcMan);
2023-03-09 17:44:05 +01:00
ReturnValue_t performOperation(uint8_t opCode) override;
private:
PersistentTmStoreWithTmQueue& storeWithQueue;
2023-03-11 14:59:55 +01:00
DumpContext dumpContext;
2023-03-10 02:05:51 +01:00
Countdown tcHandlingCd = Countdown(400);
Countdown graceDelayDuringDumping = Countdown(100);
2023-03-28 15:06:03 +02:00
bool initStoresIfPossible() override;
2023-03-31 01:14:59 +02:00
void startTransition(Mode_t mode, Submode_t submode) override;
2023-03-09 17:44:05 +01:00
};
#endif /* MISSION_TMTC_PERSISTENTSINGLETMSTORETASK_H_ */