13 public class IsoDepInterface(Tag Tag, IsoDep Technology)
16 private readonly IsoDep isoDep = Technology;
21 public Task<byte[]> GetHighLayerResponse()
23 return Task.FromResult(this.isoDep.GetHiLayerResponse() ??
throw UnableToReadDataFromDevice());
29 public Task<byte[]> GetHistoricalBytes()
31 return Task.FromResult(this.isoDep.GetHistoricalBytes() ??
throw UnableToReadDataFromDevice());
38 public void SetTimeout(
int Timeout)
53 byte[]? Response = await this.isoDep.TransceiveAsync(Command);
58 throw UnableToReadDataFromDevice();
Simple base class for classes implementing communication protocols.
void Error(string Error)
Called to inform the viewer of an error state.
void TransmitBinary(int Count)
Called when binary data has been transmitted.
void ReceiveBinary(int Count)
Called when binary data has been received.
ISO DEP interface, for communication with an NFC Tag.
void SetTimeout(int Timeout)
Sets communication timeout.
Interface for observable classes implementing communication protocols.