2020-12-03 13:21:44 +01:00
|
|
|
#ifndef FSFW_INTERNALERROR_INTERNALERRORDATASET_H_
|
|
|
|
#define FSFW_INTERNALERROR_INTERNALERRORDATASET_H_
|
|
|
|
|
|
|
|
#include <fsfw/datapoollocal/LocalPoolVariable.h>
|
2022-02-02 10:29:30 +01:00
|
|
|
#include <fsfw/datapoollocal/StaticLocalDataSet.h>
|
2020-12-03 13:21:44 +01:00
|
|
|
|
2022-02-02 10:29:30 +01:00
|
|
|
enum errorPoolIds { TM_HITS, QUEUE_HITS, STORE_HITS };
|
2020-12-03 13:21:44 +01:00
|
|
|
|
2022-02-02 10:29:30 +01:00
|
|
|
class InternalErrorDataset : public StaticLocalDataSet<3 * sizeof(uint32_t)> {
|
|
|
|
public:
|
|
|
|
static constexpr uint8_t ERROR_SET_ID = 0;
|
2020-12-03 13:21:44 +01:00
|
|
|
|
2022-02-02 10:29:30 +01:00
|
|
|
InternalErrorDataset(HasLocalDataPoolIF* owner) : StaticLocalDataSet(owner, ERROR_SET_ID) {}
|
2020-12-03 13:21:44 +01:00
|
|
|
|
2022-02-02 10:29:30 +01:00
|
|
|
InternalErrorDataset(object_id_t objectId) : StaticLocalDataSet(sid_t(objectId, ERROR_SET_ID)) {}
|
2020-12-03 13:21:44 +01:00
|
|
|
|
2022-02-02 10:29:30 +01:00
|
|
|
lp_var_t<uint32_t> tmHits = lp_var_t<uint32_t>(sid.objectId, TM_HITS, this);
|
|
|
|
lp_var_t<uint32_t> queueHits = lp_var_t<uint32_t>(sid.objectId, QUEUE_HITS, this);
|
|
|
|
lp_var_t<uint32_t> storeHits = lp_var_t<uint32_t>(sid.objectId, STORE_HITS, this);
|
2020-12-03 13:21:44 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* FSFW_INTERNALERROR_INTERNALERRORDATASET_H_ */
|