NXP Reader Library  v17.1.0.2535
Component : MfcCrypto

MfcCrypto Reader HAL. More...

Collaboration diagram for Component : MfcCrypto:

Data Structures

struct  phhalHw_MfcCrypto_DataParams_t
 MfcCrypto HAL parameter structure. More...
 

Macros

#define PHHAL_HW_MFCCRYPTO_ID   0xAC
 ID for MIFARE Classic Crypto HAL component.
 
#define PHHAL_HW_MFCCRYPTO_CONFIG_ENABLE   (PH_CONFIG_CUSTOM_BEGIN + 0)
 Configuration to enable the MIFARE Crypto (Default: Off). More...
 

Functions

phStatus_t phhalHw_MfcCrypto_Init (phhalHw_MfcCrypto_DataParams_t *pDataParams, uint16_t wSizeOfDataParams, void *pHalDataParams, uint8_t *pTxBuffer, uint16_t wTxBufSize)
 Initialise the HAL component. More...
 

Detailed Description

MfcCrypto Reader HAL.

Software Implementation of MIFARE Crypto1.

Macro Definition Documentation

◆ PHHAL_HW_MFCCRYPTO_CONFIG_ENABLE

#define PHHAL_HW_MFCCRYPTO_CONFIG_ENABLE   (PH_CONFIG_CUSTOM_BEGIN + 0)

Configuration to enable the MIFARE Crypto (Default: Off).

Enabling the MIFARE Crypto block also disables the Crypto1, CRC's and parity of the hal below.

Function Documentation

◆ phhalHw_MfcCrypto_Init()

phStatus_t phhalHw_MfcCrypto_Init ( phhalHw_MfcCrypto_DataParams_t pDataParams,
uint16_t  wSizeOfDataParams,
void *  pHalDataParams,
uint8_t pTxBuffer,
uint16_t  wTxBufSize 
)

Initialise the HAL component.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
OtherDepending on implementation and underlaying component.
Parameters
[in]pDataParams[In] Pointer to this layers parameter structure.
[in]wSizeOfDataParams[In] Specifies the size of the data parameter structure.
[in]pHalDataParams[In] Pointer to the lower layers parameter structure.
[in]pTxBuffer[In] Pointer to global transmit buffer used by the Exchange() function.
[in]wTxBufSize[In] Size of the global transmit buffer.