NXP Reader Library  v17.1.0.2535
MIFARE PRIME NTAG

These Functions implement the MIFARE PRIME NTAG commands. More...

Collaboration diagram for MIFARE PRIME NTAG:

Modules

 Component : Software
 
 Commands_SecureMessaging
 These Components implement the MIFARE MFPRIMENTAG Secure Messaging related commands.
 
 Commands_MemoryConfiguration
 These Components implement the MIFARE PRIME NTAG Memory and Configuration Management related commands.
 
 Commands_KeyManagement
 These Components implement the MIFARE PRIME NTAG Key Management related commands.
 
 Commands_FileManagement
 These Components implement the MIFARE PRIME NTAG File Management related commands.
 
 Commands_DataManagement
 These Components implement the MIFARE PRIME NTAG Data Management related commands.
 
 Commands_ISO7816
 These Components implement the MIFARE NTAG 42xDNA ISO/IEC 7816-4 Basic commands.
 
 Commands_OriginalityCheck
 These Components implement the MIFARE PRIME NTAG Originality Check functions.
 
 Commands_Miscellaneous
 These Components implement the MIFARE PRIME NTAG Miscellaneous functions. These are not part of actual NTAG data sheet rather its for internal purpose.
 

Other Options for various Functions

#define PHAL_MFPRIMENTAG_ORIGINALITY_KEY_FIRST   0x01U
 Originality key for AES.
 
#define PHAL_MFPRIMENTAG_ORIGINALITY_KEY_LAST   0x04U
 Originality key for AES

 
#define PHAL_MFPRIMENTAG_APP_KEY_LAST   0x02U
 Numebr of application keys.
 
#define PHAL_MFPRIMENTAG_MAC_DATA_INCOMPLETE   0x01U
 Option for indicating more data to come in next call for MAC calculation.
 
#define PHAL_MFPRIMENTAG_COMMUNICATION_MAC_ON_RC   0x02U
 MAC is appended over response

 
#define PHAL_MFPRIMENTAG_AUTHENTICATE_RESET   0x08U
 authentication state shall be reset
 

The communication mode to be used.

#define PHAL_MFPRIMENTAG_COMMUNICATION_PLAIN   0x00U
 Plain mode of communication.
 
#define PHAL_MFPRIMENTAG_COMMUNICATION_MACD   0x10U
 MAC mode of communication.
 
#define PHAL_MFPRIMENTAG_COMMUNICATION_ENC   0x30U
 Enciphered mode of communication.
 

Error Codes mapping to custom values.

#define PHAL_MFPRIMENTAG_ERR_FORMAT   (PH_ERR_CUSTOM_BEGIN + 0)
 MF PRIME NTAG Response - No changes done to backup files.
 
#define PHAL_MFPRIMENTAG_ERR_NO_SUCH_KEY   (PH_ERR_CUSTOM_BEGIN + 2)
 MF PRIME NTAG Invalid key number specified.
 
#define PHAL_MFPRIMENTAG_ERR_PERMISSION_DENIED   (PH_ERR_CUSTOM_BEGIN + 3)
 MF PRIME NTAG Current configuration/status does not allow the requested command.
 
#define PHAL_MFPRIMENTAG_ERR_BOUNDARY_ERROR   (PH_ERR_CUSTOM_BEGIN + 5)
 MF PRIME NTAG Attempt to read/write data from/to beyond the files/record's limits.
 
#define PHAL_MFPRIMENTAG_ERR_COMMAND_ABORTED   (PH_ERR_CUSTOM_BEGIN + 6)
 MF PRIME NTAG Previous cmd not fully completed. More...
 
#define PHAL_MFPRIMENTAG_ERR_DUPLICATE   (PH_ERR_CUSTOM_BEGIN + 8)
 MF PRIME NTAG File/Application with same number already exists.
 
#define PHAL_MFPRIMENTAG_ERR_FILE_NOT_FOUND   (PH_ERR_CUSTOM_BEGIN + 9)
 MF PRIME NTAG Specified file number does not exist.
 
#define PHAL_MFPRIMENTAG_ERR_PICC_CRYPTO   (PH_ERR_CUSTOM_BEGIN + 10)
 MF PRIME NTAG Crypto error returned by PICC.
 
#define PHAL_MFPRIMENTAG_ERR_PARAMETER_ERROR   (PH_ERR_CUSTOM_BEGIN + 11)
 MF PRIME NTAG Parameter value error returned by PICC.
 
#define PHAL_MFPRIMENTAG_ERR_DF_GEN_ERROR   (PH_ERR_CUSTOM_BEGIN + 12)
 MF PRIME NTAG DesFire Generic error. More...
 
#define PHAL_MFPRIMENTAG_ERR_DF_7816_GEN_ERROR   (PH_ERR_CUSTOM_BEGIN + 13)
 MF PRIME NTAG ISO 7816 Generic error. More...
 
#define PHAL_MFPRIMENTAG_ERR_CMD_INVALID   (PH_ERR_CUSTOM_BEGIN + 14)
 MF PRIME NTAG ISO 7816 Generic error. More...
 

Key Types

#define PHAL_MFPRIMENTAG_KEY_TYPE_2K3DES   0x00U
 2 Key Triple Des
 
#define PHAL_MFPRIMENTAG_KEY_TYPE_3K3DES   0x01U
 3 Key Triple Des
 
#define PHAL_MFPRIMENTAG_KEY_TYPE_AES128   0x02U
 AES 128 Key.
 

Detailed Description

These Functions implement the MIFARE PRIME NTAG commands.

Macro Definition Documentation

◆ PHAL_MFPRIMENTAG_ERR_COMMAND_ABORTED

#define PHAL_MFPRIMENTAG_ERR_COMMAND_ABORTED   (PH_ERR_CUSTOM_BEGIN + 6)

MF PRIME NTAG Previous cmd not fully completed.

Not all frames were requested or provided by the PCD.

◆ PHAL_MFPRIMENTAG_ERR_DF_GEN_ERROR

#define PHAL_MFPRIMENTAG_ERR_DF_GEN_ERROR   (PH_ERR_CUSTOM_BEGIN + 12)

MF PRIME NTAG DesFire Generic error.

Check additional Info.

◆ PHAL_MFPRIMENTAG_ERR_DF_7816_GEN_ERROR

#define PHAL_MFPRIMENTAG_ERR_DF_7816_GEN_ERROR   (PH_ERR_CUSTOM_BEGIN + 13)

MF PRIME NTAG ISO 7816 Generic error.

Check Additional Info.

◆ PHAL_MFPRIMENTAG_ERR_CMD_INVALID

#define PHAL_MFPRIMENTAG_ERR_CMD_INVALID   (PH_ERR_CUSTOM_BEGIN + 14)

MF PRIME NTAG ISO 7816 Generic error.

Check Additional Info.