Click or drag to resize

PkSwitchInput Class

Represents a Loconet packet that is generated by a turnout sensor device.
Inheritance Hierarchy

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

The PkSwitchInput type exposes the following members.

Constructors
  NameDescription
Public methodPkSwitchInput
Initializes a new instance of the PkSwitchInput class
Protected methodPkSwitchInput(SerializationInfo, StreamingContext)
Used to inherit custom serialization from Packet because constructors are not inherited.
Public methodPkSwitchInput(UInt16, OnOff)
Initializes a new instance of the PkSwitchInput class
Top
Properties
  NameDescription
Public propertyAddress
Gets or sets the device independent input address.
Public propertyBytes
Gets the bytes that makes up a Loconet packet message.
(Inherited from Packet.)
Public propertyDescription
User friendly description of the packet.
(Overrides PacketDescription.)
Public propertyDS54Address
Gets or sets the DS54 device address.
Public propertyDS54InputPair
Gets or sets the DS54 input pair.
Public propertyDS54InputType
Gets or sets the DS54 input type.
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 propertyNeedsPacketResponse
Gets value indicating if this packet expects a response packet.
(Inherited from Packet.)
Public propertyOpCode
Gets the Loconet operation code associated with the packet.
(Overrides PacketOpCode.)
Public propertyParmsDesc
User friendly description of the most significant packet parameters.
(Overrides PacketParmsDesc.)
Public propertyPostTxWait
Gets or sets the time in milliseconds to wait after sending this packet before performing the next step.
(Inherited from Packet.)
Public propertyRxPacket
Gets the received response packet post transmit.
(Inherited from Packet.)
Public propertyState
Gets or sets the reported state of the input address.
Public propertySwitch
Gets or sets the reported switch number.
Public propertyTag
Gets or sets an arbitrary object that is associated with the packet.
(Inherited from Packet.)
Public propertyTimeStamp
Gets an event time stamp of the packet's echo or arrival.
(Inherited from Packet.)
Public propertyType
Determines how packet is encoded as it comes in two variants.
Top
Methods
  NameDescription
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 methodValidPacketResponse
Gets value indicating if given packet is a valid response for this packet.
(Inherited from Packet.)
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
PkSwitchInput packets are usually received from devices such as the DS54 which sense turnout positions.
See Also