2020-09-06 14:57:05 +02:00
|
|
|
#ifndef FSFW_HOUSEKEEPING_HOUSEKEEPINGPACKETDOWNLINK_H_
|
|
|
|
#define FSFW_HOUSEKEEPING_HOUSEKEEPINGPACKETDOWNLINK_H_
|
2020-08-09 20:06:29 +02:00
|
|
|
|
2020-08-23 20:27:00 +02:00
|
|
|
#include "../datapoollocal/LocalPoolDataSetBase.h"
|
|
|
|
#include "../serialize/SerialLinkedListAdapter.h"
|
|
|
|
#include "../storagemanager/StorageManagerIF.h"
|
2020-08-09 19:46:37 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief This class will be used to serialize general housekeeping packets
|
|
|
|
* which are destined to be downlinked into the store.
|
|
|
|
* @details
|
|
|
|
* The housekeeping packets are stored into the IPC store and forwarded
|
|
|
|
* to the designated housekeeping handler.
|
|
|
|
*/
|
|
|
|
class HousekeepingPacketDownlink: public SerialLinkedListAdapter<SerializeIF> {
|
|
|
|
public:
|
2020-09-10 19:51:17 +02:00
|
|
|
HousekeepingPacketDownlink(sid_t sid, /*bool reportingStatus,
|
|
|
|
float collectionInterval, uint8_t numberOfParameters, */
|
|
|
|
LocalPoolDataSetBase* dataSetPtr):
|
2020-08-09 19:46:37 +02:00
|
|
|
sourceId(sid.objectId), setId(sid.ownerSetId),
|
2020-09-10 19:51:17 +02:00
|
|
|
/*reportingStatus(reportingStatus),
|
|
|
|
collectionInterval(collectionInterval),
|
|
|
|
numberOfParameters(numberOfParameters), */hkData(dataSetPtr) {
|
2020-08-09 19:46:37 +02:00
|
|
|
setLinks();
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
void setLinks() {
|
|
|
|
setStart(&sourceId);
|
|
|
|
sourceId.setNext(&setId);
|
2020-09-10 19:51:17 +02:00
|
|
|
setId.setNext(&hkData);
|
|
|
|
//setId.setNext(&reportingStatus);
|
|
|
|
//reportingStatus.setNext(&collectionInterval);
|
|
|
|
//collectionInterval.setNext(&numberOfParameters);
|
|
|
|
//numberOfParameters.setNext(&hkData);
|
2020-08-09 19:46:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
SerializeElement<object_id_t> sourceId;
|
|
|
|
SerializeElement<uint32_t> setId;
|
2020-09-10 19:51:17 +02:00
|
|
|
//SerializeElement<uint8_t> reportingStatus;
|
|
|
|
//SerializeElement<float> collectionInterval;
|
|
|
|
//SerializeElement<uint8_t> numberOfParameters;
|
2020-08-09 19:46:37 +02:00
|
|
|
LinkedElement<SerializeIF> hkData;
|
|
|
|
};
|
|
|
|
|
2020-08-09 20:06:29 +02:00
|
|
|
#endif /* FRAMEWORK_HOUSEKEEPING_HOUSEKEEPINGPACKETDOWNLINK_H_ */
|