Crate ccsds_primary_header[−][src]
This crate provides an implementation of the CCSDS Primary Header defined in the CCSDS Space Packet Protocol standards document.
This packet header is used in space applications, including the International Space Station and many cubsat applications, among many other.
The PrimaryHeader struct is defined in such a way that it is laid out in memory as defined by the standard, including bitfields and big endian byte order. To support this layout the fields are accessed through getters/setters rather then through direct access.
Header fields that have enumerations are retrieved as enums.
Structs
| ControlWord |
The control word is the first word of the primary header. |
| LengthWord | |
| PrimaryHeader |
The PrimaryHeader struct represents a CCSDS Primary header. Its representation in memory matches the CCSDS standard. |
| SequenceWord |
Enums
| PacketType |
The PacketType indicates whether the packet is a command (Command) or a telemetry (Data) packet. |
| SecondaryHeaderFlag |
The secondary header flag indicates whether there is another header following the primary header (Present) or not (NotPresent). |
| SeqFlag |
The sequence flag indicates the interpretation of the sequence count. Continuation- the sequence count indicates the block in a series of packets containing segmented data FirstSegement- the packet is the first in a series of segemented packets. LastSegement- the packet is the last in a series of segemented packets. Unsegmented- the sequence count is an incrementing counter used to distinguish packets. |
Constants
| CCSDS_MIN_LENGTH | |
| CCSDS_MIN_PACKET_LENGTH_BYTES | |
| CCSDS_PRI_HEADER_SIZE_BYTES | |
| CCSDS_VERSION |