fsfw/src/fsfw/timemanager/CcsdsTimeStampReader.cpp
Robin Mueller d8b6cb39ac
Some checks failed
fsfw/fsfw/pipeline/head There was a failure building this commit
various bugfixes and improvements
2022-07-21 11:34:11 +02:00

15 lines
465 B
C++

#include "CcsdsTimeStampReader.h"
#include "CCSDSTime.h"
ReturnValue_t CcsdsTimestampReader::readTimeStamp(const uint8_t* buffer, uint8_t maxSize) {
ReturnValue_t result = CCSDSTime::convertFromCcsds(&time, buffer, &timestampLen, maxSize);
if (result != HasReturnvaluesIF::RETURN_OK) {
return result;
}
return result;
}
timeval& CcsdsTimestampReader::getTime() { return time; }
size_t CcsdsTimestampReader::getTimestampLen() { return timestampLen; }