updating code from Flying Laptop

This is the framework of Flying Laptop OBSW version A.13.0.
This commit is contained in:
2018-07-12 16:29:32 +02:00
parent 1d22a6c97e
commit 575f70ba03
395 changed files with 12807 additions and 8404 deletions

View File

@ -1,10 +1,3 @@
/*
* PUSDistributor.h
*
* Created on: 18.06.2012
* Author: baetz
*/
#ifndef PUSDISTRIBUTOR_H_
#define PUSDISTRIBUTOR_H_
@ -21,7 +14,25 @@
* or failure messages.
* \ingroup tc_distribution
*/
class PUSDistributor : public TcDistributor, public PUSDistributorIF, public AcceptsTelecommandsIF {
class PUSDistributor: public TcDistributor,
public PUSDistributorIF,
public AcceptsTelecommandsIF {
public:
/**
* The ctor passes \c set_apid to the checker class and calls the TcDistribution ctor with a certain object id.
* @param setApid The APID of this receiving Application.
* @param setObjectId Object ID of the distributor itself
* @param setPacketSource Object ID of the source of TC packets. Must implement CCSDSDistributorIF.
*/
PUSDistributor(uint16_t setApid, object_id_t setObjectId, object_id_t setPacketSource);
/**
* The destructor is empty.
*/
virtual ~PUSDistributor();
ReturnValue_t registerService(AcceptsTelecommandsIF* service);
MessageQueueId_t getRequestQueue();
uint16_t getIdentifier();
ReturnValue_t initialize();
protected:
/**
* This attribute contains the class, that performs a formal packet check.
@ -30,15 +41,17 @@ protected:
/**
* With this class, verification messages are sent to the TC Verification service.
*/
VerificationReporter verify_channel;
VerificationReporter verifyChannel;
/**
* The currently handled packet is stored here.
*/
TcPacketStored current_packet;
TcPacketStored currentPacket;
/**
* With this variable, the current check status is stored to generate acceptance messages later.
*/
ReturnValue_t tc_status;
ReturnValue_t tcStatus;
const object_id_t packetSource;
/**
* This method reads the packet service, checks if such a service is registered and forwards the packet to the destination.
* It also initiates the formal packet check and sending of verification messages.
@ -48,24 +61,7 @@ protected:
/**
* The callback here handles the generation of acceptance success/failure messages.
*/
ReturnValue_t callbackAfterSending( ReturnValue_t queueStatus );
public:
/**
* The ctor passes \c set_apid to the checker class and calls the TcDistribution ctor with a certain object id.
* @param set_apid The APID of this receiving Application.
*/
PUSDistributor( uint16_t set_apid );
/**
* The destructor is empty.
*/
virtual ~PUSDistributor();
ReturnValue_t registerService( AcceptsTelecommandsIF* service );
MessageQueueId_t getRequestQueue();
uint16_t getIdentifier();
ReturnValue_t initialize();
ReturnValue_t callbackAfterSending(ReturnValue_t queueStatus);
};
#endif /* PUSDISTRIBUTOR_H_ */