2021-12-03 15:37:49 +01:00
|
|
|
#ifndef FSFW_INC_FSFW_TMTCPACKET_CFDP_CFDPPACKET_H_
|
|
|
|
#define FSFW_INC_FSFW_TMTCPACKET_CFDP_CFDPPACKET_H_
|
|
|
|
|
2022-07-20 11:43:16 +02:00
|
|
|
#include "fsfw/tmtcpacket/ccsds/SpacePacketReader.h"
|
2021-12-03 15:37:49 +01:00
|
|
|
|
2022-07-19 18:13:25 +02:00
|
|
|
class CfdpReader : public SpacePacketReader {
|
2022-02-02 10:29:30 +01:00
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* This is the default constructor.
|
|
|
|
* It sets its internal data pointer to the address passed and also
|
|
|
|
* forwards the data pointer to the parent SpacePacketBase class.
|
|
|
|
* @param setData The position where the packet data lies.
|
|
|
|
*/
|
2022-07-19 18:13:25 +02:00
|
|
|
explicit CfdpReader(const uint8_t* setData, size_t maxSize);
|
2022-02-02 10:29:30 +01:00
|
|
|
/**
|
|
|
|
* This is the empty default destructor.
|
|
|
|
*/
|
2022-07-19 18:13:25 +02:00
|
|
|
~CfdpReader() override;
|
2021-12-03 15:37:49 +01:00
|
|
|
|
2022-02-02 10:29:30 +01:00
|
|
|
/**
|
|
|
|
* This is a debugging helper method that prints the whole packet content
|
|
|
|
* to the screen.
|
|
|
|
*/
|
|
|
|
void print();
|
2021-12-03 15:37:49 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* FSFW_INC_FSFW_TMTCPACKET_CFDP_CFDPPACKET_H_ */
|