SpringCard Smart Readers library for .NET  19.9.20
Communicate and manage SpringCard Smart Reader devices
SpringCard.SmartReader.Mk2Link.Mk2Protocol.HostToDeviceBlock Class Reference

Class to send a block from the Host to a Device. More...

Inheritance diagram for SpringCard.SmartReader.Mk2Link.Mk2Protocol.HostToDeviceBlock:
SpringCard.SmartReader.Mk2Link.Mk2Protocol.ProtocolBlock

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 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...
 

Detailed Description

Class to send a block from the Host to a Device.

Constructor & Destructor Documentation

◆ HostToDeviceBlock() [1/2]

SpringCard.SmartReader.Mk2Link.Mk2Protocol.HostToDeviceBlock.HostToDeviceBlock ( BlockType  Type)

Create an outgoing block.

◆ HostToDeviceBlock() [2/2]

SpringCard.SmartReader.Mk2Link.Mk2Protocol.HostToDeviceBlock.HostToDeviceBlock ( byte  Type)

Create an outgoing block.

Member Function Documentation

◆ GetValue()

byte [] SpringCard.SmartReader.Mk2Link.Mk2Protocol.HostToDeviceBlock.GetValue ( DeviceToHostTag  T)

Retrieve a V given its T.

◆ Serialize()

byte [] SpringCard.SmartReader.Mk2Link.Mk2Protocol.HostToDeviceBlock.Serialize ( )

Serialize the outgoing block before sending it onto the link.

◆ SetMacAddress() [1/2]

void SpringCard.SmartReader.Mk2Link.Mk2Protocol.HostToDeviceBlock.SetMacAddress ( byte []  MacAddress)

Populate MacAddress and set SendMacAddress to true.

◆ SetMacAddress() [2/2]

void SpringCard.SmartReader.Mk2Link.Mk2Protocol.HostToDeviceBlock.SetMacAddress ( UInt64  MacAddress)

Populate MacAddress and set SendMacAddress to true.

◆ SetSequence()

void SpringCard.SmartReader.Mk2Link.Mk2Protocol.HostToDeviceBlock.SetSequence ( byte []  Sequence)

Populate Sequence and set SendSequence to true.

◆ SetValue() [1/2]

void SpringCard.SmartReader.Mk2Link.Mk2Protocol.HostToDeviceBlock.SetValue ( HostToDeviceTag  T,
byte []  V 
)

Set a T,L,V entry in the block's payload.

◆ SetValue() [2/2]

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.

Member Data Documentation

◆ SendChecksum

bool SpringCard.SmartReader.Mk2Link.Mk2Protocol.HostToDeviceBlock.SendChecksum = false

Include the CRC32 in the block.

◆ SendMacAddress

bool SpringCard.SmartReader.Mk2Link.Mk2Protocol.HostToDeviceBlock.SendMacAddress = false

Include MacAddress in the block.

◆ SendSequence

bool SpringCard.SmartReader.Mk2Link.Mk2Protocol.HostToDeviceBlock.SendSequence = false

Include Sequence in the block.

Property Documentation

◆ MacAddress

UInt64 SpringCard.SmartReader.Mk2Link.Mk2Protocol.HostToDeviceBlock.MacAddress
get

MAC address of the target Device.

◆ Sequence

UInt64 SpringCard.SmartReader.Mk2Link.Mk2Protocol.HostToDeviceBlock.Sequence
get

Sequence number defined by the Host.


The documentation for this class was generated from the following file: