SpringCard PC/SC Helpers for .NET  18.10.10
High-level access to a few current cards and to advanced coupler features
SpringCard.NfcForum.Tags.NfcTagType4 Class Reference
Inheritance diagram for SpringCard.NfcForum.Tags.NfcTagType4:
SpringCard.NfcForum.Tags.NfcTag

Public Member Functions

override bool Format ()
 
override bool Lock ()
 
 NfcTagType4 (SCardChannel Channel)
 
- Public Member Functions inherited from SpringCard.NfcForum.Tags.NfcTag
 NfcTag (SCardChannel channel)
 
bool IsEmpty ()
 
bool IsFormatted ()
 
bool IsFormattable ()
 
bool IsLocked ()
 
bool IsLockable ()
 
long Capacity ()
 
long ContentSize ()
 
bool Write ()
 
bool Write (bool skip_checks)
 
byte [] GetUid ()
 

Static Public Member Functions

static NfcTagType4 Create (SCardChannel channel)
 
static bool Recognize (SCardChannel channel)
 
static bool Recognize (SCardChannel channel, ref bool write_protected, ref ushort max_le, ref ushort max_lc, ref ushort ndef_file_id, ref long ndef_file_size)
 
- Static Public Member Functions inherited from SpringCard.NfcForum.Tags.NfcTag
static bool Recognize (SCardChannel cardchannel, out NfcTag tag, out string msg, out bool Desfire_formatable)
 

Protected Member Functions

bool SelectNfcApplication ()
 
bool SelectFile (ushort file_id)
 
byte [] ReadBinary (ushort offset, ushort length)
 
bool WriteBinary (ushort offset, byte[] buffer)
 
override bool WriteContent (byte[] content)
 
override bool Read ()
 

Static Protected Member Functions

static byte [] ReadBinary (SCardChannel channel, ushort offset, ushort length)
 
static bool WriteBinary (SCardChannel channel, ushort offset, byte[] buffer)
 
- Static Protected Member Functions inherited from SpringCard.NfcForum.Tags.NfcTag
static byte [] GetUid (SCardChannel channel)
 

Additional Inherited Members

- Public Attributes inherited from SpringCard.NfcForum.Tags.NfcTag
const byte NFC_FORUM_MAGIC_NUMBER = 0xE1
 
const byte NFC_FORUM_VERSION_NUMBER = 0x10
 
const byte LOCK_CONTROL_TLV = 0x01
 
const byte MEMORY_CONTROL_TLV = 0x02
 
const byte NDEF_MESSAGE_TLV = 0x03
 
const byte NDEF_FILE_CONTROL_TLV = 0x04
 
const byte PROPRIETARY_TLV = 0xFD
 
const byte TERMINATOR_TLV = 0xFE
 
const byte NULL_TLV = 0x00
 
List< NdefObjectContent = new List<NdefObject>()
 
- Protected Attributes inherited from SpringCard.NfcForum.Tags.NfcTag
SCardChannel _channel = null
 
long _capacity = 0
 
bool _is_empty = false
 
bool _formatted = false
 
bool _formattable = false
 
bool _locked = false
 
bool _lockable = false
 

Detailed Description

c* SpringCard.NfcForum.Tags/NfcTagType4

NAME NfcTagType4

DERIVED FROM NfcTag

DERIVED BY NfcTagType4_Desfire

DESCRIPTION Represents a Type 4 NFC Tag that has been discovered on a reader.

SYNOPSIS if (NfcTagType4.Recognize(channel)) NfcTag tag = NfcTagType4.Create(SCardChannel channel)

Member Function Documentation

◆ Create()

static NfcTagType4 SpringCard.NfcForum.Tags.NfcTagType4.Create ( SCardChannel  channel)
static

f* SpringCard.NfcForum.Tags/NfcTagType4.Create

NAME NfcTagType4.Create

SYNOPSIS public static NfcTagType4 Create(SCardChannel channel)

DESCRIPTION Instanciates a new NfcTagType4 object for this card

SEE ALSO NfcTagType4.Recognize

◆ Format()

override bool SpringCard.NfcForum.Tags.NfcTagType4.Format ( )
virtual

m* SpringCard.NfcForum.Tags/NfcTag.Format

SYNOPSIS public bool Format()

DESCRIPTION Formats the physical Tag currently on the reader. This is only possible if IsFormattable returns true. Return true on success.

SEE ALSO NfcTag.IsFormatted NfcTag.IsFormatable NfcTag.Write

Implements SpringCard.NfcForum.Tags.NfcTag.

◆ Lock()

override bool SpringCard.NfcForum.Tags.NfcTagType4.Lock ( )
virtual

m* SpringCard.NfcForum.Tags/NfcTag.Lock

SYNOPSIS public bool Lock()

DESCRIPTION Sets physical Tag currently on the reader in read-only (locked) state. This is only possible if IsLockable returns true. Returns true on success.

Implements SpringCard.NfcForum.Tags.NfcTag.

◆ Recognize()

static bool SpringCard.NfcForum.Tags.NfcTagType4.Recognize ( SCardChannel  channel)
static

f* SpringCard.NfcForum.Tags/NfcTagType4.Recognize

NAME NfcTagType4.Recognize

SYNOPSIS public static bool Recognize(SCardChannel channel)

DESCRIPTION Return true if the card on the reader is a NFC Forum type 4 Tag

SEE ALSO NfcTagType4.Create


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