RRAutoLib.Loconet Namespace Railroad Automation Class Library
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
Public class BitWise
Generic bitwise functions that aide in encoding and decoding of packet bytes.
Public class LoconetService
The main class for providing Loconet services and communication.
Public class Packet
Provides an abstract base class for all Loconet packet types.
Public class Packet CallBack
Callback payload for packet events.
Public class PkBusy
Represents a Loconet packet that indicates the master is busy.
Public class PkComStatOps
Represents a Loconet packet that reads/writes operation switches from/to the command station.
Public class PkDccProgram
Represents a Loconet packet used to program DCC decoders on the track.
Public class PkFastClock
Represents a Loconet packet that reads/writes fast clock from/to the command station.
Public class PkFind
Represents a Loconet packet that finds data on the network.
Public class PkGetSwitchState
Represents a Loconet packet that requests the state of a switch.
Public class PkImmediate
Represents a Loconet packet used to send a direct DCC packet.
Public class PkInput
Represents a Loconet packet that is generated by a general sensor device.
Public class PkLocoIO
Represents a Loconet packet that comunicates with a LocoIO device.
Public class PkLocoIO PortConfig
Represents 1 of 16 LocoIO port configurations.
Public class PkLocoIO Setup
Represents the setup parameters of a LocoIO device.
Public class PkLocoSlot
Represents a Loconet packet that reads/writes locomotive data from/to the command station.
Public class PkLongAck
Represents an acknowledgement Loconet packet response.
Public class PkMultiSense
Represents a Loconet packet for complex sensor data exchange.
Public class PkPeerXfer
Represents a Loconet packet that moves 8 bytes between devices.
Public class PkRdWrSlotData
Represents a base Loconet packet that reads/writes data from/to a command station's slot.
Public class PkReqSlotData
Represents a Loconet packet that requests a slot's data.
Public class PkSecurityElem
Represents a Loconet packet used for security element data exchange.
Public class PkSetEmergStop
Represents a Loconet packet that broadcasts an emergency stop.
Public class PkSetLocoAdr
Represents a Loconet packet that assigns a locomotive address to a slot.
Public class PkSetPowerOff
Represents a Loconet packet that turns track power off.
Public class PkSetPowerOn
Represents a Loconet packet that turns track power on.
Public class PkSetSlotDirFunc
Represents a Loconet packet that sets the direction of travel and functions 0 through 4 for a locomotive residing in a slot.
Public class PkSetSlotFunc5to8
Represents a Loconet packet that sets the functions 5 through 8 for a locomotive residing in a slot.
Public class PkSetSlotFunc9to12
Represents a Loconet packet that sets the functions 9 through 12 for a locomotive residing in a slot.
Public class PkSetSlotSpeed
Represents a Loconet packet that sets the speed of a locomotive residing in a slot.
Public class PkSetSwitch
Represents a Loconet packet that sets the state of a switch.
Public class PkSlotLink
Represents a Loconet packet that links a slot to another.
Public class PkSlotMove
Represents a Loconet packet that moves a slot.
Public class PkSlotUnlink
Represents a Loconet packet that unlinks a slot from another.
Public class PkSpecialOem
Represents a Loconet packet used by the Intellibox for special control operations.
Public class PkStatus
Represents a Loconet packet that sets a slot's status.
Public class PkSwitchInput
Represents a Loconet packet that is generated by a turnout sensor device.
Public class PkUnknown
Represents a Loconet packet of an unknown type.
Delegates

  Delegate Description
Public delegate LoconetService RxPacketOnSyncThreadEventHandler
Public delegate LoconetService RxPacketOnWorkerThreadEventHandler
Enumerations

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