PkDccProgram Class |
Namespace: RRAutoLib.Loconet
<SerializableAttribute> Public Class PkDccProgram Inherits PkRdWrSlotData
The PkDccProgram type exposes the following members.
Name | Description | |
---|---|---|
![]() | PkDccProgram | Initializes a new instance of the PkDccProgram class |
![]() | PkDccProgram(SerializationInfo, StreamingContext) | Used to inherit custom serialization from Packet because constructors are not inherited. |
![]() | PkDccProgram(Boolean, DccProgMode, UInt16, Byte) | Initializes a new instance of the PkDccProgram class |
![]() | PkDccProgram(Boolean, DccProgMode, UInt16, UInt16, Byte) | Initializes a new instance of the PkDccProgram class |
Name | Description | |
---|---|---|
![]() | Bytes | Gets the bytes that makes up a Loconet packet message. (Inherited from Packet.) |
![]() | CvNumber | Gets or sets the DCC decoder configuration number. |
![]() | CvValue | Gets or sets the DCC decoder configuration value. |
![]() | Description | User friendly description of the packet. (Overrides PkRdWrSlotDataDescription.) |
![]() | ID | Gets the unique identifier of the packet. (Inherited from Packet.) |
![]() | IsEchoe | Gets value indicating if the packet is an echoe. (Inherited from Packet.) |
![]() | IsIntellibox | (Inherited from PkRdWrSlotData.) |
![]() | IsLoconet11 | (Inherited from PkRdWrSlotData.) |
![]() | NeedsPacketResponse | Gets value indicating if this packet expects a response packet. (Inherited from Packet.) |
![]() | OpAddress | Gets or sets the DCC decoder's address for operation mode programming. |
![]() | OpCode | Gets the Loconet operation code associated with the packet. (Inherited from PkRdWrSlotData.) |
![]() | ParmsDesc | User friendly description of the most significant packet parameters. (Overrides PkRdWrSlotDataParmsDesc.) |
![]() | PostTxWait | Gets or sets the time in milliseconds to wait after sending this packet before performing the next step. (Inherited from Packet.) |
![]() | ProgErrFlags | Error flags returned from an attempted programming task. |
![]() | ProgMode | Gets or sets the track programming mode. |
![]() | ProgWrite | Gets or sets if packet is used for reading or writing data. |
![]() | RxPacket | Gets the received response packet post transmit. (Inherited from Packet.) |
![]() | ServTrackIsBusy | (Inherited from PkRdWrSlotData.) |
![]() | Slot | Gets the command stations's slot number. (Overrides PkRdWrSlotDataSlot.) |
![]() | Tag | Gets or sets an arbitrary object that is associated with the packet. (Inherited from Packet.) |
![]() | TimeStamp | Gets an event time stamp of the packet's echo or arrival. (Inherited from Packet.) |
![]() | TrackIsPaused | (Inherited from PkRdWrSlotData.) |
![]() | TrackPowerIsOn | (Inherited from PkRdWrSlotData.) |
Name | Description | |
---|---|---|
![]() | BytesToString | Converts the Bytes into a readable string. (Inherited from Packet.) |
![]() | Clone | Same as Clone but also converts to a slot write if cloaning a slot read. (Inherited from PkRdWrSlotData.) |
![]() | GetObjectData | (Inherited from Packet.) |
![]() ![]() | SetDcc4DigitAddress | Sets the four digit address of a DCC decoder. |
![]() | ValidPacketResponse | (Inherited from PkRdWrSlotData.) |
Name | Description | |
---|---|---|
![]() | _blnIsEchoe | Exposed through IsEchoe property. (Inherited from Packet.) |
![]() | _bytaBytes | Exposed through Bytes property. (Inherited from Packet.) |
![]() | _dblTimeStamp | Exposed through TimeStamp property. (Inherited from Packet.) |
![]() | _objRxPacket | Exposed through RxPacket property. (Inherited from Packet.) |
![]() | _objTag | Exposed through Tag property. (Inherited from Packet.) |
![]() | _sctID | Exposed through ID property. (Inherited from Packet.) |
![]() | _srtPostTxWait | Exposed through PostTxWait property. (Inherited from Packet.) |
'assumes LoconetService (locServ) has been previously initialized and started 'sets CV57 (speed compensation) and is performed on the service track locServ.TxPacket(New PkDccProgram(True, DccProgMode.ServTrkPagedByte, 57, 5)) 'also sets CV57 but in opperation mode; note: decoder address 2045 is also specified locServ.TxPacket(New PkDccProgram(True, DccProgMode.OperByteNoFeedback, 2045, 57, 5)) 'gets value of CV57 on the service track; note the CvValue can be any value like 0 locServ.TxPacket(New PkDccProgram(False, DccProgMode.ServTrkPagedByte, 57, 0)) 'simple way to set CV17 and CV18 to the 4 digit address of 2045 'this is a Shared helper function that internally sends two PkDccProgram packets PkDccProgram.SetDcc4DigitAddress(locServ, DccProgMode.ServTrkPagedByte, 2045)