fsfw/src/fsfw/tmtcpacket/pus/tm/PusTmZcWriter.h

23 lines
722 B
C
Raw Normal View History

2022-07-27 11:26:47 +02:00
#ifndef FSFW_EXAMPLE_HOSTED_PUSTMZCWRITER_H
#define FSFW_EXAMPLE_HOSTED_PUSTMZCWRITER_H
#include "PusTmReader.h"
2022-07-28 13:24:50 +02:00
/**
* This packet allows to update specific fields of a PUS TM packet where it is useful or necessary
* to update them in a second step. Otherwise, it offers the same interface as @PusTmReader.
*
* Right now, this class supports updating the CCSDS Sequence Count and the Error Control.
*/
2022-07-27 11:26:47 +02:00
class PusTmZeroCopyWriter : public PusTmReader {
public:
2022-07-28 13:00:53 +02:00
PusTmZeroCopyWriter(TimeReaderIF& timeReader, uint8_t* data, size_t size);
2022-07-27 11:26:47 +02:00
void setSequenceCount(uint16_t seqCount);
2023-06-25 12:35:50 +02:00
void setMessageCount(uint16_t msgCount);
2022-07-27 11:26:47 +02:00
void updateErrorControl();
private:
};
#endif // FSFW_EXAMPLE_HOSTED_PUSTMZCWRITER_H