22 static constexpr
unsigned DEBUG_VERBOSE = 0;
25 : SwitchPort(sw, vdst)
33 , m_rx_copy(src, this)
40 , m_rx_copy(src, &m_rx_cobs)
41 , m_rx_cobs(&m_rx_fcs)
43 , m_tx_fcs(&m_tx_cobs)
51 , m_rx_copy(src, &m_rx_slip)
52 , m_rx_slip(&m_rx_fcs)
54 , m_tx_fcs(&m_tx_slip)
61 : SwitchPort(sw, nullptr)
62 , ReadableRedirect(&m_egress)
A shared-memory Ethernet switch based on the MultiBuffer class.
Abstract API for reading byte-streams and packets.
Abstract API for writing byte-streams and packets.
The Log class creates and formats one log message.
Port adapter for COBS-encoded serial ports.
CobsAdapter(satcat5::eth::SwitchCore *sw, satcat5::io::Readable *src, satcat5::io::Writeable *dst)
Attach port to the Ethernet switch and its data source/sink.
Port adapter for MailBox, MailMap, etc.
MailAdapter(satcat5::eth::SwitchCore *sw, satcat5::io::Readable *src, satcat5::io::Writeable *dst)
Attach port to the Ethernet switch and its data source/sink.
Minimalist port adapter with no VLAN conversion.
Port adapter for SLIP-encoded serial ports.
SlipAdapter(satcat5::eth::SwitchCore *sw, satcat5::io::Readable *src, satcat5::io::Writeable *dst)
Attach port to the Ethernet switch and its data source/sink.
Back-to-back connection of one SwitchCore to another SwitchCore.
Parent class for handling switch egress and VLAN functions.
Diagnostic logging to UART and/or Ethernet ports.
constexpr s8 DEBUG
Define basic priority codes for log messages.
Adapter definitions for using generic I/O objects with eth::SwitchCore.