CCSDSPack
C++ Library for CCSDS Space Packet manipulation. i.e. generation, extraction, analisys and more
|
Represents a PUS Type A (Telemetry) header. More...
#include <PusServices.h>
Public Member Functions | |
PusA ()=default | |
PusA (const uint8_t version, const uint8_t serviceType, const uint8_t serviceSubtype, const uint8_t sourceID, const uint32_t dataLength) | |
Constructs a PusA 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 | 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_dataLength {} |
const std::string | m_type = "PusA" |
const uint16_t | m_size = 6 |
Represents a PUS Type A (Telemetry) header.
Contains fields used for telemetry data.
Field Summary:
Definition at line 19 of file PusServices.h.
|
default |
|
inlineexplicit |
Constructs a PusA 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). |
dataLength | Length of the telemetry data (16 bits). |
Definition at line 31 of file PusServices.h.
|
overridevirtual |
takes a buffer if data (vector uint8) and creates the header
Implements CCSDS::SecondaryHeaderAbstract.
Definition at line 4 of file PusServices.cpp.
|
inlineoverridevirtual |
Gets the length of the data associated with the packet if applicable.
Implements CCSDS::SecondaryHeaderAbstract.
Definition at line 44 of file PusServices.h.
|
inline |
Definition at line 42 of file PusServices.h.
|
inline |
Definition at line 41 of file PusServices.h.
|
inlineoverridevirtual |
Gets the size of the header in bytes.
Implements CCSDS::SecondaryHeaderAbstract.
Definition at line 45 of file PusServices.h.
|
inline |
Definition at line 43 of file PusServices.h.
|
inlineoverridevirtual |
Retrieves the name of the packet.
Implements CCSDS::SecondaryHeaderAbstract.
Definition at line 46 of file PusServices.h.
|
inline |
Definition at line 40 of file PusServices.h.
|
overridevirtual |
Retrieves the serialized representation of the header.
Implements CCSDS::SecondaryHeaderAbstract.
Definition at line 16 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 38 of file PusServices.h.
|
private |
Definition at line 56 of file PusServices.h.
|
private |
Definition at line 54 of file PusServices.h.
|
private |
Definition at line 53 of file PusServices.h.
|
private |
Definition at line 59 of file PusServices.h.
|
private |
Definition at line 55 of file PusServices.h.
|
private |
Definition at line 58 of file PusServices.h.
|
private |
Definition at line 52 of file PusServices.h.