Click or drag to resize

Packet Class

Provides an abstract base class for all Loconet packet types.
Inheritance Hierarchy
SystemObject
  RRAutoLib.LoconetPacket
    More...

Namespace:  RRAutoLib.Loconet
Assembly:  RRAutoLib (in RRAutoLib.dll) Version: 4.0.8678.28884
Syntax
<SerializableAttribute>
Public MustInherit Class Packet
	Implements ISerializable, ICloneable

The Packet type exposes the following members.

Constructors
  NameDescription
Protected methodPacket
Initializes a new instance of the Packet class
Protected methodPacket(SerializationInfo, StreamingContext)
Initializes a new instance of the Packet class
Top
Properties
  NameDescription
Public propertyBytes
Gets the bytes that makes up a Loconet packet message.
Public propertyCode exampleDescription
User friendly description of the packet.
Public propertyID
Gets the unique identifier of the packet.
Public propertyIsEchoe
Gets value indicating if the packet is an echoe.
Public propertyNeedsPacketResponse
Gets value indicating if this packet expects a response packet.
Public propertyOpCode
Gets the Loconet operation code associated with the packet.
Public propertyCode exampleParmsDesc
User friendly description of the most significant packet parameters.
Public propertyPostTxWait
Gets or sets the time in milliseconds to wait after sending this packet before performing the next step.
Public propertyRxPacket
Gets the received response packet post transmit.
Public propertyTag
Gets or sets an arbitrary object that is associated with the packet.
Public propertyTimeStamp
Gets an event time stamp of the packet's echo or arrival.
Top
Methods
  NameDescription
Public methodBytesToString
Converts the Bytes into a readable string.
Public methodCode exampleClone
Creates a copy of the packet.
Protected methodGetObjectData
Public methodValidPacketResponse
Gets value indicating if given packet is a valid response for this packet.
Top
Fields
  NameDescription
Protected field_blnIsEchoe
Exposed through IsEchoe property.
Protected field_bytaBytes
Exposed through Bytes property.
Protected field_dblTimeStamp
Exposed through TimeStamp property.
Protected field_objRxPacket
Exposed through RxPacket property.
Protected field_objTag
Exposed through Tag property.
Protected field_sctID
Exposed through ID property.
Protected field_srtPostTxWait
Exposed through PostTxWait property.
Top
Remarks
This class contains the base properties and methods that are common to all packet (classes with the Pk prefix) types.
See Also
Inheritance Hierarchy
SystemObject
  RRAutoLib.LoconetPacket
    RRAutoLib.LoconetPkBusy
    RRAutoLib.LoconetPkFind
    RRAutoLib.LoconetPkGetSwitchState
    RRAutoLib.LoconetPkImmediate
    RRAutoLib.LoconetPkInput
    RRAutoLib.LoconetPkLissy
    RRAutoLib.LoconetPkLocoCommand
    RRAutoLib.LoconetPkLongAck
    RRAutoLib.LoconetPkMultiSense
    RRAutoLib.LoconetPkPeerXfer
    RRAutoLib.LoconetPkRdWrSlotData
    RRAutoLib.LoconetPkRdWrSlotDataExp
    RRAutoLib.LoconetPkReqSlotData
    RRAutoLib.LoconetPkSecurityElem
    RRAutoLib.LoconetPkSetEmergStop
    RRAutoLib.LoconetPkSetLocoAdr
    RRAutoLib.LoconetPkSetLocoAdrExp
    RRAutoLib.LoconetPkSetPowerOff
    RRAutoLib.LoconetPkSetPowerOn
    RRAutoLib.LoconetPkSetSlotDirFunc
    RRAutoLib.LoconetPkSetSlotFunc5to8
    RRAutoLib.LoconetPkSetSlotFunc9to12
    RRAutoLib.LoconetPkSetSlotSpeed
    RRAutoLib.LoconetPkSetSwitch
    RRAutoLib.LoconetPkSlotCommand
    RRAutoLib.LoconetPkSlotLink
    RRAutoLib.LoconetPkSlotMove
    RRAutoLib.LoconetPkSlotStatus
    RRAutoLib.LoconetPkSlotUnlink
    RRAutoLib.LoconetPkSpecialOem
    RRAutoLib.LoconetPkSwitchInput
    RRAutoLib.LoconetPkUnknown