33 lines
933 B
C++
33 lines
933 B
C++
#ifndef FSFW_TCDISTRIBUTION_TCPACKETCHECKIF_H_
|
|
#define FSFW_TCDISTRIBUTION_TCPACKETCHECKIF_H_
|
|
|
|
#include "../returnvalues/HasReturnvaluesIF.h"
|
|
|
|
// TODO TcPacketStoredBase is currently only for PUS packets. not for CFDP packets
|
|
class TcPacketStoredBase;
|
|
|
|
/**
|
|
* This interface is used by PacketCheckers for PUS packets and CFDP packets .
|
|
* @ingroup tc_distribution
|
|
*/
|
|
class TcPacketCheckIF {
|
|
public:
|
|
/**
|
|
* The empty virtual destructor.
|
|
*/
|
|
virtual ~TcPacketCheckIF() {
|
|
}
|
|
|
|
/**
|
|
* This is the actual method to formally check a certain Packet.
|
|
* The packet's Application Data can not be checked here.
|
|
* @param current_packet The packet to check
|
|
* @return - @c RETURN_OK on success.
|
|
* - @c INCORRECT_CHECKSUM if checksum is invalid.
|
|
* - @c ILLEGAL_APID if APID does not match.
|
|
*/
|
|
virtual ReturnValue_t checkPacket(TcPacketStoredBase* currentPacket) = 0;
|
|
};
|
|
|
|
#endif /* FSFW_TCDISTRIBUTION_TCPACKETCHECKIF_H_ */
|