SatCat5
satcat5::ccsds_spp::BytesToSpp Class Reference

Detailed Description

Convert a raw byte-stream by inserting CCSDS-SPP headers.

This class reads a raw unformatted byte-stream, breaks it into chunks up to a maximum size (default 256 bytes), and inserts a CCSDS-SPP header at the start of each chunk. The modified SPP packet stream is then written to a designated destination.

Definition at line 258 of file ccsds_spp.h.

#include <ccsds_spp.h>

Collaboration diagram for satcat5::ccsds_spp::BytesToSpp:
[legend]

Public Member Functions

 BytesToSpp (satcat5::io::Readable *src, satcat5::ccsds_spp::Dispatch *dst, bool cmd, u16 apid, unsigned max_chunk=256)
 Set source, destination, APID, and chunk-size.
 
satcat5::io::BufferedStreamstrm ()
 Access the inner io::BufferedStream.
 

Protected Attributes

satcat5::ccsds_spp::Address m_dst
 
satcat5::io::BufferedStream m_strm
 

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