Class to send a block from the Host to a Device. More...
Public Member Functions | |
| HostToDeviceBlock (BlockType Type) | |
| Create an outgoing block. More... | |
| HostToDeviceBlock (byte Type) | |
| Create an outgoing block. More... | |
| void | SetMacAddress (byte[] MacAddress) |
| Populate MacAddress and set SendMacAddress to true. More... | |
| void | SetMacAddress (UInt64 MacAddress) |
| Populate MacAddress and set SendMacAddress to true. More... | |
| void | SetSequence (byte[] Sequence) |
| Populate Sequence and set SendSequence to true. More... | |
| byte [] | GetValue (DeviceToHostTag T) |
| Retrieve a V given its T. More... | |
| void | SetValue (HostToDeviceTag T, byte[] V) |
| Set a T,L,V entry in the block's payload. More... | |
| void | SetValue (HostToDeviceTag T, byte Index, byte[] V) |
| Set a T,L,V entry in the block's payload, where T is indexed. More... | |
| byte [] | Serialize () |
| Serialize the outgoing block before sending it onto the link. More... | |
Public Member Functions inherited from SpringCard.SmartReader.Mk2Link.Mk2Protocol.ProtocolBlock | |
| byte [] | GetValue (ushort T) |
| Retrieve a V given its T. More... | |
Public Attributes | |
| bool | SendMacAddress = false |
| Include MacAddress in the block. More... | |
| bool | SendSequence = false |
| Include Sequence in the block. More... | |
| bool | SendChecksum = false |
| Include the CRC32 in the block. More... | |
Protected Member Functions | |
| void | UpdateData () |
Properties | |
| UInt64 | MacAddress [get] |
| MAC address of the target Device. More... | |
| UInt64 | Sequence [get] |
| Sequence number defined by the Host. More... | |
Properties inherited from SpringCard.SmartReader.Mk2Link.Mk2Protocol.ProtocolBlock | |
| byte | Type [get, protected set] |
| The type of the block (either a HostToDeviceTag or a DeviceToHostTag) More... | |
| byte [] | Payload [get, protected set] |
| The payload of the block. More... | |
| Dictionary< ushort, byte[]> | DataPieces [get, protected set] |
| The payload explosed as a list of T,L,V. More... | |
Class to send a block from the Host to a Device.
| SpringCard.SmartReader.Mk2Link.Mk2Protocol.HostToDeviceBlock.HostToDeviceBlock | ( | BlockType | Type | ) |
Create an outgoing block.
| SpringCard.SmartReader.Mk2Link.Mk2Protocol.HostToDeviceBlock.HostToDeviceBlock | ( | byte | Type | ) |
Create an outgoing block.
| byte [] SpringCard.SmartReader.Mk2Link.Mk2Protocol.HostToDeviceBlock.GetValue | ( | DeviceToHostTag | T | ) |
Retrieve a V given its T.
| byte [] SpringCard.SmartReader.Mk2Link.Mk2Protocol.HostToDeviceBlock.Serialize | ( | ) |
Serialize the outgoing block before sending it onto the link.
| void SpringCard.SmartReader.Mk2Link.Mk2Protocol.HostToDeviceBlock.SetMacAddress | ( | byte [] | MacAddress | ) |
Populate MacAddress and set SendMacAddress to true.
| void SpringCard.SmartReader.Mk2Link.Mk2Protocol.HostToDeviceBlock.SetMacAddress | ( | UInt64 | MacAddress | ) |
Populate MacAddress and set SendMacAddress to true.
| void SpringCard.SmartReader.Mk2Link.Mk2Protocol.HostToDeviceBlock.SetSequence | ( | byte [] | Sequence | ) |
Populate Sequence and set SendSequence to true.
| void SpringCard.SmartReader.Mk2Link.Mk2Protocol.HostToDeviceBlock.SetValue | ( | HostToDeviceTag | T, |
| byte [] | V | ||
| ) |
Set a T,L,V entry in the block's payload.
| void SpringCard.SmartReader.Mk2Link.Mk2Protocol.HostToDeviceBlock.SetValue | ( | HostToDeviceTag | T, |
| byte | Index, | ||
| byte [] | V | ||
| ) |
Set a T,L,V entry in the block's payload, where T is indexed.
| bool SpringCard.SmartReader.Mk2Link.Mk2Protocol.HostToDeviceBlock.SendChecksum = false |
Include the CRC32 in the block.
| bool SpringCard.SmartReader.Mk2Link.Mk2Protocol.HostToDeviceBlock.SendMacAddress = false |
Include MacAddress in the block.
| bool SpringCard.SmartReader.Mk2Link.Mk2Protocol.HostToDeviceBlock.SendSequence = false |
Include Sequence in the block.
|
get |
MAC address of the target Device.
|
get |
Sequence number defined by the Host.