Gains access to the specified block. BlockAddress - Block index. Key - Array of 6 bytes. KeyA - If true then key A will be used. Otherwise key B will be used.
Reads the data from the specified block. Returns the number of bytes read. You should first call MifareAuthenticate. BlockAddress - Block index. Buffer - Data will be written to this buffer. Must be 18 bytes or more. The last two bytes are the checksum.
Writes data to the specified block. Returns true if writing was successful. You should first call MifareAuthenticate. BlockAddress - Block index. Buffer - Data to write. 16 bytes will be written (array length must be 16 or more).
TYPE_ISO_14443_4AsByte
PICC compliant with ISO/IEC 14443-4
TYPE_ISO_18092AsByte
PICC compliant with ISO/IEC 18092 (NFC)
TYPE_MIFARE_1KAsByte
MIFARE Classic protocol, 1KB
TYPE_MIFARE_4KAsByte
MIFARE Classic protocol, 4KB
TYPE_MIFARE_MINIAsByte
MIFARE Classic protocol, 320 bytes
TYPE_MIFARE_PLUSAsByte
MIFARE Plus
TYPE_MIFARE_ULAsByte
MIFARE Ultralight or Ultralight C
TYPE_NOT_COMPLETEAsByte
TYPE_TNP3XXXAsByte
Only mentioned in NXP AN 10833 MIFARE Type Identification Procedure