|
SatCat5
|
Poll a hardware switch or router for log data.
Definition at line 152 of file eth_sw_log.h.
#include <eth_sw_log.h>
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_BYTES > | m_buff |
Private Member Functions | |
| void | query (unsigned elapsed_msec) |
Private Attributes | |
| satcat5::poll::Timer * | m_next |
| unsigned | m_trem |
| unsigned | m_tnext |
| 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:
Definition at line 134 of file eth_sw_log.cc.