NXP Reader Library  v17.1.0.2535

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

Collaboration diagram for S Mode:

Functions

phStatus_t phhalHw_SamAV3_Cmd_SAM_PwdAuthUL_Part1 (phhalHw_SamAV3_DataParams_t *pDataParams, uint8_t bKeyNo, uint8_t bKeyVer, uint8_t *pDivInput, uint8_t bDivInputLen, uint8_t **ppPwd, uint16_t *pPwdLen)
 Performs PwdAuthUL command execution part 1 in S mode. More...
 
phStatus_t phhalHw_SamAV3_Cmd_SAM_PwdAuthUL_Part2 (phhalHw_SamAV3_DataParams_t *pDataParams, uint16_t wPack)
 Performs PwdAuthUL command execution part 2 in S mode. More...
 

Sam AV3 command code for PwdAuthUL feature.

#define PHHAL_HW_SAMAV3_CMD_SAM_PWD_AUTH_UL_INS   0x0B
 Sam AV3 X mode Instruction code for PwdAuthUL command.
 
#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.
 

Detailed Description

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

Function Documentation

◆ phhalHw_SamAV3_Cmd_SAM_PwdAuthUL_Part1()

phStatus_t phhalHw_SamAV3_Cmd_SAM_PwdAuthUL_Part1 ( phhalHw_SamAV3_DataParams_t pDataParams,
uint8_t  bKeyNo,
uint8_t  bKeyVer,
uint8_t pDivInput,
uint8_t  bDivInputLen,
uint8_t **  ppPwd,
uint16_t pPwdLen 
)

Performs PwdAuthUL command execution part 1 in S mode.

The first part includes the header, Key number, Key Version,Diversification input and returns Message

Return values
PH_ERR_SUCCESS_CHAININGOperation 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]ppPwd[Out] Overall message (4 byte).
[out]pPwdLen[Out] Overall message Lenght (4 byte).

◆ phhalHw_SamAV3_Cmd_SAM_PwdAuthUL_Part2()

phStatus_t phhalHw_SamAV3_Cmd_SAM_PwdAuthUL_Part2 ( phhalHw_SamAV3_DataParams_t pDataParams,
uint16_t  wPack 
)

Performs PwdAuthUL command execution part 2 in S mode.

The Last part includes the header and Password authentication acknowledge

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]wPack[In] Passwork Authentication Acknowledge.