2020-10-28 02:20:12 +01:00
|
|
|
#include "TcPacketBase.h"
|
|
|
|
|
2020-08-13 20:53:35 +02:00
|
|
|
#include "../../globalfunctions/CRC.h"
|
2020-10-28 02:20:12 +01:00
|
|
|
#include "../../globalfunctions/arrayprinter.h"
|
2021-06-13 16:29:13 +02:00
|
|
|
#include "../../serviceinterface/ServiceInterface.h"
|
2016-06-15 23:48:41 +02:00
|
|
|
|
2020-10-28 02:20:12 +01:00
|
|
|
#include <cstring>
|
|
|
|
|
2021-06-13 16:29:13 +02:00
|
|
|
TcPacketBase::TcPacketBase(const uint8_t* setData): SpacePacketBase(setData) {}
|
2016-06-15 23:48:41 +02:00
|
|
|
|
2021-06-13 16:29:13 +02:00
|
|
|
TcPacketBase::~TcPacketBase() {}
|
2016-06-15 23:48:41 +02:00
|
|
|
|
|
|
|
void TcPacketBase::print() {
|
2021-01-03 14:16:52 +01:00
|
|
|
#if FSFW_CPP_OSTREAM_ENABLED == 1
|
2021-06-13 16:29:13 +02:00
|
|
|
sif::info << "TcPacketBase::print:" << std::endl;
|
|
|
|
#else
|
|
|
|
sif::printInfo("TcPacketBase::print:\n");
|
2021-01-03 13:58:18 +01:00
|
|
|
#endif
|
2021-06-13 16:29:13 +02:00
|
|
|
arrayprinter::print(getWholeData(), getFullSize());
|
2020-05-15 19:44:14 +02:00
|
|
|
}
|