|
LCC Fusion Project 1.0
LCC Automation
|
Consumer class for receiving sound player related events and sending them to MP3 players (DFPlayer) More...
#include <SoundConfiguredConsumer.h>


Public Member Functions | |
| 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 | factory_reset (int fd) OVERRIDE |
| void | handle_event_report (const openlcb::EventRegistryEntry ®istry_entry, openlcb::EventReport *event, BarrierNotifiable *done) OVERRIDE |
| Process consumed event. Use args passed with the event to determine which event occurred and the player information. | |
| void | handle_identify_global (const openlcb::EventRegistryEntry ®istry_entry, openlcb::EventReport *event, BarrierNotifiable *done) OVERRIDE |
| Process global request to identify events. | |
| void | handle_identify_consumer (const openlcb::EventRegistryEntry ®istry_entry, openlcb::EventReport *event, BarrierNotifiable *done) OVERRIDE |
| Process request to identify produced events. | |
| void | applyPlayerConfiguration (int fd, uint8_t cardNum, uint8_t numPlayers, size_t playersCdiOffset, const std::vector< std::vector< SoundPlayerDevice * > > &pPlayers) |
| applyPlayerConfiguration invoke to apply (register events) for the group of players using the user specified CDI More... | |
Consumer class for receiving sound player related events and sending them to MP3 players (DFPlayer)
| node | is the OpenLCB node object from the stack. |
| config | is the repeated group of objects in the configuration space that represents a group of sound cards |
Definition at line 376 of file SoundConfiguredConsumer.h.
|
inline |
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 426 of file SoundConfiguredConsumer.h.

|
inlineinherited |
applyPlayerConfiguration invoke to apply (register events) for the group of players using the user specified CDI
| fd | is the file descriptor provided by openMRN |
| cardNum | is the current card number the player(s) is associated with. Used to qualifying the default event ID to a specific card. |
| numPlayers | is the number of players in the group of players (1 or more) |
| playersCdiOffset | is the offset in memory for the CDI configuration for this group of players |
| pPlayers | is a vector of pointers to the SoundPlayerDevice objects created for each player |
Definition at line 128 of file SoundConfiguredConsumer.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 459 of file SoundConfiguredConsumer.h.