CFDP state machine
This commit is contained in:
parent
f7cb0bbf31
commit
aa6ffac182
|
@ -40,7 +40,11 @@
|
|||
|
||||
#ifndef FSFW_USE_PUS_C_TELECOMMANDS
|
||||
#define FSFW_USE_PUS_C_TELECOMMANDS 1
|
||||
#endif
|
||||
#endif /* FSFW_USE_PUS_C_TELECOMMANDS */
|
||||
|
||||
#ifndef FSFW_DEBUG_CFDP_DISTRIBUTOR
|
||||
#define FSFW_DEBUG_CFDP_DISTRIBUTOR 0
|
||||
#endif /* FSFW_DEBUG_CFDP_DISTRIBUTOR */
|
||||
|
||||
#ifndef FSFW_TCP_RECV_WIRETAPPING_ENABLED
|
||||
#define FSFW_TCP_RECV_WIRETAPPING_ENABLED 0
|
||||
|
|
|
@ -50,7 +50,8 @@ public:
|
|||
static object_id_t packetSource;
|
||||
|
||||
static object_id_t packetDestination;
|
||||
private:
|
||||
|
||||
private:
|
||||
/**
|
||||
* This constant sets the maximum number of packets accepted per call.
|
||||
* Remember that one packet must be completely handled in one
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#include "fsfw/FSFW.h"
|
||||
#include "fsfw/tcdistribution/CCSDSDistributorIF.h"
|
||||
#include "fsfw/tcdistribution/CFDPDistributor.h"
|
||||
|
||||
|
@ -5,10 +6,6 @@
|
|||
|
||||
#include "fsfw/objectmanager/ObjectManager.h"
|
||||
|
||||
#ifndef FSFW_CFDP_DISTRIBUTOR_DEBUGGING
|
||||
#define FSFW_CFDP_DISTRIBUTOR_DEBUGGING 1
|
||||
#endif
|
||||
|
||||
CFDPDistributor::CFDPDistributor(uint16_t setApid, object_id_t setObjectId,
|
||||
object_id_t setPacketSource):
|
||||
TcDistributor(setObjectId), apid(setApid), checker(setApid),
|
||||
|
@ -18,7 +15,7 @@ CFDPDistributor::CFDPDistributor(uint16_t setApid, object_id_t setObjectId,
|
|||
CFDPDistributor::~CFDPDistributor() {}
|
||||
|
||||
CFDPDistributor::TcMqMapIter CFDPDistributor::selectDestination() {
|
||||
#if FSFW_CFDP_DISTRIBUTOR_DEBUGGING == 1
|
||||
#if FSFW_DEBUG_CFDP_DISTRIBUTOR == 1
|
||||
store_address_t storeId = this->currentMessage.getStorageId();
|
||||
#if FSFW_CPP_OSTREAM_ENABLED == 1
|
||||
sif::debug << "CFDPDistributor::handlePacket received: " << storeId.poolIndex << ", " <<
|
||||
|
|
Loading…
Reference in New Issue