The LoconetService type exposes the following members.

Constructors

  Name Description
Public method LoconetService
Initializes a new instance of the LoconetService class

Methods

  Name Description
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method 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.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method Start
Starts the Loconet service and connects to the serial port.
Public method Stop
Stops the Loconet service and disconnects from the serial port.
Public method ToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public method TxPacket
Transmits a packet asynchronously with normal priority.
Public method TxPriorityPacket
Transmits a packet asynchronously with high priority.
Public method TxPrioritySpeed
Transmits a locomotive speed control packet asynchronously with high priority.
Public method TxSyncPacket
Transmits a packet synchronously with normal priority.

Properties

  Name Description
Public property BaudRate
Gets or sets the baud rate speed of the Loconet interface.
Public property ComPort
Gets or sets the communication port number of the Loconet interface.
Public property FlowControl
Gets or sets whether flow control should be used with the Loconet interface.
Public property IsStarted
Indicates whether the Loconet service has been started.
Public property SyncContext
Gets or sets the SyncContext object on whose thread events are raised.

Events

  Name Description
Public event RxPacketOnSyncThread
Occurs when a Loconet packet is received.
Public event RxPacketOnWorkerThread
Occurs when a Loconet packet is received.

See Also