Click or drag to resize

RRAutoLib.Loconet Namespace

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
  ClassDescription
Public classBitWise
Generic bitwise functions that aide in encoding and decoding of packet bytes.
Public classCode exampleLoconetService
The main class for providing Loconet services and communication.
Public classPacket
Provides an abstract base class for all Loconet packet types.
Public classPkBusy
Represents a Loconet packet that indicates the master is busy.
Public classPkComStatOps
Represents a Loconet packet that reads/writes operation switches from/to the command station.
Public classCode examplePkDccProgram
Represents a Loconet packet used to program DCC decoders on the track.
Public classPkFastClock
Represents a Loconet packet that reads/writes fast clock from/to the command station.
Public classPkFind
Represents a Loconet packet that finds data on the network.
Public classPkGetSwitchState
Represents a Loconet packet that requests the state of a switch.
Public classCode examplePkImmediate
Represents a Loconet packet used to send a direct DCC packet.
Public classPkInput
Represents a Loconet packet that is generated by a general sensor device.
Public classPkLissy
Represents a Loconet packet that is generated by a Lissy infrared sensor device.
Public classPkLocoCommand
Represents a Loconet packet that controls speed, direction, and functions of a locomotive assigned to a slot.
Public classPkLocoIO
Represents a Loconet packet that comunicates with a LocoIO device.
Public classPkLocoIOPortConfig
Represents 1 of 16 LocoIO port configurations.
Public classPkLocoIOSetup
Represents the setup parameters of a LocoIO device.
Public classPkLocoSlot
Represents a Loconet packet that reads/writes locomotive data from/to the command station.
Public classPkLongAck
Represents an acknowledgement Loconet packet response.
Public classPkMultiSense
Represents a Loconet packet for complex sensor data exchange.
Public classPkPeerXfer
Represents a Loconet packet that moves 8 bytes between devices.
Public classPkRdWrSlotData
Represents a base Loconet packet that reads/writes data from/to a command station's slot.
Public classPkRdWrSlotDataExp
Represents a Loconet packet that reads/writes data from/to a command station's slot.
Public classPkReqSlotData
Represents a Loconet packet that requests a slot's data.
Public classPkSecurityElem
Represents a Loconet packet used for security element data exchange.
Public classPkSetEmergStop
Represents a Loconet packet that broadcasts an emergency stop.
Public classPkSetLocoAdr
Represents a Loconet packet that assigns a locomotive address to a slot.
Public classPkSetLocoAdrExp
Represents a Loconet packet that assigns a locomotive address to a slot.
Public classPkSetPowerOff
Represents a Loconet packet that turns track power off.
Public classCode examplePkSetPowerOn
Represents a Loconet packet that turns track power on.
Public classPkSetSlotDirFunc
Represents a Loconet packet that sets the direction of travel and functions 0 through 4 for a locomotive assigned to a slot.
Public classPkSetSlotFunc5to8
Represents a Loconet packet that sets the functions 5 through 8 for a locomotive assigned to a slot.
Public classPkSetSlotFunc9to12
Represents a Loconet packet that sets the functions 9 through 12 for a locomotive assigned to a slot.
Public classPkSetSlotSpeed
Represents a Loconet packet that sets the speed of a locomotive assigned to a slot.
Public classPkSetSwitch
Represents a Loconet packet that sets the state of a switch.
Public classPkSlotCommand
Represents a Loconet packet that performs slot move, link, unlink, and status.
Public classPkSlotLink
Represents a Loconet packet that links a slot to another.
Public classCode examplePkSlotMove
Represents a Loconet packet that moves a slot.
Public classCode examplePkSlotStatus
Represents a Loconet packet that sets a slot's status.
Public classPkSlotUnlink
Represents a Loconet packet that unlinks a slot from another.
Public classPkSpecialOem
Represents a Loconet packet used by the Intellibox for special control operations.
Public classPkSwitchInput
Represents a Loconet packet that is generated by a turnout sensor device.
Public classCode examplePkUnknown
Represents a Loconet packet of an unknown type.
Delegates
Enumerations
  EnumerationDescription
Public enumerationCode exampleBaudRate
Specifies the baud rate speed for the communication port.
Public enumerationConsistType
Specifies a slot's consist configuration.
Public enumerationDccProgErrFlags
Specifies the error types returned by a programming reply.
Public enumerationDccProgMode
Specifies the track programming mode.
Public enumerationDirectionNS
Specifies the direction of travel.
Public enumerationDS54InputType
Specifies the input type of a DS54 input pair.
Public enumerationLocoCommand
Specifies the command type to control a locomotive.
Public enumerationLocoDirection
Specifies a locomotive's direction of travel.
Public enumerationLocoOrientation
Specifies a locomotive's orientation in relation to the track.
Public enumerationLongAckType
Specifies the type of a long acknowledgement message.
Public enumerationMultiSenseType
Specifies the type of a complex sensor message.
Public enumerationOnOff
Specifies whether a resource is On or Off.
Public enumerationOpCodes
Specifies the OpCode as defined by Loconet.
Public enumerationPkImmediateDccInstrType
Public enumerationPkLocoIOCommandType
The actions a LocoIO packet can perform.
Public enumerationPkLocoIOConfigType
Specifies how a LocoIO port is configured.
Public enumerationSlotActivity
Specifies the activity status of a command station slot.
Public enumerationSlotCommand
Specifies the command type to sent to a slot.
Public enumerationSpeedSteps
Specifies a slot's speed step configuration.
Public enumerationSwitchInputType
Specifies the type of a switch input message.
Public enumerationSwitchState
Specifies the position of a turnout.
Public enumerationYesNo
Affirmative or negative indicator.