|
SatCat5
|
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>
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::BufferedStream * | strm () |
| Access the inner io::BufferedStream. | |
Protected Attributes | |
| satcat5::ccsds_spp::Address | m_dst |
| satcat5::io::BufferedStream | m_strm |