CCSDSPack
C++ Library for CCSDS Space Packet manipulation. i.e. generation, extraction, analisys and more
|
Represents a PUS Type C (Time Code) header. More...
#include <PusServices.h>
Public Member Functions | |
PusC ()=default | |
PusC (const uint8_t version, const uint8_t serviceType, const uint8_t serviceSubtype, const uint8_t sourceID, const uint16_t timeCode, const uint16_t dataLength) | |
Constructs a PusC object with all fields explicitly set. | |
void | setDataLength (const uint16_t dataLength) override |
Sets the length of the data associated with the packet. | |
uint8_t | getVersion () const |
uint8_t | getServiceType () const |
uint8_t | getServiceSubtype () const |
uint8_t | getSourceID () const |
uint16_t | getTimeCode () const |
uint16_t | getDataLength () const override |
Gets the length of the data associated with the packet if applicable. | |
uint16_t | getSize () const override |
Gets the size of the header in bytes. | |
std::string | getType () const override |
Retrieves the name of the packet. | |
std::vector< uint8_t > | serialize () const override |
Retrieves the serialized representation of the header. | |
CCSDS::ResultBool | deserialize (const std::vector< uint8_t > &data) override |
takes a buffer if data (vector uint8) and creates the header | |
![]() | |
virtual | ~SecondaryHeaderAbstract ()=default |
Private Attributes | |
uint8_t | m_version {} |
uint8_t | m_serviceType {} |
uint8_t | m_serviceSubType {} |
uint8_t | m_sourceID {} |
uint16_t | m_timeCode {} |
uint16_t | m_dataLength {} |
const std::string | m_type = "PusC" |
const uint16_t | m_size = 8 |
Represents a PUS Type C (Time Code) header.
Contains fields used for time synchronization.
Field Summary:
Definition at line 133 of file PusServices.h.
|
default |
|
inlineexplicit |
Constructs a PusC object with all fields explicitly set.
version | PUS version (3 bits). |
serviceType | Service type (8 bits). |
serviceSubtype | Service subtype (8 bits). |
sourceID | Source identifier (8 bits). |
timeCode | Time code value (16 bits). |
dataLength | Length of the time data (16 bits). |
Definition at line 146 of file PusServices.h.
|
overridevirtual |
takes a buffer if data (vector uint8) and creates the header
Implements CCSDS::SecondaryHeaderAbstract.
Definition at line 56 of file PusServices.cpp.
|
inlineoverridevirtual |
Gets the length of the data associated with the packet if applicable.
Implements CCSDS::SecondaryHeaderAbstract.
Definition at line 160 of file PusServices.h.
|
inline |
Definition at line 157 of file PusServices.h.
|
inline |
Definition at line 156 of file PusServices.h.
|
inlineoverridevirtual |
Gets the size of the header in bytes.
Implements CCSDS::SecondaryHeaderAbstract.
Definition at line 161 of file PusServices.h.
|
inline |
Definition at line 158 of file PusServices.h.
|
inline |
Definition at line 159 of file PusServices.h.
|
inlineoverridevirtual |
Retrieves the name of the packet.
Implements CCSDS::SecondaryHeaderAbstract.
Definition at line 162 of file PusServices.h.
|
inline |
Definition at line 155 of file PusServices.h.
|
overridevirtual |
Retrieves the serialized representation of the header.
Implements CCSDS::SecondaryHeaderAbstract.
Definition at line 69 of file PusServices.cpp.
|
inlineoverridevirtual |
Sets the length of the data associated with the packet.
dataLength | Length of the data in bytes. |
Implements CCSDS::SecondaryHeaderAbstract.
Definition at line 153 of file PusServices.h.
|
private |
Definition at line 173 of file PusServices.h.
|
private |
Definition at line 170 of file PusServices.h.
|
private |
Definition at line 169 of file PusServices.h.
|
private |
Definition at line 176 of file PusServices.h.
|
private |
Definition at line 171 of file PusServices.h.
|
private |
Definition at line 172 of file PusServices.h.
|
private |
Definition at line 175 of file PusServices.h.
|
private |
Definition at line 168 of file PusServices.h.