The XpressnetConnectorRoco type exposes the following members.
Constructors
Name | Description | |
---|---|---|
XpressnetConnectorRoco(String) |
Default constructor.
| |
XpressnetConnectorRoco(String, Int32, Parity, StopBits, Int32, Handshake) |
Full constructor.
|
Methods
Name | Description | |
---|---|---|
AccessoryInformation |
Obtains information about an accessory (turnout) with a given address.
| |
AccessoryOperate |
Sets given output of the turnout on/off.
| |
AccessoryOperateMomentary |
Operates given turnout output momentarily (turns it on and then off after a given time).
| |
Connect |
Open the serial port for communication.
| |
Disconnect |
Closes the serial port.
| |
EmergencyStop |
Executes emergency stop (stops all locomotives, doesn't turn the track voltage off).
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
FireUnrequestedMessageEvent |
Helper method for firing the UnrequestedMessageReceived event.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
LocoInformation |
Returns information about the current status of a given locomotive.
| |
LocoLights |
Turns the locomotive lights on or off.
| |
LocoSetFunction |
Sets given function active/inactive.
| |
LocoSetSpeedAndDirection |
Operates the given locomotive.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ResumeOperation |
Resumes locomotive operation after emergency stop.
| |
ToString | (Inherited from Object.) |
Properties
Name | Description | |
---|---|---|
IsConnected |
True if the serial port is opened.
|
Events
Name | Description | |
---|---|---|
UnrequestedMessageReceived |
Event fired when PC receives a message that is not requested by any of the methods.
|