eive-obsw/mission/devices/PDU1Handler.cpp

28 lines
1.0 KiB
C++
Raw Normal View History

2021-01-28 14:55:21 +01:00
#include "PDU1Handler.h"
#include <mission/devices/devicedefinitions/GomSpacePackets.h>
2021-01-28 14:55:21 +01:00
2021-02-06 11:57:45 +01:00
PDU1Handler::PDU1Handler(object_id_t objectId, object_id_t comIF, CookieIF * comCookie) :
GomspaceDeviceHandler(objectId, comIF, comCookie, PDU::MAX_CONFIGTABLE_ADDRESS,
PDU::MAX_HKTABLE_ADDRESS, PDU::HK_TABLE_REPLY_SIZE, &pdu1HkTableDataset), pdu1HkTableDataset(
this) {
2021-01-28 14:55:21 +01:00
}
PDU1Handler::~PDU1Handler() {
}
ReturnValue_t PDU1Handler::buildNormalDeviceCommand(
DeviceCommandId_t * id) {
// *id = GOMSPACE::REQUEST_HK_TABLE;
// return buildCommandFromCommand(*id, NULL, 0);
return RETURN_OK;
2021-01-28 14:55:21 +01:00
}
void PDU1Handler::letChildHandleHkReply(DeviceCommandId_t id, const uint8_t *packet) {
2021-02-03 19:35:55 +01:00
// const uint8_t* payloadPtr = packet + GOMSPACE::GS_HDR_LENGTH;
// size_t size = (size_t)hkTableSize;
// pdu1HkTableDataset.deSerialize(&payloadPtr, &size, SerializeIF::Endianness::BIG);
// FullTableReply fullTableReply(id, HK_TABLE_ID, &pdu1HkTableDataset);
// handleDeviceTM(&fullTableReply, id, true);
2021-01-28 14:55:21 +01:00
}