added -- operator

This commit is contained in:
Jakob Meier 2022-03-17 20:00:17 +01:00
parent 1b7e0371c3
commit caf78835b2
1 changed files with 5 additions and 3 deletions

View File

@ -23,13 +23,15 @@ class SourceSequenceCounter {
this->increment();
return *this;
}
SourceSequenceCounter& operator--(int) {
this->decrement();
return *this;
}
SourceSequenceCounter& operator=(const uint16_t& newCount) {
sequenceCount = newCount;
return *this;
}
operator uint16_t() {
return this->get();
}
operator uint16_t() { return this->get(); }
};
#endif /* FSFW_TMTCSERVICES_SOURCESEQUENCECOUNTER_H_ */