2021-12-03 15:37:49 +01:00
|
|
|
#ifndef FSFW_SRC_FSFW_CFDP_TLV_FAULTHANDLEROVERRIDETLV_H_
|
|
|
|
#define FSFW_SRC_FSFW_CFDP_TLV_FAULTHANDLEROVERRIDETLV_H_
|
|
|
|
|
|
|
|
#include "TlvIF.h"
|
|
|
|
|
2022-02-02 10:29:30 +01:00
|
|
|
class FaultHandlerOverrideTlv : public TlvIF {
|
|
|
|
public:
|
|
|
|
FaultHandlerOverrideTlv();
|
2022-08-09 14:05:43 +02:00
|
|
|
FaultHandlerOverrideTlv(cfdp::ConditionCode conditionCode, cfdp::FaultHandlerCodes handlerCode);
|
2021-12-03 15:37:49 +01:00
|
|
|
|
2022-02-02 10:29:30 +01:00
|
|
|
ReturnValue_t serialize(uint8_t **buffer, size_t *size, size_t maxSize,
|
|
|
|
Endianness streamEndianness) const override;
|
2021-12-03 15:37:49 +01:00
|
|
|
|
2022-08-09 14:05:43 +02:00
|
|
|
[[nodiscard]] size_t getSerializedSize() const override;
|
2021-12-03 15:37:49 +01:00
|
|
|
|
2022-02-02 10:29:30 +01:00
|
|
|
ReturnValue_t deSerialize(const uint8_t **buffer, size_t *size,
|
|
|
|
Endianness streamEndianness) override;
|
2022-08-09 14:05:43 +02:00
|
|
|
[[nodiscard]] uint8_t getLengthField() const override;
|
|
|
|
[[nodiscard]] cfdp::TlvTypes getType() const override;
|
2021-12-03 15:37:49 +01:00
|
|
|
|
2022-02-02 10:29:30 +01:00
|
|
|
private:
|
|
|
|
cfdp::ConditionCode conditionCode = cfdp::ConditionCode::NO_CONDITION_FIELD;
|
2022-08-09 14:05:43 +02:00
|
|
|
cfdp::FaultHandlerCodes handlerCode = cfdp::FaultHandlerCodes::RESERVED;
|
2021-12-03 15:37:49 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* FSFW_SRC_FSFW_CFDP_TLV_FAULTHANDLEROVERRIDETLV_H_ */
|