The NTAG_I2C object gives access to a NTAG I2C chip through a FTDI USB/I2C bridge (FT2222) More...
Public Member Functions | |
NTAG_I2C (IntPtr ftHandle) | |
Instanciate the NTAG_I2C. The ftHandle parameter must be a valid handle to the FTDI's FT2XX DLL, opened against the FT42222 interface connected to the NTAG. | |
void | PrintLastError () |
Print the last error to the console. | |
bool | ClearSession () |
Reset the session flags to accept another NFC reader/writer. | |
bool | WriteConfiguration () |
Write the configuration registers according to the NTAG I2C specification. | |
bool | EnablePassthroughNfcToI2c () |
Enable the SRAM passthrough NFC->I2C for the current session. | |
bool | EnablePassthroughI2cToNfc () |
Enable the SRAM passthrough I2C->NFC for the current session. | |
bool | ReadSessionRegister (byte register, ref byte value) |
Read one of the NTAG I2C's session registers. Return false on error. | |
int | ReadSessionRegister (byte register) |
Read one of the NTAG I2C's session registers. Return -1 on error. | |
bool | Read16 (byte addr, ref byte[] data) |
Read data from the NTAG I2C. Warning, addr is related to the I2C mapping, which is different from the NFC mapping. | |
byte [] | Read16 (byte addr) |
Read data from the NTAG I2C. Warning, addr is related to the I2C mapping, which is different from the NFC mapping. | |
bool | Write16 (byte addr, byte[] data) |
Write data into the NTAG I2C. Warning, addr is related to the I2C mapping, which is different from the NFC mapping. data shall be a 16-byte buffer. | |
bool | Erase16 (byte addr) |
Write empty data into the NTAG I2C. Warning, addr is related to the I2C mapping, which is different from the NFC mapping. | |
void | DumpMemoryContent () |
Read all the data from the NTAG I2C and show them onto the console. | |
void | DumpSessionRegisters () |
TLV | ReadResponse () |
Read the response from the remote device (if some) through the NTAG_I2C's SRAM. | |
bool | ClearResponse () |
Clear the NTAG_I2C's SRAM. | |
Properties | |
bool | Valid [get] |
Return true if the object is valid, i.e. if a NTAG I2C chip has actually been found on the I2C bus. | |
byte [] | UID [get] |
Return the serial number (or UID). It should be in the form "04 <5 bytes> 80" for a genuine NXP NTAG I2C. | |
The NTAG_I2C object gives access to a NTAG I2C chip through a FTDI USB/I2C bridge (FT2222)