13 return m_ctrl[REGADDR_PERF_CTR];
17 return TimeVal {
this, m_ctrl[REGADDR_LAST_EVT]};
25 m_callback = callback;
29 m_ctrl[REGADDR_WDOG] = WDOG_PAUSE;
Driver for the ConfigBus timer.
satcat5::util::TimeVal last_event()
Read timestamp of the last external event signal.
void timer_interval(unsigned usec)
Change the timer-interrupt interval.
void wdog_disable()
Disable the hardware watchdog function.
void timer_callback(satcat5::poll::OnDemand *callback)
Set the callback for timer-interrupt notifications.
void irq_event() override
Interrupt service routine.
void wdog_update(u32 usec)
Resume or reset the watchdog countdown.
An "OnDemand" object is polled only on request.
void request_poll()
Call this method to request polling at a later time.
u32 ticks_per_usec() const
Stable accessors for unit conversion.
Core event-processing loop for SatCat5 software.
Timestamp for measuring elapsed time.