FSFW Update #21
@ -19,7 +19,8 @@ public:
|
|||||||
/**
|
/**
|
||||||
* The constructor initializes the packet and sets all header information
|
* The constructor initializes the packet and sets all header information
|
||||||
* according to the passed parameters.
|
* according to the passed parameters.
|
||||||
* @param packetDataLength Sets the packet data length field and therefore specifies the size of the packet.
|
* @param packetDataLength Sets the packet data length field and therefore specifies
|
||||||
|
* the size of the packet.
|
||||||
* @param isTelecommand Sets the packet type field to either TC (true) or TM (false).
|
* @param isTelecommand Sets the packet type field to either TC (true) or TM (false).
|
||||||
* @param apid Sets the packet's APID field. The default value describes an idle packet.
|
* @param apid Sets the packet's APID field. The default value describes an idle packet.
|
||||||
* @param sequenceCount ets the packet's Source Sequence Count field.
|
* @param sequenceCount ets the packet's Source Sequence Count field.
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
SpacePacketBase::SpacePacketBase(const uint8_t* setAddress) {
|
SpacePacketBase::SpacePacketBase(const uint8_t* setAddress) {
|
||||||
this->data = reinterpret_cast<SpacePacketPointer*>(const_cast<uint8_t*>(setAddress));
|
this->data = reinterpret_cast<SpacePacketPointer*>(const_cast<uint8_t*>(setAddress));
|
||||||
}
|
}
|
||||||
|
|
||||||
SpacePacketBase::~SpacePacketBase() {
|
SpacePacketBase::~SpacePacketBase() {
|
||||||
@ -12,11 +12,11 @@ SpacePacketBase::~SpacePacketBase() {
|
|||||||
|
|
||||||
//CCSDS Methods:
|
//CCSDS Methods:
|
||||||
uint8_t SpacePacketBase::getPacketVersionNumber( void ) {
|
uint8_t SpacePacketBase::getPacketVersionNumber( void ) {
|
||||||
return (this->data->header.packet_id_h & 0b11100000) >> 5;
|
return (this->data->header.packet_id_h & 0b11100000) >> 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
ReturnValue_t SpacePacketBase::initSpacePacketHeader(bool isTelecommand,
|
ReturnValue_t SpacePacketBase::initSpacePacketHeader(bool isTelecommand,
|
||||||
bool hasSecondaryHeader, uint16_t apid, uint16_t sequenceCount) {
|
bool hasSecondaryHeader, uint16_t apid, uint16_t sequenceCount) {
|
||||||
if(data == nullptr) {
|
if(data == nullptr) {
|
||||||
#if FSFW_VERBOSE_LEVEL >= 1
|
#if FSFW_VERBOSE_LEVEL >= 1
|
||||||
#if FSFW_CPP_OSTREAM_ENABLED == 1
|
#if FSFW_CPP_OSTREAM_ENABLED == 1
|
||||||
@ -28,41 +28,42 @@ ReturnValue_t SpacePacketBase::initSpacePacketHeader(bool isTelecommand,
|
|||||||
#endif
|
#endif
|
||||||
return HasReturnvaluesIF::RETURN_FAILED;
|
return HasReturnvaluesIF::RETURN_FAILED;
|
||||||
}
|
}
|
||||||
//reset header to zero:
|
//reset header to zero:
|
||||||
memset(data, 0, sizeof(this->data->header) );
|
memset(data, 0, sizeof(this->data->header) );
|
||||||
//Set TC/TM bit.
|
//Set TC/TM bit.
|
||||||
data->header.packet_id_h = ((isTelecommand? 1 : 0)) << 4;
|
data->header.packet_id_h = ((isTelecommand? 1 : 0)) << 4;
|
||||||
//Set secondaryHeader bit
|
//Set secondaryHeader bit
|
||||||
data->header.packet_id_h |= ((hasSecondaryHeader? 1 : 0)) << 3;
|
data->header.packet_id_h |= ((hasSecondaryHeader? 1 : 0)) << 3;
|
||||||
this->setAPID( apid );
|
this->setAPID( apid );
|
||||||
//Always initialize as standalone packets.
|
//Always initialize as standalone packets.
|
||||||
data->header.sequence_control_h = 0b11000000;
|
data->header.sequence_control_h = 0b11000000;
|
||||||
setPacketSequenceCount(sequenceCount);
|
setPacketSequenceCount(sequenceCount);
|
||||||
return HasReturnvaluesIF::RETURN_OK;
|
return HasReturnvaluesIF::RETURN_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SpacePacketBase::isTelecommand( void ) {
|
bool SpacePacketBase::isTelecommand( void ) {
|
||||||
return (this->data->header.packet_id_h & 0b00010000) >> 4;
|
return (this->data->header.packet_id_h & 0b00010000) >> 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SpacePacketBase::hasSecondaryHeader( void ) {
|
bool SpacePacketBase::hasSecondaryHeader( void ) {
|
||||||
return (this->data->header.packet_id_h & 0b00001000) >> 3;
|
return (this->data->header.packet_id_h & 0b00001000) >> 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint16_t SpacePacketBase::getPacketId() {
|
uint16_t SpacePacketBase::getPacketId() {
|
||||||
return ( (this->data->header.packet_id_h) << 8 ) +
|
return ( (this->data->header.packet_id_h) << 8 ) +
|
||||||
this->data->header.packet_id_l;
|
this->data->header.packet_id_l;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint16_t SpacePacketBase::getAPID( void ) const {
|
uint16_t SpacePacketBase::getAPID( void ) const {
|
||||||
return ( (this->data->header.packet_id_h & 0b00000111) << 8 ) +
|
return ( (this->data->header.packet_id_h & 0b00000111) << 8 ) +
|
||||||
this->data->header.packet_id_l;
|
this->data->header.packet_id_l;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SpacePacketBase::setAPID( uint16_t new_apid ) {
|
void SpacePacketBase::setAPID( uint16_t new_apid ) {
|
||||||
//Use first three bits of new APID, but keep rest of packet id as it was (see specification).
|
// Use first three bits of new APID, but keep rest of packet id as it was (see specification).
|
||||||
this->data->header.packet_id_h = (this->data->header.packet_id_h & 0b11111000) | ( ( new_apid & 0x0700 ) >> 8 );
|
this->data->header.packet_id_h = (this->data->header.packet_id_h & 0b11111000) |
|
||||||
this->data->header.packet_id_l = ( new_apid & 0x00FF );
|
( ( new_apid & 0x0700 ) >> 8 );
|
||||||
|
this->data->header.packet_id_l = ( new_apid & 0x00FF );
|
||||||
}
|
}
|
||||||
|
|
||||||
void SpacePacketBase::setSequenceFlags( uint8_t sequenceflags ) {
|
void SpacePacketBase::setSequenceFlags( uint8_t sequenceflags ) {
|
||||||
@ -71,51 +72,52 @@ void SpacePacketBase::setSequenceFlags( uint8_t sequenceflags ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
uint16_t SpacePacketBase::getPacketSequenceControl( void ) {
|
uint16_t SpacePacketBase::getPacketSequenceControl( void ) {
|
||||||
return ( (this->data->header.sequence_control_h) << 8 )
|
return ( (this->data->header.sequence_control_h) << 8 )
|
||||||
+ this->data->header.sequence_control_l;
|
+ this->data->header.sequence_control_l;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t SpacePacketBase::getSequenceFlags( void ) {
|
uint8_t SpacePacketBase::getSequenceFlags( void ) {
|
||||||
return (this->data->header.sequence_control_h & 0b11000000) >> 6 ;
|
return (this->data->header.sequence_control_h & 0b11000000) >> 6 ;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint16_t SpacePacketBase::getPacketSequenceCount( void ) const {
|
uint16_t SpacePacketBase::getPacketSequenceCount( void ) const {
|
||||||
return ( (this->data->header.sequence_control_h & 0b00111111) << 8 )
|
return ( (this->data->header.sequence_control_h & 0b00111111) << 8 )
|
||||||
+ this->data->header.sequence_control_l;
|
+ this->data->header.sequence_control_l;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SpacePacketBase::setPacketSequenceCount( uint16_t new_count) {
|
void SpacePacketBase::setPacketSequenceCount( uint16_t new_count) {
|
||||||
this->data->header.sequence_control_h = ( this->data->header.sequence_control_h & 0b11000000 ) | ( ( (new_count%LIMIT_SEQUENCE_COUNT) & 0x3F00 ) >> 8 );
|
this->data->header.sequence_control_h = ( this->data->header.sequence_control_h & 0b11000000 ) |
|
||||||
this->data->header.sequence_control_l = ( (new_count%LIMIT_SEQUENCE_COUNT) & 0x00FF );
|
( ( (new_count%LIMIT_SEQUENCE_COUNT) & 0x3F00 ) >> 8 );
|
||||||
|
this->data->header.sequence_control_l = ( (new_count%LIMIT_SEQUENCE_COUNT) & 0x00FF );
|
||||||
}
|
}
|
||||||
|
|
||||||
uint16_t SpacePacketBase::getPacketDataLength() const {
|
uint16_t SpacePacketBase::getPacketDataLength() const {
|
||||||
return ( (this->data->header.packet_length_h) << 8 )
|
return ( (this->data->header.packet_length_h) << 8 )
|
||||||
+ this->data->header.packet_length_l;
|
+ this->data->header.packet_length_l;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SpacePacketBase::setPacketDataLength( uint16_t new_length) {
|
void SpacePacketBase::setPacketDataLength( uint16_t new_length) {
|
||||||
this->data->header.packet_length_h = ( ( new_length & 0xFF00 ) >> 8 );
|
this->data->header.packet_length_h = ( ( new_length & 0xFF00 ) >> 8 );
|
||||||
this->data->header.packet_length_l = ( new_length & 0x00FF );
|
this->data->header.packet_length_l = ( new_length & 0x00FF );
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t SpacePacketBase::getFullSize() {
|
size_t SpacePacketBase::getFullSize() {
|
||||||
//+1 is done because size in packet data length field is: size of data field -1
|
// +1 is done because size in packet data length field is: size of data field -1
|
||||||
return this->getPacketDataLength() + sizeof(this->data->header) + 1;
|
return this->getPacketDataLength() + sizeof(this->data->header) + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t* SpacePacketBase::getWholeData() {
|
uint8_t* SpacePacketBase::getWholeData() {
|
||||||
return (uint8_t*)this->data;
|
return (uint8_t*)this->data;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SpacePacketBase::setData( const uint8_t* p_Data ) {
|
void SpacePacketBase::setData( const uint8_t* p_Data ) {
|
||||||
this->data = (SpacePacketPointer*)p_Data;
|
this->data = (SpacePacketPointer*)p_Data;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t SpacePacketBase::getApidAndSequenceCount() const {
|
uint32_t SpacePacketBase::getApidAndSequenceCount() const {
|
||||||
return (getAPID() << 16) + getPacketSequenceCount();
|
return (getAPID() << 16) + getPacketSequenceCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t* SpacePacketBase::getPacketData() {
|
uint8_t* SpacePacketBase::getPacketData() {
|
||||||
return &(data->packet_data);
|
return &(data->packet_data);
|
||||||
}
|
}
|
||||||
|
@ -22,8 +22,8 @@
|
|||||||
* @ingroup tmtcpackets
|
* @ingroup tmtcpackets
|
||||||
*/
|
*/
|
||||||
struct SpacePacketPointer {
|
struct SpacePacketPointer {
|
||||||
CCSDSPrimaryHeader header;
|
CCSDSPrimaryHeader header;
|
||||||
uint8_t packet_data;
|
uint8_t packet_data;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -39,150 +39,151 @@ struct SpacePacketPointer {
|
|||||||
*/
|
*/
|
||||||
class SpacePacketBase {
|
class SpacePacketBase {
|
||||||
protected:
|
protected:
|
||||||
/**
|
/**
|
||||||
* A pointer to a structure which defines the data structure of
|
* A pointer to a structure which defines the data structure of
|
||||||
* the packet header.
|
* the packet header.
|
||||||
* To be hardware-safe, all elements are of byte size.
|
* To be hardware-safe, all elements are of byte size.
|
||||||
*/
|
*/
|
||||||
SpacePacketPointer* data;
|
SpacePacketPointer* data;
|
||||||
public:
|
public:
|
||||||
static const uint16_t LIMIT_APID = 2048; //2^1
|
static const uint16_t LIMIT_APID = 2048; //2^1
|
||||||
static const uint16_t LIMIT_SEQUENCE_COUNT = 16384; // 2^14
|
static const uint16_t LIMIT_SEQUENCE_COUNT = 16384; // 2^14
|
||||||
static const uint16_t APID_IDLE_PACKET = 0x7FF;
|
static const uint16_t APID_IDLE_PACKET = 0x7FF;
|
||||||
static const uint8_t TELECOMMAND_PACKET = 1;
|
static const uint8_t TELECOMMAND_PACKET = 1;
|
||||||
static const uint8_t TELEMETRY_PACKET = 0;
|
static const uint8_t TELEMETRY_PACKET = 0;
|
||||||
/**
|
/**
|
||||||
* This definition defines the CRC size in byte.
|
* This definition defines the CRC size in byte.
|
||||||
*/
|
*/
|
||||||
static const uint8_t CRC_SIZE = 2;
|
static const uint8_t CRC_SIZE = 2;
|
||||||
/**
|
/**
|
||||||
* This is the minimum size of a SpacePacket.
|
* This is the minimum size of a SpacePacket.
|
||||||
*/
|
*/
|
||||||
static const uint16_t MINIMUM_SIZE = sizeof(CCSDSPrimaryHeader) + CRC_SIZE;
|
static const uint16_t MINIMUM_SIZE = sizeof(CCSDSPrimaryHeader) + CRC_SIZE;
|
||||||
/**
|
/**
|
||||||
* This is the default constructor.
|
* This is the default constructor.
|
||||||
* It sets its internal data pointer to the address passed.
|
* It sets its internal data pointer to the address passed.
|
||||||
* @param set_address The position where the packet data lies.
|
* @param set_address The position where the packet data lies.
|
||||||
*/
|
*/
|
||||||
SpacePacketBase( const uint8_t* set_address );
|
SpacePacketBase( const uint8_t* set_address );
|
||||||
/**
|
/**
|
||||||
* No data is allocated, so the destructor is empty.
|
* No data is allocated, so the destructor is empty.
|
||||||
*/
|
*/
|
||||||
virtual ~SpacePacketBase();
|
virtual ~SpacePacketBase();
|
||||||
|
|
||||||
//CCSDS Methods:
|
//CCSDS Methods
|
||||||
/**
|
|
||||||
* Getter for the packet version number field.
|
|
||||||
* @return Returns the highest three bit of the packet in one byte.
|
|
||||||
*/
|
|
||||||
uint8_t getPacketVersionNumber( void );
|
|
||||||
/**
|
|
||||||
* This method checks the type field in the header.
|
|
||||||
* This bit specifies, if the command is interpreted as Telecommand of
|
|
||||||
* as Telemetry. For a Telecommand, the bit is set.
|
|
||||||
* @return Returns true if the bit is set and false if not.
|
|
||||||
*/
|
|
||||||
bool isTelecommand( void );
|
|
||||||
|
|
||||||
ReturnValue_t initSpacePacketHeader(bool isTelecommand, bool hasSecondaryHeader,
|
/**
|
||||||
uint16_t apid, uint16_t sequenceCount = 0);
|
* Getter for the packet version number field.
|
||||||
/**
|
* @return Returns the highest three bit of the packet in one byte.
|
||||||
* The CCSDS header provides a secondary header flag (the fifth-highest bit),
|
*/
|
||||||
* which is checked with this method.
|
uint8_t getPacketVersionNumber( void );
|
||||||
* @return Returns true if the bit is set and false if not.
|
/**
|
||||||
*/
|
* This method checks the type field in the header.
|
||||||
bool hasSecondaryHeader( void );
|
* This bit specifies, if the command is interpreted as Telecommand of
|
||||||
/**
|
* as Telemetry. For a Telecommand, the bit is set.
|
||||||
* Returns the complete first two bytes of the packet, which together form
|
* @return Returns true if the bit is set and false if not.
|
||||||
* the CCSDS packet id.
|
*/
|
||||||
* @return The CCSDS packet id.
|
bool isTelecommand( void );
|
||||||
*/
|
|
||||||
uint16_t getPacketId( void );
|
|
||||||
/**
|
|
||||||
* Returns the APID of a packet, which are the lowest 11 bit of the packet
|
|
||||||
* id.
|
|
||||||
* @return The CCSDS APID.
|
|
||||||
*/
|
|
||||||
uint16_t getAPID( void ) const;
|
|
||||||
/**
|
|
||||||
* Sets the APID of a packet, which are the lowest 11 bit of the packet
|
|
||||||
* id.
|
|
||||||
* @param The APID to set. The highest five bits of the parameter are
|
|
||||||
* ignored.
|
|
||||||
*/
|
|
||||||
void setAPID( uint16_t setAPID );
|
|
||||||
|
|
||||||
/**
|
ReturnValue_t initSpacePacketHeader(bool isTelecommand, bool hasSecondaryHeader,
|
||||||
|
uint16_t apid, uint16_t sequenceCount = 0);
|
||||||
|
/**
|
||||||
|
* The CCSDS header provides a secondary header flag (the fifth-highest bit),
|
||||||
|
* which is checked with this method.
|
||||||
|
* @return Returns true if the bit is set and false if not.
|
||||||
|
*/
|
||||||
|
bool hasSecondaryHeader( void );
|
||||||
|
/**
|
||||||
|
* Returns the complete first two bytes of the packet, which together form
|
||||||
|
* the CCSDS packet id.
|
||||||
|
* @return The CCSDS packet id.
|
||||||
|
*/
|
||||||
|
uint16_t getPacketId( void );
|
||||||
|
/**
|
||||||
|
* Returns the APID of a packet, which are the lowest 11 bit of the packet
|
||||||
|
* id.
|
||||||
|
* @return The CCSDS APID.
|
||||||
|
*/
|
||||||
|
uint16_t getAPID( void ) const;
|
||||||
|
/**
|
||||||
|
* Sets the APID of a packet, which are the lowest 11 bit of the packet
|
||||||
|
* id.
|
||||||
|
* @param The APID to set. The highest five bits of the parameter are
|
||||||
|
* ignored.
|
||||||
|
*/
|
||||||
|
void setAPID( uint16_t setAPID );
|
||||||
|
|
||||||
|
/**
|
||||||
* Sets the sequence flags of a packet, which are bit 17 and 18 in the space packet header.
|
* Sets the sequence flags of a packet, which are bit 17 and 18 in the space packet header.
|
||||||
* @param The sequence flags to set
|
* @param The sequence flags to set
|
||||||
*/
|
*/
|
||||||
void setSequenceFlags( uint8_t sequenceflags );
|
void setSequenceFlags( uint8_t sequenceflags );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the CCSDS packet sequence control field, which are the third and
|
* Returns the CCSDS packet sequence control field, which are the third and
|
||||||
* the fourth byte of the CCSDS primary header.
|
* the fourth byte of the CCSDS primary header.
|
||||||
* @return The CCSDS packet sequence control field.
|
* @return The CCSDS packet sequence control field.
|
||||||
*/
|
*/
|
||||||
uint16_t getPacketSequenceControl( void );
|
uint16_t getPacketSequenceControl( void );
|
||||||
/**
|
/**
|
||||||
* Returns the SequenceFlags, which are the highest two bit of the packet
|
* Returns the SequenceFlags, which are the highest two bit of the packet
|
||||||
* sequence control field.
|
* sequence control field.
|
||||||
* @return The CCSDS sequence flags.
|
* @return The CCSDS sequence flags.
|
||||||
*/
|
*/
|
||||||
uint8_t getSequenceFlags( void );
|
uint8_t getSequenceFlags( void );
|
||||||
/**
|
/**
|
||||||
* Returns the packet sequence count, which are the lowest 14 bit of the
|
* Returns the packet sequence count, which are the lowest 14 bit of the
|
||||||
* packet sequence control field.
|
* packet sequence control field.
|
||||||
* @return The CCSDS sequence count.
|
* @return The CCSDS sequence count.
|
||||||
*/
|
*/
|
||||||
uint16_t getPacketSequenceCount( void ) const;
|
uint16_t getPacketSequenceCount( void ) const;
|
||||||
/**
|
/**
|
||||||
* Sets the packet sequence count, which are the lowest 14 bit of the
|
* Sets the packet sequence count, which are the lowest 14 bit of the
|
||||||
* packet sequence control field.
|
* packet sequence control field.
|
||||||
* setCount is modulo-divided by \c LIMIT_SEQUENCE_COUNT to avoid overflows.
|
* setCount is modulo-divided by \c LIMIT_SEQUENCE_COUNT to avoid overflows.
|
||||||
* @param setCount The value to set the count to.
|
* @param setCount The value to set the count to.
|
||||||
*/
|
*/
|
||||||
void setPacketSequenceCount( uint16_t setCount );
|
void setPacketSequenceCount( uint16_t setCount );
|
||||||
/**
|
/**
|
||||||
* Returns the packet data length, which is the fifth and sixth byte of the
|
* Returns the packet data length, which is the fifth and sixth byte of the
|
||||||
* CCSDS Primary Header. The packet data length is the size of every kind
|
* CCSDS Primary Header. The packet data length is the size of every kind
|
||||||
* of data \b after the CCSDS Primary Header \b -1.
|
* of data \b after the CCSDS Primary Header \b -1.
|
||||||
* @return
|
* @return
|
||||||
* The CCSDS packet data length. uint16_t is sufficient,
|
* The CCSDS packet data length. uint16_t is sufficient,
|
||||||
* because this is limit in CCSDS standard
|
* because this is limit in CCSDS standard
|
||||||
*/
|
*/
|
||||||
uint16_t getPacketDataLength(void) const;
|
uint16_t getPacketDataLength(void) const;
|
||||||
/**
|
/**
|
||||||
* Sets the packet data length, which is the fifth and sixth byte of the
|
* Sets the packet data length, which is the fifth and sixth byte of the
|
||||||
* CCSDS Primary Header.
|
* CCSDS Primary Header.
|
||||||
* @param setLength The value of the length to set. It must fit the true
|
* @param setLength The value of the length to set. It must fit the true
|
||||||
* CCSDS packet data length . The packet data length is
|
* CCSDS packet data length . The packet data length is
|
||||||
* the size of every kind of data \b after the CCSDS
|
* the size of every kind of data \b after the CCSDS
|
||||||
* Primary Header \b -1.
|
* Primary Header \b -1.
|
||||||
*/
|
*/
|
||||||
void setPacketDataLength( uint16_t setLength );
|
void setPacketDataLength( uint16_t setLength );
|
||||||
|
|
||||||
//Helper methods:
|
// Helper methods
|
||||||
/**
|
/**
|
||||||
* This method returns a raw uint8_t pointer to the packet.
|
* This method returns a raw uint8_t pointer to the packet.
|
||||||
* @return A \c uint8_t pointer to the first byte of the CCSDS primary header.
|
* @return A \c uint8_t pointer to the first byte of the CCSDS primary header.
|
||||||
*/
|
*/
|
||||||
virtual uint8_t* getWholeData( void );
|
virtual uint8_t* getWholeData( void );
|
||||||
|
|
||||||
uint8_t* getPacketData();
|
uint8_t* getPacketData();
|
||||||
/**
|
/**
|
||||||
* With this method, the packet data pointer can be redirected to another
|
* With this method, the packet data pointer can be redirected to another
|
||||||
* location.
|
* location.
|
||||||
* @param p_Data A pointer to another raw Space Packet.
|
* @param p_Data A pointer to another raw Space Packet.
|
||||||
*/
|
*/
|
||||||
virtual void setData( const uint8_t* p_Data );
|
virtual void setData( const uint8_t* p_Data );
|
||||||
/**
|
/**
|
||||||
* This method returns the full raw packet size.
|
* This method returns the full raw packet size.
|
||||||
* @return The full size of the packet in bytes.
|
* @return The full size of the packet in bytes.
|
||||||
*/
|
*/
|
||||||
size_t getFullSize();
|
size_t getFullSize();
|
||||||
|
|
||||||
uint32_t getApidAndSequenceCount() const;
|
uint32_t getApidAndSequenceCount() const;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user