WIP: develop_update #706

Draft
muellerr wants to merge 710 commits from eive/fsfw:develop_update into development
Showing only changes of commit d4ade5e885 - Show all commits

View File

@ -6,6 +6,7 @@
class SourceSequenceCounter {
private:
uint16_t sequenceCount;
public:
SourceSequenceCounter() : sequenceCount(0) {}
void increment() {
@ -18,7 +19,17 @@ public:
void reset(uint16_t toValue = 0) {
sequenceCount = toValue % (SpacePacketBase::LIMIT_SEQUENCE_COUNT);
}
SourceSequenceCounter& operator++(int) {
this->increment();
return *this;
}
SourceSequenceCounter& operator=(const uint16_t& newCount) {
sequenceCount = newCount;
return *this;
}
operator uint16_t() {
return this->get();
}
};
#endif /* FSFW_TMTCSERVICES_SOURCESEQUENCECOUNTER_H_ */