Merge remote-tracking branch 'origin/development' into mueller/refactor-tmtc-stack-with-retval-refactoring

This commit is contained in:
2022-08-22 15:57:22 +02:00
163 changed files with 397 additions and 569 deletions

View File

@ -4,7 +4,7 @@
#include <cstddef>
#include <type_traits>
#include "../returnvalues/HasReturnvaluesIF.h"
#include "../returnvalues/returnvalue.h"
#include "EndianConverter.h"
#include "SerializeIF.h"
@ -40,7 +40,7 @@ class SerializeAdapter {
* @return
* - @c BUFFER_TOO_SHORT The given buffer in is too short
* - @c returnvalue::FAILED Generic Error
* - @c RETURN_OK Successful serialization
* - @c returnvalue::OK Successful serialization
*/
template <typename T>
static ReturnValue_t serialize(const T *object, uint8_t **buffer, size_t *size, size_t maxSize,
@ -65,7 +65,7 @@ class SerializeAdapter {
* @return
* - @c BUFFER_TOO_SHORT The given buffer in is too short
* - @c returnvalue::FAILED Generic Error
* - @c RETURN_OK Successful serialization
* - @c returnvalue::OK Successful serialization
*/
template <typename T>
static ReturnValue_t serialize(const T *object, uint8_t *const buffer, size_t *serSize,
@ -114,7 +114,7 @@ class SerializeAdapter {
* - @c STREAM_TOO_SHORT The input stream is too short to deSerialize the object
* - @c TOO_MANY_ELEMENTS The buffer has more inputs than expected
* - @c returnvalue::FAILED Generic Error
* - @c RETURN_OK Successful deserialization
* - @c returnvalue::OK Successful deserialization
*/
template <typename T>
static ReturnValue_t deSerialize(T *object, const uint8_t **buffer, size_t *size,
@ -137,7 +137,7 @@ class SerializeAdapter {
* - @c STREAM_TOO_SHORT The input stream is too short to deSerialize the object
* - @c TOO_MANY_ELEMENTS The buffer has more inputs than expected
* - @c returnvalue::FAILED Generic Error
* - @c RETURN_OK Successful deserialization
* - @c returnvalue::OK Successful deserialization
*/
template <typename T>
static ReturnValue_t deSerialize(T *object, const uint8_t *buffer, size_t *deserSize,

View File

@ -3,7 +3,7 @@
#include <cstddef>
#include "fsfw/returnvalues/HasReturnvaluesIF.h"
#include "fsfw/returnvalues/returnvalue.h"
/**
* @defgroup serialize Serialization
@ -57,7 +57,7 @@ class SerializeIF {
* @return
* - @c BUFFER_TOO_SHORT The given buffer in is too short
* - @c returnvalue::FAILED Generic error
* - @c RETURN_OK Successful serialization
* - @c returnvalue::OK Successful serialization
*/
[[nodiscard]] virtual ReturnValue_t serialize(uint8_t **buffer, size_t *size, size_t maxSize,
Endianness streamEndianness) const = 0;
@ -93,7 +93,7 @@ class SerializeIF {
* - @c STREAM_TOO_SHORT The input stream is too short to deSerialize the object
* - @c TOO_MANY_ELEMENTS The buffer has more inputs than expected
* - @c returnvalue::FAILED Generic Error
* - @c RETURN_OK Successful deserialization
* - @c returnvalue::OK Successful deserialization
*/
virtual ReturnValue_t deSerialize(const uint8_t **buffer, size_t *size,
Endianness streamEndianness) = 0;