31 lines
821 B
C++
31 lines
821 B
C++
#ifndef FSFW_CFDP_PDU_ACKPDUSERIALIZER_H_
|
|
#define FSFW_CFDP_PDU_ACKPDUSERIALIZER_H_
|
|
|
|
#include "AckInfo.h"
|
|
#include "FileDirectiveCreator.h"
|
|
#include "FileDirectiveReader.h"
|
|
|
|
class AckPduCreator : public FileDirectiveCreator {
|
|
public:
|
|
/**
|
|
* @brief Serializer to pack ACK PDUs
|
|
* @details
|
|
* Please note that only Finished PDUs and EOF are acknowledged.
|
|
* @param ackedDirective
|
|
* @param ackedConditionCode
|
|
* @param transactionStatus
|
|
* @param pduConf
|
|
*/
|
|
AckPduCreator(AckInfo& ackInfo, PduConfig& pduConf);
|
|
|
|
[[nodiscard]] size_t getSerializedSize() const override;
|
|
|
|
ReturnValue_t serialize(uint8_t** buffer, size_t* size, size_t maxSize,
|
|
Endianness streamEndianness) const override;
|
|
|
|
private:
|
|
AckInfo& ackInfo;
|
|
};
|
|
|
|
#endif /* FSFW_CFDP_PDU_ACKPDUSERIALIZER_H_ */
|