ntag i2c 2k - select sector annotation

This commit is contained in:
iceman1001 2021-08-22 21:02:11 +02:00
commit edc300ea97
2 changed files with 15 additions and 1 deletions

View file

@ -31,6 +31,8 @@ Ultralight C
1A = Step1 Authenticate
AF = Step2 Authenticate
NTAG i2c 2K
C2 = SECTOR_SELECT
ISO14443B
05 = REQB
@ -190,6 +192,10 @@ ISO 7816-4 Basic interindustry commands. For command APDU's.
#define MIFARE_ULNANO_WRITESIG 0xA9
#define MIFARE_ULNANO_LOCKSIG 0xAC
// NTAG i2k 2K uses sector 0, and sector 1 to have access to
// block 0x00-0xFF.
#define NTAG_I2C_SELECT_SECTOR 0xC2
// mifare 4bit card answers
#define CARD_ACK 0x0A // 1010 - ACK
#define CARD_NACK_IV 0x00 // 0000 - NACK, invalid argument (invalid page address)