Skip to main content

Module ccsds

Module ccsds 

Source
Expand description

CCSDS Space Packet framing.

A telemetry file is a bare concatenation of packets with no index. Each begins with the six-byte primary header of CCSDS 133.0-B, whose last two octets give the length count C = (octets in the data field) − 1, so a packet is 6 + C + 1 bytes long.

Some ground-system “raw record” formats prepend a per-packet wrapper; skip_header_bytes steps over it. The SUDA test file in this repository needs four.

Structs§

PacketIter
Iterates the CCSDS packets in a byte stream.
PacketReader
Reads CCSDS space packets sequentially from an I/O source.
SpacePacketBytes
A view of one CCSDS packet, with its primary header fields decoded.

Enums§

FramingError
A malformed packet stream.
PacketReadError
An error encountered while reading a packet stream.

Constants§

PRIMARY_HEADER_BYTES
Size of the CCSDS primary header.