CCSDSPack
C++ Library for CCSDS Space Packet manipulation. i.e. generation, extraction, analisys and more
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
CCSDS::PrimaryHeader Struct Reference

Represents the primary header of a CCSDS packet. More...

#include <CCSDSHeader.h>

Public Member Functions

 PrimaryHeader (const uint8_t versionNumber_value, const uint8_t type_value, const uint8_t dataFieldHeaderFlag_value, const uint16_t APID_value, const uint8_t sequenceFlag_value, const uint16_t sequenceCount_value, const uint16_t dataLength_value)
 Constructs a PrimaryHeader with specified field values.
 

Public Attributes

uint8_t versionNumber {}
 3 bit first of packet identification
 
uint8_t type {}
 1 bit second of packet identification
 
uint8_t dataFieldHeaderFlag {}
 1 bit third of packet identification
 
uint16_t APID {}
 11 bit last of packet identification
 
uint8_t sequenceFlags {}
 2 bit first of sequence control
 
uint16_t sequenceCount {}
 14 bit last of sequence control
 
uint16_t dataLength {}
 16 bits
 

Detailed Description

Represents the primary header of a CCSDS packet.

This structure is used to encapsulate the key fields of the CCSDS primary header.

Fields:

Definition at line 41 of file CCSDSHeader.h.

Constructor & Destructor Documentation

◆ PrimaryHeader()

CCSDS::PrimaryHeader::PrimaryHeader ( const uint8_t  versionNumber_value,
const uint8_t  type_value,
const uint8_t  dataFieldHeaderFlag_value,
const uint16_t  APID_value,
const uint8_t  sequenceFlag_value,
const uint16_t  sequenceCount_value,
const uint16_t  dataLength_value 
)
inline

Constructs a PrimaryHeader with specified field values.

Parameters
versionNumber_value3-bit version number.
type_value1-bit type value (0 or 1).
dataFieldHeaderFlag_value1-bit data field header flag.
APID_value11-bit application process identifier.
sequenceFlag_value2-bit sequence flag.
sequenceCount_value14-bit sequence count.
dataLength_value16-bit data length.

Definition at line 66 of file CCSDSHeader.h.

68 : versionNumber(versionNumber_value), type(type_value),
69 dataFieldHeaderFlag(dataFieldHeaderFlag_value),
70 APID(APID_value), sequenceFlags(sequenceFlag_value),
71 sequenceCount(sequenceCount_value),
72 dataLength(dataLength_value) {
73 }
uint8_t type
1 bit second of packet identification
Definition CCSDSHeader.h:44
uint8_t dataFieldHeaderFlag
1 bit third of packet identification
Definition CCSDSHeader.h:45
uint16_t sequenceCount
14 bit last of sequence control
Definition CCSDSHeader.h:50
uint8_t sequenceFlags
2 bit first of sequence control
Definition CCSDSHeader.h:49
uint8_t versionNumber
3 bit first of packet identification
Definition CCSDSHeader.h:43
uint16_t dataLength
16 bits
Definition CCSDSHeader.h:53
uint16_t APID
11 bit last of packet identification
Definition CCSDSHeader.h:46

Member Data Documentation

◆ APID

uint16_t CCSDS::PrimaryHeader::APID {}

11 bit last of packet identification

Definition at line 46 of file CCSDSHeader.h.

46{};

◆ dataFieldHeaderFlag

uint8_t CCSDS::PrimaryHeader::dataFieldHeaderFlag {}

1 bit third of packet identification

Definition at line 45 of file CCSDSHeader.h.

45{};

◆ dataLength

uint16_t CCSDS::PrimaryHeader::dataLength {}

16 bits

Definition at line 53 of file CCSDSHeader.h.

53{};

◆ sequenceCount

uint16_t CCSDS::PrimaryHeader::sequenceCount {}

14 bit last of sequence control

Definition at line 50 of file CCSDSHeader.h.

50{};

◆ sequenceFlags

uint8_t CCSDS::PrimaryHeader::sequenceFlags {}

2 bit first of sequence control

Definition at line 49 of file CCSDSHeader.h.

49{};

◆ type

uint8_t CCSDS::PrimaryHeader::type {}

1 bit second of packet identification

Definition at line 44 of file CCSDSHeader.h.

44{};

◆ versionNumber

uint8_t CCSDS::PrimaryHeader::versionNumber {}

3 bit first of packet identification

Definition at line 43 of file CCSDSHeader.h.

43{};

The documentation for this struct was generated from the following file: