NXP Reader Library  v17.1.0.2535
Component : RdCardSim

RdCardSim Reader HAL. More...

Collaboration diagram for Component : RdCardSim:

Data Structures

struct  phhalHw_RdCardSim_DataParams_t
 RdCardSim HAL parameter structure. More...
 

Macros

#define PHHAL_HW_RDCARDSIM_ID   0x05
 ID for Reader Card Simulation HAL component.
 

Functions

phStatus_t phhalHw_RdCardSim_Init (phhalHw_RdCardSim_DataParams_t *pDataParams, uint16_t wSizeOfDataParams, void *pBalDataParams, void *pKeyStoreDataParams, uint8_t *pTxBuffer, uint16_t wTxBufSize, uint8_t *pRxBuffer, uint16_t wRxBufSize, uint8_t *pIntBuffer, uint16_t wIntBufferLen)
 Initialise the HAL component. More...
 

Detailed Description

RdCardSim Reader HAL.

This simulator works only with the digital simulator the was developed in the MF1C14 project.

Restriction: This module only supports one card type at the same time.
To support more cards at the same time a shadow has to be implemented to shadow all configurations.
The phhalHw_RdCardSim_ApplyProtocolSettings function has to be extended to support the shadow and the default configuration.

Function Documentation

◆ phhalHw_RdCardSim_Init()

phStatus_t phhalHw_RdCardSim_Init ( phhalHw_RdCardSim_DataParams_t pDataParams,
uint16_t  wSizeOfDataParams,
void *  pBalDataParams,
void *  pKeyStoreDataParams,
uint8_t pTxBuffer,
uint16_t  wTxBufSize,
uint8_t pRxBuffer,
uint16_t  wRxBufSize,
uint8_t pIntBuffer,
uint16_t  wIntBufferLen 
)

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 layer's parameter structure.
[in]wSizeOfDataParams[In] Specifies the size of the data parameter structure.
[in]pBalDataParams[In] Pointer to the lower layers parameter structure.
[in]pKeyStoreDataParams[In] Pointer to the parameter structure of the keyStore layer.
[in]pTxBuffer[In] Pointer to global transmit buffer used by the Exchange() function.
[in]wTxBufSize[In] Size of the global transmit buffer.
[in]pRxBuffer[In] Pointer to global receive buffer used by the Exchange() function.
[in]wRxBufSize[In] Size of the global receive buffer.
[in]pIntBuffer[In] Internal buffer used as a scratch buffer.
[in]wIntBufferLen[In] Length of innternal buffer used as a scratch buffer.