SatCat5
satcat5::cfg::LedActivityCtrl Class Reference

Detailed Description

Coordinate multiple LedActivity objects.

Definition at line 68 of file cfgbus_led.h.

#include <cfgbus_led.h>

Inheritance diagram for satcat5::cfg::LedActivityCtrl:
[legend]
Collaboration diagram for satcat5::cfg::LedActivityCtrl:
[legend]

Public Member Functions

 LedActivityCtrl (satcat5::cfg::NetworkStats *stats, unsigned delay_msec=33)
 Link this controller to an activity source.
 
void add (LedActivity *led)
 Add an LedActivity object to this group.
 
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.
 

Private Member Functions

void timer_event () override
 Child class MUST override this method.
 
void query (unsigned elapsed_msec)
 

Private Attributes

satcat5::cfg::NetworkStats *const m_stats
 
satcat5::util::List< LedActivitym_list
 
satcat5::poll::Timerm_next
 
unsigned m_trem
 
unsigned m_tnext
 

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