This namespace contains classes that provide basic packet communication between the PC and the Loconet network. The consumers of this namespace are the framework for railroad control as defined by the RRAutoLib.CTC namespace and user interfaces.

The central class of this namespace is LoconetService. All classes prefixed by Pk are Packet classes. PkUnknown should be inherited for custom packets.

Classes

  Class Description
LoconetService
The main class for providing Loconet services and communication.
Packet
Provides an abstract base class for all Loconet packet types.
Packet..::.CallBack
Encapsulates callback parameters for property CallBackOnRequest and CallBackOnResponse.
PkBusy
Represents a Loconet packet that indicates the master is busy.
PkComStatOps
Represents a Loconet packet that reads/writes operation switches from/to the command station.
PkDccProgram
Represents a Loconet packet used to program DCC decoders on the track.
PkFastClock
Represents a Loconet packet that reads/writes fast clock from/to the command station.
PkFind
Represents a Loconet packet that finds data on the network.
PkGetSwitchState
Represents a Loconet packet that requests the state of a switch.
PkImmediate
Represents a Loconet packet used to send a DCC packet directly out to the tracks.
PkInput
Represents a Loconet packet that is generated by a general sensor device.
PkLocoIO
Represents a Loconet packet that comunicates with a LocoIO device.
PkLocoIO..::.PortConfig
Represents 1 of 16 LocoIO port configurations.
PkLocoIO..::.Setup
Represents the setup parameters of a LocoIO device.
PkLocoSlot
Represents a Loconet packet that reads/writes locomotive data from/to the command station.
PkLongAck
Represents an acknowledgement Loconet packet response.
PkMultiSense
Represents a Loconet packet for complex sensor data exchange.
PkPeerXfer
Represents a Loconet packet that moves 8 bytes between devices.
PkRdWrSlotData
Represents a base Loconet packet that reads/writes data from/to a command station's slot.
PkReqSlotData
Represents a Loconet packet that requests a slot's data.
PkSecurityElem
Represents a Loconet packet used for security element data exchange.
PkSetEmergStop
Represents a Loconet packet that broadcasts an emergency stop.
PkSetLocoAdr
Represents a Loconet packet that assigns a locomotive address to a slot.
PkSetPowerOff
Represents a Loconet packet that turns track power off.
PkSetPowerOn
Represents a Loconet packet that turns track power on.
PkSetSlotDirFunc
Represents a Loconet packet that sets the direction of travel and functions 0 through 4 for a locomotive residing in a slot.
PkSetSlotFunc5to8
Represents a Loconet packet that sets the functions 5 through 8 for a locomotive residing in a slot.
PkSetSlotFunc9to12
Represents a Loconet packet that sets the functions 9 through 12 for a locomotive residing in a slot.
PkSetSlotSpeed
Represents a Loconet packet that sets the speed of a locomotive residing in a slot.
PkSetSwitch
Represents a Loconet packet that sets the state of a switch.
PkSlotLink
Represents a Loconet packet that links a slot to another.
PkSlotMove
Represents a Loconet packet that moves a slot.
PkSlotUnlink
Represents a Loconet packet that unlinks a slot from another.
PkStatus
Represents a Loconet packet that sets a slot's status.
PkSwitchInput
Represents a Loconet packet that is generated by a turnout sensor device.
PkUnknown
Represents a Loconet packet of an unknown type.

Delegates

  Delegate Description
LoconetService..::.RxPacketHandler
Represents the method that will handle a packet (Loconet message) receive event.

Enumerations

  Enumeration Description
BaudRate
Specifies the baud rate speed for the communication port.
ComPort
Specifies the communication port to be connected to Loconet.
ConsistType
Specifies a slot's consist configuration.
DccProgMode
Specifies the track programming mode.
DS54InputType
Specifies the input type of a DS54 input pair.
LocoDirection
Specifies a locomotive's direction of travel.
LongAckType
Specifies the type of a long acknowledgement message.
MultiSenseType
Specifies the type of a complex sensor message.
OnOffState
Specifies whether a resource is On or Off.
OpCodes
Specifies the OpCode as defined by Loconet.
PkLocoIO..::.CommandType
The actions a LocoIO packet can perform.
PkLocoIO..::.ConfigType
Specifies how a LocoIO pin is configured.
SlotActivity
Specifies the activity status of a command station slot.
SpeedSteps
Specifies a slot's speed step configuration.
SwitchInputType
Specifies the type of a switch input message.
SwitchState
Specifies the position of a turnout.
YesNo
Affirmative or negative indicator.