28 lines
1.1 KiB
C++
28 lines
1.1 KiB
C++
#include "PDU1Handler.h"
|
|
#include <mission/devices/devicedefinitions/GomSpacePackets.h>
|
|
|
|
PDU1Handler::PDU1Handler(object_id_t objectId, object_id_t comIF, CookieIF * comCookie,
|
|
uint16_t maxConfigTableAddress, uint16_t maxHkTableAddress, uint16_t hkTableSize) :
|
|
GomspaceDeviceHandler(objectId, comIF, comCookie, maxConfigTableAddress, maxHkTableAddress,
|
|
hkTableSize, &pdu1HkTableDataset), pdu1HkTableDataset(this) {
|
|
}
|
|
|
|
PDU1Handler::~PDU1Handler() {
|
|
}
|
|
|
|
ReturnValue_t PDU1Handler::buildNormalDeviceCommand(
|
|
DeviceCommandId_t * id) {
|
|
// *id = GOMSPACE::REQUEST_HK_TABLE;
|
|
// return buildCommandFromCommand(*id, NULL, 0);
|
|
return RETURN_OK;
|
|
}
|
|
|
|
void PDU1Handler::letChildHandleHkReply(DeviceCommandId_t id, const uint8_t *packet) {
|
|
// 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);
|
|
}
|
|
|