ConfigBus core definitions.
Driver for the ConfigBus timer.
Traffic statistics polling.
NetworkStats(satcat5::cfg::ConfigBus *cfg, unsigned devaddr)
Construct a memory-map for the designated ConfigBus device.
satcat5::cfg::TrafficStats get_port(unsigned idx)
Read most recent statistics for the Nth port.
void refresh_now()
Immediately refresh statistics for every port.
Pointer-like wrapper for one or more ConfigBus registers.
Core event-processing loop for SatCat5 software.
Data structure for reading per-port traffic statistics.
s32 delta_freq
Net frequency offset (see above)
u8 errct_ovr_rx
Rx-FIFO overflow (rare)
u32 bcast_frames
Broadcast frames received from device.
u32 sent_frames
Total frames sent from switch to device.
u32 bcast_bytes
Broadcast bytes received from device.
u8 errct_ptp_tx
TX PTP packets with bad tstamps.
u8 errct_mac
MAC/PHY errors.
u16 rate_mbps
Link rate in Mbps.
u32 errct_total() const
Total errors across all types.
u8 errct_ovr_tx
Tx-FIFO overflow (common)
u8 errct_pkt
Packet errors (bad checksum, length, etc.)
u32 rcvd_bytes
Total bytes received from device.
u32 sent_bytes
Total bytes sent from switch to device.
u8 status
Port status (Varies by port)
u32 rcvd_frames
Total frames received from device.
u8 errct_ptp_rx
RX PTP packets with bad tstamps.