Public Member Functions | |
NfcTagType2 (SCardChannel Channel) | |
override bool | Format () |
override bool | Lock () |
bool | WritePage (ushort address, byte[] data) |
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 bool | ParseUserData (byte[] user_data, out byte[] ndef_data) |
static bool | RecognizeAtr (CardBuffer atr) |
static bool | RecognizeAtr (SCardChannel channel) |
static NfcTagType2 | Create (SCardChannel channel) |
static bool | Recognize (SCardChannel channel) |
static bool | Recognize (SCardChannel channel, ref bool formatted, ref bool formattable, ref bool write_protected) |
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 | |
override bool | WriteContent (byte[] ndef_content) |
override bool | Read () |
Static Protected Member Functions | |
static byte [] | ReadBinary (SCardChannel channel, ushort address, byte length) |
static bool | WriteBinary (SCardChannel channel, ushort address, byte[] data) |
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< NdefObject > | Content = 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 |
c* SpringCard.NfcForum.Tags/NfcTagType2
NAME NfcTagType2
DERIVED FROM NfcTag
DESCRIPTION Represents a Type 2 NFC Tag that has been discovered on a reader.
SYNOPSIS if (NfcTagType2.Recognize(channel)) NfcTag tag = NfcTagType2.Create(SCardChannel channel)
|
static |
m* SpringCard.NfcForum.Tags/NfcTagType2.Create
NAME NfcTagType2.Create
SYNOPSIS public static NfcTagType2 Create(SCardChannel channel)
DESCRIPTION Instanciates a new NfcTagType2 object for this card
SEE ALSO NfcTagType2.Recognize
|
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.
|
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.
|
static |
f* SpringCard.NfcForum.Tags/NfcTagType2.Recognize
SYNOPSIS public static bool Recognize(SCardChannel channel)
DESCRIPTION Returns true if the card on the reader is a NFC Forum type 2 Tag
SEE ALSO NfcTagType2.Create
|
static |
m* SpringCard.NfcForum.Tags/NfcTagType2.RecognizeAtr
SYNOPSIS public static bool RecognizeAtr(CardBuffer atr) public static bool RecognizeAtr(SCardChannel channel)
DESCRIPTION Checks wether the ATR of the card corresponds to the ATR of a Mifare Ultralight or a Mifare Ultralight C card. Returns true on success.