NXP Reader Library  v17.1.0.2535
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. More...

Collaboration diagram for Commands_Miscellaneous:

Functions

phStatus_t phalMfprimeNtag_GetConfig (void *pDataParams, uint16_t wConfig, uint16_t *pValue)
 Perform a GetConfig command. More...
 
phStatus_t phalMfprimeNtag_SetConfig (void *pDataParams, uint16_t wConfig, uint16_t wValue)
 Perform a SetConfig command. More...
 
phStatus_t phalMfprimeNtag_ResetAuthentication (void *pDataParams)
 Reset the authentication. More...
 
phStatus_t phalMfprimeNtag_CalculateMACSDM (void *pDataParams, uint16_t wOption, uint8_t bSdmOption, uint16_t wSDMFileReadKeyNo, uint16_t wSDMFileReadKeyVer, uint16_t wRamKeyNo, uint16_t wRamKeyVer, uint8_t *pDivInput, uint8_t bDivInputLen, uint8_t *pUid, uint8_t bUidLen, uint8_t *pSDMReadCtr, uint8_t *pInData, uint16_t wInDataLen, uint8_t *pRespMac)
 Calculate MAC for SDM information. More...
 

The configuration to be used for SetConfig / GetConfig.

#define PHAL_MFPRIMENTAG_ADDITIONAL_INFO   0x00A1U
 Option for getconfig to get additional info of a generic error.
 
#define PHAL_MFPRIMENTAG_SHORT_LENGTH_APDU   0x00A3U
 Option to get / set Short Length APDU wrapping in ISO 7816-4 APDUs.
 

Detailed Description

These Components implement the MIFARE PRIME NTAG Miscellaneous functions. These are not part of actual NTAG data sheet rather its for internal purpose.

Function Documentation

◆ phalMfprimeNtag_GetConfig()

phStatus_t phalMfprimeNtag_GetConfig ( void *  pDataParams,
uint16_t  wConfig,
uint16_t pValue 
)

Perform a GetConfig command.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
OtherDepending on implementation and underlying component.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]wConfig[In] Configuration to read. Will be one of the below values.
[out]pValue[Out] The value for the mentioned configuration.

◆ phalMfprimeNtag_SetConfig()

phStatus_t phalMfprimeNtag_SetConfig ( void *  pDataParams,
uint16_t  wConfig,
uint16_t  wValue 
)

Perform a SetConfig command.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
OtherDepending on implementation and underlying component.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]wConfig[In] Configuration to set. Will be one of the below values.
[in]wValue[In] The value for the mentioned configuration.

◆ phalMfprimeNtag_ResetAuthentication()

phStatus_t phalMfprimeNtag_ResetAuthentication ( void *  pDataParams)

Reset the authentication.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
OtherDepending on implementation and underlying component.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.

◆ phalMfprimeNtag_CalculateMACSDM()

phStatus_t phalMfprimeNtag_CalculateMACSDM ( void *  pDataParams,
uint16_t  wOption,
uint8_t  bSdmOption,
uint16_t  wSDMFileReadKeyNo,
uint16_t  wSDMFileReadKeyVer,
uint16_t  wRamKeyNo,
uint16_t  wRamKeyVer,
uint8_t pDivInput,
uint8_t  bDivInputLen,
uint8_t pUid,
uint8_t  bUidLen,
uint8_t pSDMReadCtr,
uint8_t pInData,
uint16_t  wInDataLen,
uint8_t pRespMac 
)

Calculate MAC for SDM information.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
OtherDepending on implementation and underlying component.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]wOption[In] Diversification option. 0xFFFF is for No Diversification.
[in]bSdmOption[In] SDM Option to indicate which parameters to be considered. Can be ORed.
[in]wSDMFileReadKeyNo[In] Key number in SW key store key.
[in]wSDMFileReadKeyVer[In] Key version in Sw key store.
[in]wRamKeyNo[In] Key number of Destination Key where the computed session TMAC key will be stored. To be used for SAM AV3 only.
[in]wRamKeyVer[In] Key version of Destination Key where the computed session TMAC key will be stored. To be used for SAM AV3 only.
[in]pDivInput[In] Diversification input to diversify the SDMFileReadKey.
[in]bDivInputLen[In] Length of byte available in DivInput buffer.
[in]pUid[In] UID of the card.
[in]bUidLen[In] Length of bytes available in UID buffer.
[in]pSDMReadCtr[In] SDM Read Counter Input.
[in]pInData[In] Data read out of PICC from SDMMacInputoffset for ReadLength bytes
[in]wInDataLen[In] Length of bytes available in InData buffer.
[out]pRespMac[Out] The computed MAC information.