SatCat5
satcat5::cfg::LedActivity Class Reference

Detailed Description

Single-LED controller for a network-activity light.

Instantiate an LedActivity object for each LED, then control the group using an LedActivityCtrl object.

See also
cfgbus_led.h.

Definition at line 46 of file cfgbus_led.h.

#include <cfgbus_led.h>

Collaboration diagram for satcat5::cfg::LedActivity:
[legend]

Public Member Functions

 LedActivity (satcat5::cfg::ConfigBus *cfg, unsigned devaddr, unsigned regaddr, unsigned stats_idx, u8 brt=128)
 Link to a specific LED.
 
void update (satcat5::cfg::NetworkStats *stats)
 Callback object for LedActivityCtrl. More...
 

Private Attributes

satcat5::cfg::Register m_reg
 
const unsigned m_stats_idx
 
const u8 m_brt
 
u8 m_state
 
LedActivitym_next
 

Member Function Documentation

◆ update()

void LedActivity::update ( satcat5::cfg::NetworkStats stats)

Callback object for LedActivityCtrl.

Parent refreshes network statistics @ ~30 Hz and calls this method to update each activity LED.

Definition at line 57 of file cfgbus_led.cc.


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