added pus a tc
This commit is contained in:
parent
fb7b059137
commit
537a30a4de
7
FSFW.h
Normal file
7
FSFW.h
Normal file
@ -0,0 +1,7 @@
|
||||
#ifndef FSFW_FSFW_H_
|
||||
#define FSFW_FSFW_H_
|
||||
|
||||
#include "FSFWConfig.h"
|
||||
|
||||
|
||||
#endif /* FSFW_FSFW_H_ */
|
@ -1,6 +1,7 @@
|
||||
target_sources(${LIB_FSFW_NAME}
|
||||
PRIVATE
|
||||
TcPacketBase.cpp
|
||||
TcPacketPusA.cpp
|
||||
TcPacketStored.cpp
|
||||
TmPacketBase.cpp
|
||||
TmPacketMinimal.cpp
|
||||
|
@ -4,31 +4,6 @@
|
||||
#include "../../tmtcpacket/SpacePacketBase.h"
|
||||
#include <cstddef>
|
||||
|
||||
|
||||
/**
|
||||
* This struct defines a byte-wise structured PUS TC Data Field Header.
|
||||
* Any optional fields in the header must be added or removed here.
|
||||
* Currently, the Source Id field is present with one byte.
|
||||
* @ingroup tmtcpackets
|
||||
*/
|
||||
struct PUSTcDataFieldHeader {
|
||||
uint8_t version_type_ack;
|
||||
uint8_t service_type;
|
||||
uint8_t service_subtype;
|
||||
uint8_t source_id;
|
||||
};
|
||||
|
||||
/**
|
||||
* This struct defines the data structure of a PUS Telecommand Packet when
|
||||
* accessed via a pointer.
|
||||
* @ingroup tmtcpackets
|
||||
*/
|
||||
struct TcPacketPointer {
|
||||
CCSDSPrimaryHeader primary;
|
||||
PUSTcDataFieldHeader dataField;
|
||||
uint8_t appData;
|
||||
};
|
||||
|
||||
/**
|
||||
* This class is the basic data handler for any ECSS PUS Telecommand packet.
|
||||
*
|
||||
|
3
tmtcpacket/pus/TcPacketPusA.cpp
Normal file
3
tmtcpacket/pus/TcPacketPusA.cpp
Normal file
@ -0,0 +1,3 @@
|
||||
#include "TcPacketPusA.h"
|
||||
|
||||
|
40
tmtcpacket/pus/TcPacketPusA.h
Normal file
40
tmtcpacket/pus/TcPacketPusA.h
Normal file
@ -0,0 +1,40 @@
|
||||
#ifndef FSFW_TMTCPACKET_PUS_TCPACKETPUSA_H_
|
||||
#define FSFW_TMTCPACKET_PUS_TCPACKETPUSA_H_
|
||||
|
||||
#include "ccsds_header.h"
|
||||
#include "TcPacketBase.h"
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
/**
|
||||
* This struct defines a byte-wise structured PUS TC A Data Field Header.
|
||||
* Any optional fields in the header must be added or removed here.
|
||||
* Currently, the Source Id field is present with one byte.
|
||||
* @ingroup tmtcpackets
|
||||
*/
|
||||
struct PUSTcDataFieldHeader {
|
||||
uint8_t version_type_ack;
|
||||
uint8_t service_type;
|
||||
uint8_t service_subtype;
|
||||
uint8_t source_id;
|
||||
};
|
||||
|
||||
/**
|
||||
* This struct defines the data structure of a PUS Telecommand A packet when
|
||||
* accessed via a pointer.
|
||||
* @ingroup tmtcpackets
|
||||
*/
|
||||
struct TcPacketPointer {
|
||||
CCSDSPrimaryHeader primary;
|
||||
PUSTcDataFieldHeader dataField;
|
||||
uint8_t appData;
|
||||
};
|
||||
|
||||
|
||||
class TcPacketPusA: public TcPacketBase {
|
||||
public:
|
||||
private:
|
||||
};
|
||||
|
||||
|
||||
#endif /* FSFW_TMTCPACKET_PUS_TCPACKETPUSA_H_ */
|
4
tmtcpacket/pus/TcPacketPusC.cpp
Normal file
4
tmtcpacket/pus/TcPacketPusC.cpp
Normal file
@ -0,0 +1,4 @@
|
||||
#include "TcPacketPusC.h"
|
||||
|
||||
|
||||
|
8
tmtcpacket/pus/TcPacketPusC.h
Normal file
8
tmtcpacket/pus/TcPacketPusC.h
Normal file
@ -0,0 +1,8 @@
|
||||
#ifndef FSFW_TMTCPACKET_PUS_TCPACKETPUSC_H_
|
||||
#define FSFW_TMTCPACKET_PUS_TCPACKETPUSC_H_
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif /* FSFW_TMTCPACKET_PUS_TCPACKETPUSC_H_ */
|
Loading…
Reference in New Issue
Block a user