LCC Fusion Project 1.0
LCC Automation
Loading...
Searching...
No Matches
TrackCircuit Class Reference

Producer object for Track Circuits. More...

#include <SignalTrackCircuit.h>

Inherits ConfigUpdateListener, and openlcb::SimpleEventHandler.

Public Types

enum  TrackSpeed
 possible track speeds
 

Public Member Functions

 TrackCircuit (openlcb::Node *n, const TrackCircuitConfig &cfg)
 Track circuit configuration class.
 
TrackSpeed CurrentSpeed () const
 
void RegisterCallback (TrackCircuitCallback *callback)
 register track circuit callback
 
void UnregisterCallback (TrackCircuitCallback *callback)
 unregister track cicuit callback
 
virtual UpdateAction apply_configuration (int fd, bool initial_load, BarrierNotifiable *done) override
 process CDI configuration changes
 
virtual void factory_reset (int fd)
 reset CDI to factory settings
 
void handle_identify_global (const openlcb::EventRegistryEntry &registry_entry, openlcb::EventReport *event, BarrierNotifiable *done) override
 handle global identify event requests
 
void handle_event_report (const openlcb::EventRegistryEntry &entry, openlcb::EventReport *event, BarrierNotifiable *done) override
 handle incoming event requests
 
void handle_identify_consumer (const openlcb::EventRegistryEntry &registry_entry, openlcb::EventReport *event, BarrierNotifiable *done) override
 handle identify consumer event requests
 

Detailed Description

Producer object for Track Circuits.

Definition at line 83 of file SignalTrackCircuit.h.

Member Function Documentation

◆ CurrentSpeed()

TrackSpeed TrackCircuit::CurrentSpeed ( ) const
inline
Returns
current speed

Definition at line 106 of file SignalTrackCircuit.h.

Here is the caller graph for this function:

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