DCC-EX Simple Throttle
Simple throttle for a DCC-EX CommandStation
Loading...
Searching...
No Matches
Classes | Enumerations
/home/runner/work/DCCEXSimpleThrottle/DCCEXSimpleThrottle/EventStructure.h File Reference
#include <Arduino.h>
#include <DCCEXProtocol.h>
Include dependency graph for EventStructure.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  LocoBroadcast
 Structure for data from a Loco broadcast. More...
 
struct  EventData
 Structure to enable supporting EventData that has various different types Byte - caters for 8 bit unsigned integer data (uint8_t x) Integer - caters for signed integer data (int y) Loco - caters for a pointer to a DCCEXProtocol Loco object (Loco *loco) None - caters for events that contain no data and are notification only When adding new data types: More...
 
struct  Event
 Structure for each Event that is published. More...
 

Enumerations

enum  EventType {
  CommandStationSelected , ReceivedRosterList , LocoSelected , ReadLocoAddress ,
  ReceivedLocoUpdate , ReceivedLocoBroadcast , ReceivedTrackPower , ReceivedReadLoco ,
  ToggleTrackPower , JoinProgTrack , SetPowerMain , SetPowerProg
}
 Enum containing all the event types that subscribers can listen for, and publishers can publish Listeners and publishers must use one of these when creating or listening for a valid Event. More...
 

Enumeration Type Documentation

◆ EventType

enum EventType

Enum containing all the event types that subscribers can listen for, and publishers can publish Listeners and publishers must use one of these when creating or listening for a valid Event.

Enumerator
CommandStationSelected 
ReceivedRosterList 
LocoSelected 
ReadLocoAddress 
ReceivedLocoUpdate 
ReceivedLocoBroadcast 
ReceivedTrackPower 
ReceivedReadLoco 
ToggleTrackPower 
JoinProgTrack 
SetPowerMain 
SetPowerProg