NXP Reader Library  v17.1.0.2535

Sam AV3 commands for MIFARE Ultralight X mode feature. More...

Collaboration diagram for X Mode:

Functions

phStatus_t phhalHw_SamAV3_Cmd_UL_PwdAuthUL (phhalHw_SamAV3_DataParams_t *pDataParams, uint8_t bKeyNo, uint8_t bKeyVer, uint8_t *pDivInput, uint8_t bDivInputLen, uint8_t *pStatusCode)
 SAM commands used for MIFARE Ultralight PICC communication in X-Mode. More...
 
phStatus_t phhalHw_SamAV3_Cmd_ULC_AuthenticatePICC (phhalHw_SamAV3_DataParams_t *pDataParams, uint8_t bOption, uint8_t bKeyNo, uint8_t bKeyVer, uint8_t *pDivInput, uint8_t bDivInputLen, uint8_t *pStatusCode)
 Performs AuthenticatePICC command execution in X mode.Includes the header, Key number, Key Version,Diversification input based on Option Field. More...
 

Sam AV3 command code for PwdAuthUL feature.

#define PHHAL_HW_SAMAV3_CMD_UL_PWD_AUTH_PICC_INS   0x2D
 Sam AV3 X mode Instruction code for PwdAuthUL command.
 
#define PHHAL_HW_SAMAV3_CMD_ULC_AUTHENTICATE_PICC_INS   0x2C
 Sam AV3 X mode Instruction code for PwdAuthUL command.
 

Option macros for Sam AV3 MIFARE Ultralight key diversification.Includes the header, Key number,

Key Version,Diversification input.

#define PHHAL_HW_SAMAV3_CMD_ULC_AUTHENTICATE_DIV_OFF   0x00
 Option mask to disable the exchange of diversification input.
 
#define PHHAL_HW_SAMAV3_CMD_ULC_AUTHENTICATE_DIV_ON   0x01
 Option mask to enable the exchange of diversification input.
 
#define PHHAL_HW_SAMAV3_CMD_ULC_AUTHENTICATE_EXCLUDE_LE   0x00
 Option mask to exclude LE in exchange buffer.
 
#define PHHAL_HW_SAMAV3_CMD_ULC_AUTHENTICATE_INCLUDE_LE   0x02
 Option mask to include LE in exchange buffer.
 

Detailed Description

Sam AV3 commands for MIFARE Ultralight X mode feature.

Function Documentation

◆ phhalHw_SamAV3_Cmd_UL_PwdAuthUL()

phStatus_t phhalHw_SamAV3_Cmd_UL_PwdAuthUL ( phhalHw_SamAV3_DataParams_t pDataParams,
uint8_t  bKeyNo,
uint8_t  bKeyVer,
uint8_t pDivInput,
uint8_t  bDivInputLen,
uint8_t pStatusCode 
)

SAM commands used for MIFARE Ultralight PICC communication in X-Mode.

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]bKeyNo[In] Key number available in Sam keystore.
[in]bKeyVer[In] Key version available in Sam keystore.
[in]pDivInput[In] Diversification input for key diversification. (1 to 31 byte(s) input).
[in]bDivInputLen[In] Length of diversification input.
[out]pStatusCode[Out] Status code returned by PICC.

◆ phhalHw_SamAV3_Cmd_ULC_AuthenticatePICC()

phStatus_t phhalHw_SamAV3_Cmd_ULC_AuthenticatePICC ( phhalHw_SamAV3_DataParams_t pDataParams,
uint8_t  bOption,
uint8_t  bKeyNo,
uint8_t  bKeyVer,
uint8_t pDivInput,
uint8_t  bDivInputLen,
uint8_t pStatusCode 
)

Performs AuthenticatePICC command execution in X mode.Includes the header, Key number, Key Version,Diversification input based on Option Field.

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]bOption[In] Option for P1 information byte.
[in]bKeyNo[In] Key number available in Sam keystore.
[in]bKeyVer[In] Key version available in Sam keystore.
[in]pDivInput[In] Diversification input for key diversification. (1 to 31 byte(s) input).
[in]bDivInputLen[In] Length of diversification input.
[out]pStatusCode[Out] Status code returned by PICC.