55 lines
1.8 KiB
C++
55 lines
1.8 KiB
C++
//#include "fsfw/cfdp/CfdpHandler.h"
|
|
//
|
|
//#include "fsfw/cfdp/CfdpMessage.h"
|
|
//#include "fsfw/ipc/CommandMessage.h"
|
|
//#include "fsfw/ipc/QueueFactory.h"
|
|
//#include "fsfw/objectmanager/ObjectManager.h"
|
|
//#include "fsfw/storagemanager/storeAddress.h"
|
|
//#include "fsfw/tmtcservices/AcceptsTelemetryIF.h"
|
|
//
|
|
// CfdpHandler::CfdpHandler(object_id_t setObjectId, CfdpHandler* dist)
|
|
// : SystemObject(setObjectId) {
|
|
// requestQueue = QueueFactory::instance()->createMessageQueue(CFDP_HANDLER_MAX_RECEPTION);
|
|
// distributor = dist;
|
|
//}
|
|
//
|
|
// CfdpHandler::~CfdpHandler() = default;
|
|
//
|
|
// ReturnValue_t CfdpHandler::initialize() {
|
|
// ReturnValue_t result = SystemObject::initialize();
|
|
// if (result != RETURN_OK) {
|
|
// return result;
|
|
// }
|
|
// this->distributor->registerHandler(this);
|
|
// return HasReturnvaluesIF::RETURN_OK;
|
|
//}
|
|
//
|
|
// ReturnValue_t CfdpHandler::handleRequest(store_address_t storeId) {
|
|
//#if FSFW_VERBOSE_LEVEL >= 1
|
|
//#if FSFW_CPP_OSTREAM_ENABLED == 1
|
|
// sif::debug << "CFDPHandler::handleRequest" << std::endl;
|
|
//#else
|
|
// sif::printDebug("CFDPHandler::handleRequest\n");
|
|
//#endif /* !FSFW_CPP_OSTREAM_ENABLED == 1 */
|
|
//#endif
|
|
//
|
|
// // TODO read out packet from store using storeId
|
|
//
|
|
// return RETURN_OK;
|
|
//}
|
|
//
|
|
// ReturnValue_t CfdpHandler::performOperation(uint8_t opCode) {
|
|
// ReturnValue_t status = RETURN_OK;
|
|
// CommandMessage currentMessage;
|
|
// for (status = this->requestQueue->receiveMessage(¤tMessage); status == RETURN_OK;
|
|
// status = this->requestQueue->receiveMessage(¤tMessage)) {
|
|
// store_address_t storeId = CfdpMessage::getStoreId(¤tMessage);
|
|
// this->handleRequest(storeId);
|
|
// }
|
|
// return RETURN_OK;
|
|
//}
|
|
//
|
|
// uint32_t CfdpHandler::getIdentifier() const { return 0; }
|
|
//
|
|
// MessageQueueId_t CfdpHandler::getRequestQueue() const { return this->requestQueue->getId(); }
|