Model Railroad System
2.2.1
|
Azatrax C++ LibUSB 1.0 Interface. More...
Namespaces | |
azatrax | |
Azatrax C++ LibUSB 1.0 Interface. | |
Azatrax C++ LibUSB 1.0 Interface.
This library implements a class that interfaces to Azatrax's MRD2-S, MRD2-U, SL2, and SR4 modules. Both the MRD2-S and the MRD2-U contain a pair a IR sensors, a stopwatch, and the MRD2-S contains relays. These units can sense trains, either reflectively (typically `burried' in the track roadbed) or across the track. The sensors trigger the stopwatch and can also trigger the relays. The SL2 and SR4 modules are intended to operate switch machines, either directly (SL2) or via something like a NCE Switch-It (SR4). Both the SL2 and SR4 also have inputs meant for local push-button control (but they can be used for other purposes).
I was contacted by John Parsons of Azatrax (http://www.azatrax.com) and he kindly sent some samples of the MRD2-U and MRD2-S modules. This code is the result. The samples allowed me to test the code.