NXP Reader Library  v17.1.0.2535

SAM commands used for performing CommitReaderID in X mode for MifarePlus EV1 and MIFARE DESFire EV2 PICC. More...

Collaboration diagram for X Mode:

Functions

phStatus_t phhalHw_SamAV3_Cmd_TMRI_CommitReaderID (phhalHw_SamAV3_DataParams_t *pDataParams, uint8_t bISOMode, uint8_t bState, uint16_t wBlockNr, uint8_t **ppEncTMRI, uint16_t *pEncTMRILen, uint8_t *pStatusCode)
 Performs CommitReaderID command execution in X mode. More...
 

Option macros for ISO mode selection.

#define PHHAL_HW_CMD_SAMAV3_TMRI_ISO_MODE_NATIVE   0x00
 Sam CommitReaderID ISO mode selection for Native command set.
 
#define PHHAL_HW_CMD_SAMAV3_TMRI_ISO_MODE_ISO7816   0x40
 Sam CommitReaderID ISO mode selection for ISO 7816-4 command set.
 

MIFARE Plus command for SAM AV3 hardware.

#define PHHAL_HW_CMD_SAMAV3_TMRI_COMMIT_READER_ID_INS   0x37
 Sam AV3 X mode Instruction code for CommitReaderID command.
 

Detailed Description

SAM commands used for performing CommitReaderID in X mode for MifarePlus EV1 and MIFARE DESFire EV2 PICC.

Function Documentation

◆ phhalHw_SamAV3_Cmd_TMRI_CommitReaderID()

phStatus_t phhalHw_SamAV3_Cmd_TMRI_CommitReaderID ( phhalHw_SamAV3_DataParams_t pDataParams,
uint8_t  bISOMode,
uint8_t  bState,
uint16_t  wBlockNr,
uint8_t **  ppEncTMRI,
uint16_t pEncTMRILen,
uint8_t pStatusCode 
)

Performs CommitReaderID command execution in X mode.

If success is returned the PICC return code will have 0x00 as the value else the actual error code.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
OtherDepending on implementation and underlaying component.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]bISOMode[In] Options for P2 information byte.
[in]bState[In] The PICC state in which the Sam is currenlty authenticated to.
[in]wBlockNr[In] Block to be used if PICC state is MIFARE Plus EV1.
[out]ppEncTMRI[Out] Encrypted TM Reader ID as returned by PICC.
[out]pEncTMRILen[Out] Length of Encrypted TMRI.
[out]pStatusCode[Out] Status code returned by PICC.