Click or drag to resize

PkLocoIO Class

Represents a Loconet packet that comunicates with a LocoIO device.
Inheritance Hierarchy

Namespace:  RRAutoLib.Loconet
Assembly:  RRAutoLib (in RRAutoLib.dll) Version: 4.0.8678.28884
Syntax
<SerializableAttribute>
Public Class PkLocoIO
	Inherits PkPeerXfer

The PkLocoIO type exposes the following members.

Constructors
  NameDescription
Public methodPkLocoIO
Initializes a new instance of the PkLocoIO class
Protected methodPkLocoIO(SerializationInfo, StreamingContext)
Used to inherit custom serialization from Packet because constructors are not inherited.
Top
Properties
  NameDescription
Public propertyAddress
Target address of the LocoIO device this packet is being sent to.
Public propertyBytes
Gets the bytes that makes up a Loconet packet message.
(Inherited from Packet.)
Public propertyCommand
The action this LocoIO packet will perform.
Public propertyData
Gets or sets the 8 bytes to be moved.
(Inherited from PkPeerXfer.)
Public propertyDescription
User friendly description of the packet.
(Overrides PkPeerXferDescription.)
Public propertyID
Gets the unique identifier of the packet.
(Inherited from Packet.)
Public propertyIsEchoe
Gets value indicating if the packet is an echoe.
(Inherited from Packet.)
Public propertyMultiMask
Ports to be affected by a multiport write.
Public propertyMultiState
Port state values for a multiport write.
Public propertyNeedsPacketResponse (Overrides PacketNeedsPacketResponse.)
Public propertyOpCode
Gets the Loconet operation code associated with the packet.
(Inherited from PkPeerXfer.)
Public propertyParmsDesc
User friendly description of the most significant packet parameters.
(Overrides PkPeerXferParmsDesc.)
Public propertyPostTxWait
Gets or sets the time in milliseconds to wait after sending this packet before performing the next step.
(Inherited from Packet.)
Public propertyReadData
Values returned from the LocoIO's memory registers.
Public propertyRegister
The memory register to be read or written to in a LocoIO device.
Public propertyRxPacket
Gets the received response packet post transmit.
(Inherited from Packet.)
Public propertySourceID
Gets or sets the source identifier of the byte move.
(Inherited from PkPeerXfer.)
Public propertySubAddress
Target sub-address of the LocoIO device this packet is being sent to.
Public propertyTag
Gets or sets an arbitrary object that is associated with the packet.
(Inherited from Packet.)
Public propertyTargetHighAdr
Gets or sets the target's high address of the byte move.
(Inherited from PkPeerXfer.)
Public propertyTargetLowAdr
Gets or sets the target's low address of the byte move.
(Inherited from PkPeerXfer.)
Public propertyTimeStamp
Gets an event time stamp of the packet's echo or arrival.
(Inherited from Packet.)
Public propertyWriteData
Value to be written to a LocoIO's memory register.
Top
Methods
  NameDescription
Public methodStatic memberBroadcastAddress
Sends a broadcast messages to all LocoIO devices seen on the network.
Public methodBytesToString
Converts the Bytes into a readable string.
(Inherited from Packet.)
Public methodCode exampleClone
Creates a copy of the packet.
(Inherited from Packet.)
Protected methodGetObjectData (Inherited from Packet.)
Public methodRead
Reads requested data, returned from the LocoIO.
Public methodStatic memberRequestConfig
Sends a message to a LocoIO device requesting configuration data.
Public methodStatic memberRequestSetup
Sends a message to a LocoIO device requesting setup data.
Public methodStatic memberRequestStates
Sends a message to a LocoIO device requesting states data.
Public methodValidPacketResponse (Overrides PacketValidPacketResponse(Packet).)
Public methodStatic memberWriteConfig
Sends three messages to a LocoIO device writting configuration data.
Public methodStatic memberWriteSetup
Sends a message to a LocoIO device writting setup data.
Public methodStatic memberWriteStates
Sends a messages to a LocoIO device writting state data.
Top
Fields
  NameDescription
Protected field_blnIsEchoe
Exposed through IsEchoe property.
(Inherited from Packet.)
Protected field_bytaBytes
Exposed through Bytes property.
(Inherited from Packet.)
Protected field_dblTimeStamp
Exposed through TimeStamp property.
(Inherited from Packet.)
Protected field_objRxPacket
Exposed through RxPacket property.
(Inherited from Packet.)
Protected field_objTag
Exposed through Tag property.
(Inherited from Packet.)
Protected field_sctID
Exposed through ID property.
(Inherited from Packet.)
Protected field_srtPostTxWait
Exposed through PostTxWait property.
(Inherited from Packet.)
Top
Remarks
A PkLocoIO response is expected. The static (Shared in Visual Basic) members in this class are helpers which simplify LocoIO operations.
See Also