SatCat5
satcat5::ccsds_spp::SppToBytes Class Reference

Detailed Description

Convert a CCSDS-SPP packet stream by removing CCSDS-SPP headers.

This class implements the ccsds_spp::Protocol API, accepting SPP packets with a specified APID. For each such packet, it removes the SPP header and copies user data to the specified destination.

See also
ccsds_spp::Dispatch, ccsds_spp::Packetizer.

Definition at line 280 of file ccsds_spp.h.

#include <ccsds_spp.h>

Inheritance diagram for satcat5::ccsds_spp::SppToBytes:
[legend]
Collaboration diagram for satcat5::ccsds_spp::SppToBytes:
[legend]

Public Member Functions

 SppToBytes (satcat5::ccsds_spp::Dispatch *src, satcat5::io::Writeable *dst, u16 apid)
 Set source, destination, and APID.
 
void frame_rcvd (satcat5::io::LimitedRead &src) override
 For each SPP frame, remove header and forward data.
 

Protected Attributes

satcat5::io::Writeable *const m_dst
 
satcat5::ccsds_spp::Dispatch *const m_iface
 Pointer to the parent interface.
 
satcat5::net::Type m_filter
 Incoming packet filter.
 

Private Attributes

satcat5::net::Protocolm_next
 Linked list of Protocols.
 

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