|
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 std::uint8_t version, const std::uint8_t serviceType, const std::uint8_t serviceSubtype, const std::uint8_t sourceID, const std::uint32_t dataLength) | |
| Constructs a PusA object with all fields explicitly set. | |
| std::uint8_t | getVersion () const |
| std::uint8_t | getServiceType () const |
| std::uint8_t | getServiceSubtype () const |
| std::uint8_t | getSourceID () const |
| std::uint16_t | getDataLength () const |
| std::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< std::uint8_t > | serialize () const override |
| Retrieves the serialized representation of the header. | |
| CCSDS::ResultBool | deserialize (const std::vector< std::uint8_t > &data) override |
| takes a buffer if data (vector std::uint8) and creates the header | |
| void | update (CCSDS::DataField *dataField) override |
| Defines how the packet secondary header is updated using the data field as reference. | |
| CCSDS::ResultBool | loadFromConfig (const ::Config &cfg) override |
Public Member Functions inherited from CCSDS::SecondaryHeaderAbstract | |
| virtual | ~SecondaryHeaderAbstract ()=default |
| virtual ResultBool | loadFromConfig (const Config &config)=0 |
| void | setVariableLength (const bool bEnable) |
Private Attributes | |
| std::uint8_t | m_version {} |
| std::uint8_t | m_serviceType {} |
| std::uint8_t | m_serviceSubType {} |
| std::uint8_t | m_sourceID {} |
| std::uint16_t | m_dataLength {} |
| const std::string | m_type = "PusA" |
| const std::uint16_t | m_size = 6 |
Additional Inherited Members | |
Public Attributes inherited from CCSDS::SecondaryHeaderAbstract | |
| bool | variableLength {false} |
Represents a PUS Type A (Telemetry) header.
Contains fields used for telemetry data.
Field Summary:
Definition at line 24 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 36 of file PusServices.h.
|
overridevirtual |
takes a buffer if data (vector std::uint8) and creates the header
Implements CCSDS::SecondaryHeaderAbstract.
Definition at line 6 of file PusServices.cpp.
|
inline |
Definition at line 47 of file PusServices.h.
|
inline |
Definition at line 45 of file PusServices.h.
|
inline |
Definition at line 44 of file PusServices.h.
|
inlineoverridevirtual |
Gets the size of the header in bytes.
Implements CCSDS::SecondaryHeaderAbstract.
Definition at line 48 of file PusServices.h.
|
inline |
Definition at line 46 of file PusServices.h.
|
inlineoverridevirtual |
Retrieves the name of the packet.
Implements CCSDS::SecondaryHeaderAbstract.
Definition at line 49 of file PusServices.h.
|
inline |
Definition at line 43 of file PusServices.h.
|
override |
Definition at line 106 of file PusServices.cpp.
|
overridevirtual |
Retrieves the serialized representation of the header.
Implements CCSDS::SecondaryHeaderAbstract.
Definition at line 18 of file PusServices.cpp.
|
overridevirtual |
Defines how the packet secondary header is updated using the data field as reference.
This method is called every time a data get is performed from the packet, that is if update is enabled and method successfully registered.
| dataField |
Implements CCSDS::SecondaryHeaderAbstract.
Definition at line 31 of file PusServices.cpp.
|
private |
Definition at line 65 of file PusServices.h.
|
private |
Definition at line 63 of file PusServices.h.
|
private |
Definition at line 62 of file PusServices.h.
|
private |
Definition at line 68 of file PusServices.h.
|
private |
Definition at line 64 of file PusServices.h.
|
private |
Definition at line 67 of file PusServices.h.
|
private |
Definition at line 61 of file PusServices.h.