NXP Reader Library  v17.1.0.2535
Collaboration diagram for Component : Software:

Data Structures

struct  phalMfdfLight_Sw_DataParams_t
 MIFARE DESfire Light Software parameter structure
More...
 

Macros

#define PHAL_MFDFLIGHT_SW_ID   0x01U
 ID for Software MIFARE DESFire Light layer.
 

Functions

phStatus_t phalMfdfLight_Sw_Init (phalMfdfLight_Sw_DataParams_t *pDataParams, uint16_t wSizeOfDataParams, void *pPalMifareDataParams, void *pKeyStoreDataParams, void *pCryptoDataParamsEnc, void *pCryptoDataParamsMac, void *pCryptoRngDataParams, void *pTMIDataParams, void *pHalDataParams)
 Initialise this layer. More...
 

Sizes

#define PHAL_MFDFLIGHT_SIZE_TI   4U
 Size of Transaction Identifier.
 
#define PHAL_MFDFLIGHT_SIZE_MAC   16U
 Size of (untruncated) MAC.
 
#define PHAL_MFDFLIGHT_BLOCK_SIZE   16U
 Block Size.
 
#define PHAL_MFDFLIGHT_MAX_WRITE_SIZE   0xFFFDU
 Max size in a Write function.
 

Detailed Description

Function Documentation

◆ phalMfdfLight_Sw_Init()

phStatus_t phalMfdfLight_Sw_Init ( phalMfdfLight_Sw_DataParams_t pDataParams,
uint16_t  wSizeOfDataParams,
void *  pPalMifareDataParams,
void *  pKeyStoreDataParams,
void *  pCryptoDataParamsEnc,
void *  pCryptoDataParamsMac,
void *  pCryptoRngDataParams,
void *  pTMIDataParams,
void *  pHalDataParams 
)

Initialise this layer.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]wSizeOfDataParams[In] Specifies the size of the data parameter structure
[in]pPalMifareDataParams[In] Pointer to a palMifare component context.
[in]pKeyStoreDataParams[In] Pointer to Key Store data parameters.
[in]pCryptoDataParamsEnc[In] Pointer to a Crypto component context for encryption.
[in]pCryptoDataParamsMac[In] Pointer to a CryptoMAC component context.
[in]pCryptoRngDataParams[In] Pointer to a CryptoRng component context.
[in]pTMIDataParams[In] Pointer to a TMI component.
[in]pHalDataParams[In] Pointer to the HAL parameters structure.