2020-09-26 17:21:32 +02:00
|
|
|
#ifndef FSFW_INTERNALERROR_INTERNALERRORDATASET_H_
|
|
|
|
#define FSFW_INTERNALERROR_INTERNALERRORDATASET_H_
|
|
|
|
|
|
|
|
#include <fsfw/datapoollocal/StaticLocalDataSet.h>
|
|
|
|
#include <fsfw/datapoollocal/LocalPoolVariable.h>
|
|
|
|
|
|
|
|
enum errorPoolIds {
|
|
|
|
TM_HITS,
|
|
|
|
QUEUE_HITS,
|
|
|
|
STORE_HITS
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class InternalErrorDataset: public StaticLocalDataSet<3 * sizeof(uint32_t)> {
|
|
|
|
public:
|
|
|
|
static constexpr uint8_t ERROR_SET_ID = 0;
|
|
|
|
|
|
|
|
InternalErrorDataset(HasLocalDataPoolIF* owner):
|
|
|
|
StaticLocalDataSet(owner, ERROR_SET_ID) {}
|
|
|
|
|
2020-09-29 12:50:36 +02:00
|
|
|
InternalErrorDataset(object_id_t objectId):
|
|
|
|
StaticLocalDataSet(sid_t(objectId , ERROR_SET_ID)) {}
|
2020-09-26 17:21:32 +02:00
|
|
|
|
2020-11-30 14:13:52 +01:00
|
|
|
lp_var_t<uint32_t> tmHits = lp_var_t<uint32_t>(hkManager->getOwner(),
|
|
|
|
TM_HITS, this);
|
|
|
|
lp_var_t<uint32_t> queueHits = lp_var_t<uint32_t>(hkManager->getOwner(),
|
|
|
|
QUEUE_HITS, this);
|
|
|
|
lp_var_t<uint32_t> storeHits = lp_var_t<uint32_t>(hkManager->getOwner(),
|
|
|
|
STORE_HITS, this);
|
2020-09-26 17:21:32 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* FSFW_INTERNALERROR_INTERNALERRORDATASET_H_ */
|