CCSDSPack
C++ Library for CCSDS Space Packet manipulation. i.e. generation, extraction, analisys and more
|
Represents a PUS Type B (Event Reporting) header. More...
#include <PusServices.h>
Public Member Functions | |
PusB ()=default | |
PusB (const uint8_t version, const uint8_t serviceType, const uint8_t serviceSubtype, const uint8_t sourceID, const uint8_t eventID, const uint16_t dataLength) | |
Constructs a PusB 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 | getEventID () 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_eventID {} |
uint16_t | m_dataLength {} |
const std::string | m_type = "PusB" |
const uint16_t | m_size = 8 |
Represents a PUS Type B (Event Reporting) header.
Contains fields used for event reporting.
Field Summary:
Definition at line 75 of file PusServices.h.
|
default |
|
inlineexplicit |
Constructs a PusB 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). |
eventID | Event identifier (16 bits). |
dataLength | Length of the event data (16 bits). |
Definition at line 88 of file PusServices.h.
|
overridevirtual |
takes a buffer if data (vector uint8) and creates the header
Implements CCSDS::SecondaryHeaderAbstract.
Definition at line 29 of file PusServices.cpp.
|
inlineoverridevirtual |
Gets the length of the data associated with the packet if applicable.
Implements CCSDS::SecondaryHeaderAbstract.
Definition at line 101 of file PusServices.h.
|
inline |
Definition at line 100 of file PusServices.h.
|
inline |
Definition at line 98 of file PusServices.h.
|
inline |
Definition at line 97 of file PusServices.h.
|
inlineoverridevirtual |
Gets the size of the header in bytes.
Implements CCSDS::SecondaryHeaderAbstract.
Definition at line 102 of file PusServices.h.
|
inline |
Definition at line 99 of file PusServices.h.
|
inlineoverridevirtual |
Retrieves the name of the packet.
Implements CCSDS::SecondaryHeaderAbstract.
Definition at line 103 of file PusServices.h.
|
inline |
Definition at line 96 of file PusServices.h.
|
overridevirtual |
Retrieves the serialized representation of the header.
Implements CCSDS::SecondaryHeaderAbstract.
Definition at line 41 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 94 of file PusServices.h.
|
private |
Definition at line 114 of file PusServices.h.
|
private |
Definition at line 113 of file PusServices.h.
|
private |
Definition at line 111 of file PusServices.h.
|
private |
Definition at line 110 of file PusServices.h.
|
private |
Definition at line 117 of file PusServices.h.
|
private |
Definition at line 112 of file PusServices.h.
|
private |
Definition at line 116 of file PusServices.h.
|
private |
Definition at line 109 of file PusServices.h.