SatCat5
satcat5::ccsds_aos::Header Struct Reference

Detailed Description

CCSDS-AOS transfer frame header.

See also
ccsds_aos.h. Helper object for the CCSDS-AOS transfer frame header. TODO: Add support for frame header error control field?

Definition at line 62 of file ccsds_aos.h.

#include <ccsds_aos.h>

Public Member Functions

constexpr Header ()
 Basic constructor sets frame count to zero.
 
 Header (const Header &t)=default
 
Headeroperator= (const Header &t)=default
 
constexpr Header (u8 scid, u8 vcid)
 Constructor with known SCID and VCID.
 
u16 version () const
 < Transfer frame version number
 
u8 scid () const
 < Spacecraft ID
 
u8 vcid () const
 < Virtual Channel ID
 
bool replay () const
 < Replay flag?
 
void write_to (satcat5::io::Writeable *wr) const
 Write this header to a stream.
 
bool read_from (satcat5::io::Readable *rd)
 Read from stream, populating header fields.
 
Headeroperator++ ()
 Increment the Virtual Channel Frame Count.
 

Static Public Member Functions

static constexpr u32 pack_scid (u8 scid)
 Convert raw SCID to the internal packed format.
 
static constexpr u32 pack_vcid (u8 vcid)
 Convert raw VCID to the internal packed format.
 

Public Attributes

u16 id
 Spaceraft ID + Virtual Channel ID.
 
u8 signal
 Signaling field.
 
u32 count
 Virtual Channel Frame Count.
 

The documentation for this struct was generated from the following files: