eive-obsw/mission/persistentTmStoreDefs.h

44 lines
2.1 KiB
C
Raw Normal View History

2023-03-10 19:01:31 +01:00
#ifndef MISSION_PERSISTENTTMSTOREDEFS_H_
#define MISSION_PERSISTENTTMSTOREDEFS_H_
#include <mission/tmtc/PersistentTmStoreWithTmQueue.h>
#include "eive/eventSubsystemIds.h"
namespace persTmStore {
struct PersistentTmStores {
PersistentTmStoreWithTmQueue* okStore;
PersistentTmStoreWithTmQueue* notOkStore;
PersistentTmStoreWithTmQueue* miscStore;
PersistentTmStoreWithTmQueue* hkStore;
PersistentTmStoreWithTmQueue* cfdpStore;
};
static constexpr uint8_t SUBSYSTEM_ID = SUBSYSTEM_ID::PERSISTENT_TM_STORE;
//! [EXPORT] : [COMMENT]
//! P1: Result code of TM packet parser.
//! P2: Timestamp of possibly corrupt file as a unix timestamp.
static constexpr Event POSSIBLE_FILE_CORRUPTION = event::makeEvent(SUBSYSTEM_ID, 0, severity::LOW);
//! [EXPORT] : [COMMENT] File in store too large. P1: Detected file size
//! P2: Allowed file size
static constexpr Event FILE_TOO_LARGE = event::makeEvent(SUBSYSTEM_ID, 1, severity::LOW);
static constexpr Event BUSY_DUMPING_EVENT = event::makeEvent(SUBSYSTEM_ID, 2, severity::INFO);
2023-03-10 20:32:11 +01:00
//! [EXPORT] : [COMMENT] Dump was cancelled. P1: Object ID of store.
static constexpr Event DUMP_WAS_CANCELLED = event::makeEvent(SUBSYSTEM_ID, 3, severity::LOW);
2023-03-10 19:01:31 +01:00
2023-03-11 14:59:55 +01:00
//! [EXPORT] : [COMMENT] P1: Number of dumped packets. P2: Total dumped bytes.
2023-03-10 20:32:11 +01:00
static constexpr Event DUMP_OK_STORE_DONE = event::makeEvent(SUBSYSTEM_ID, 5, severity::INFO);
2023-03-11 14:59:55 +01:00
//! [EXPORT] : [COMMENT] P1: Number of dumped packets. P2: Total dumped bytes.
2023-03-10 20:32:11 +01:00
static constexpr Event DUMP_NOK_STORE_DONE = event::makeEvent(SUBSYSTEM_ID, 6, severity::INFO);
2023-03-11 14:59:55 +01:00
//! [EXPORT] : [COMMENT] P1: Number of dumped packets. P2: Total dumped bytes.
2023-03-10 20:32:11 +01:00
static constexpr Event DUMP_MISC_STORE_DONE = event::makeEvent(SUBSYSTEM_ID, 7, severity::INFO);
2023-03-11 14:59:55 +01:00
//! [EXPORT] : [COMMENT] P1: Number of dumped packets. P2: Total dumped bytes.
2023-03-10 20:32:11 +01:00
static constexpr Event DUMP_HK_STORE_DONE = event::makeEvent(SUBSYSTEM_ID, 8, severity::INFO);
2023-03-11 14:59:55 +01:00
//! [EXPORT] : [COMMENT] P1: Number of dumped packets. P2: Total dumped bytes.
2023-03-10 20:32:11 +01:00
static constexpr Event DUMP_CFDP_STORE_DONE = event::makeEvent(SUBSYSTEM_ID, 9, severity::INFO);
2023-03-10 19:01:31 +01:00
}; // namespace persTmStore
#endif /* MISSION_PERSISTENTTMSTOREDEFS_H_ */