SatCat5
satcat5::eth::SwitchLogHardware Class Reference

Detailed Description

Poll a hardware switch or router for log data.

Definition at line 152 of file eth_sw_log.h.

#include <eth_sw_log.h>

Inheritance diagram for satcat5::eth::SwitchLogHardware:
[legend]
Collaboration diagram for satcat5::eth::SwitchLogHardware:
[legend]

Public Member Functions

 SwitchLogHardware (satcat5::eth::SwitchLogHandler *dst, satcat5::cfg::Register src)
 Link this object to a log-writer and a data source. More...
 
void timer_once (unsigned msec)
 Configure a one-time notification after X milliseconds.
 
void timer_every (unsigned msec)
 Configure a repeating notification every X milliseconds.
 
void timer_stop ()
 Stop all future notifications.
 
unsigned timer_interval () const
 Accessor for recurring timer interval, if one is set.
 
unsigned timer_remaining () const
 Accessor for time to next event, if one is set.
 

Static Public Member Functions

static unsigned count_timer ()
 Count all objects of this type, including idle timers.
 

Protected Member Functions

void timer_event () override
 Child class MUST override this method.
 

Protected Attributes

satcat5::eth::SwitchLogHandler *const m_dst
 
satcat5::cfg::Register m_src
 
satcat5::io::ArrayWriteStatic< SwitchLogMessage::LEN_BYTESm_buff
 

Private Member Functions

void query (unsigned elapsed_msec)
 

Private Attributes

satcat5::poll::Timerm_next
 
unsigned m_trem
 
unsigned m_tnext
 

Constructor & Destructor Documentation

◆ SwitchLogHardware()

SwitchLogHardware::SwitchLogHardware ( satcat5::eth::SwitchLogHandler dst,
satcat5::cfg::Register  src 
)

Link this object to a log-writer and a data source.

The writer object may be shared with other log sources. Sources:

See also
eth::SwitchCore, router2::Offload.

Definition at line 134 of file eth_sw_log.cc.


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