|
LCC Fusion Project 1.0
LCC Automation
|
#include <SignalLamp.h>
Inherits ConfigUpdateListener, and Blinking.
Public Types | |
| enum | LampID : uint8_t |
| Possible LED selections. | |
| enum | LampPhase : uint8_t |
| Possible LED phases. | |
Public Member Functions | |
| Lamp (const LampConfig &cfg, PWM *const *pins, const uint8_t size, const uint8_t cardNum) | |
| void | factory_reset (int fd) OVERRIDE |
| UpdateAction | apply_configuration (int fd, bool initial_load, BarrierNotifiable *done) override |
| Invoked on initial load of CDI and when CDI is udpated. Register configured events with OpenMRN. More... | |
| void | On () |
| sets lamp pin state on | |
| void | Off () |
| sets lamp pin state off | |
| virtual void | blink (bool AFast, bool AMedium, bool ASlow) |
| blinker callback that controls lamp blinking | |
Lamp object.
Definition at line 79 of file SignalLamp.h.
|
inline |
Lamp object for signaling
| cfg | CDI configuration offset to Lamp information |
| pins | is the list of pins represented by the Gpio* object instances. Can be constant from FLASH space. |
| size | is the length of the list of pins array. |
| cardNum | is the I/O card number, starting at 0 |
Definition at line 115 of file SignalLamp.h.
|
inlineoverride |
Invoked on initial load of CDI and when CDI is udpated.
Register configured events with OpenMRN.
| fd | file descriptor used to access CDI data |
| initial_load | is true when CDI is loaded after a reboot |
| done |
Definition at line 150 of file SignalLamp.h.
|
inline |
Reset CDI configuration entries to their initial (default) values
| fd | used to access the CDI information in the file system |
Definition at line 135 of file SignalLamp.h.