NXP Reader Library  v17.1.0.2535

RD70x (Pegoda1) Reader HAL. More...

Collaboration diagram for Component : Rd70x:

Modules

 Commands
 Supported ReaderIC commands.
 
 Internal
 Internal definitions.
 
 Register Definitions
 Register definitions.
 

Data Structures

struct  phhalHw_Rd70x_DataParams_t
 Rd70x HAL parameter structure. More...
 

Macros

#define PHHAL_HW_RD70X_ID   0x04
 ID for Rd70x HAL component.
 
#define PHHAL_HW_RD70X_SHADOW_COUNT   0x000DU
 Number of shadowed configurations.
 
#define PHHAL_HW_RD70X_RESERVED_BUFFER_LEN   32U
 Amount of needed and reserved memory for the protocol overhead.
 
#define PHHAL_HW_RD70X_FIFOSIZE   256U
 Size of RC internal FiFo buffer.
 
#define PHHAL_HW_RD70X_DEFAULT_TIMEOUT_MS   5U
 Default timeout in milliseconds.
 

Functions

phStatus_t phhalHw_Rd70x_Init (phhalHw_Rd70x_DataParams_t *pDataParams, uint16_t wSizeOfDataParams, phbalReg_Rd70xUsbWin_DataParams_t *pBalDataParams, uint8_t *pTxBuffer, uint16_t wTxBufSize, uint8_t *pRxBuffer, uint16_t wRxBufSize)
 Initialise the HAL component. More...
 

Rd70x specific configs

#define PHHAL_HW_RD70X_CONFIG_DISABLE_PCDRESET   (PH_CONFIG_CUSTOM_BEGIN + 0)
 < Disable PcdReset call in phhalHw_ApplyProtocolSettings function. More...
 

Detailed Description

RD70x (Pegoda1) Reader HAL.

It is neccessary to make use of PHHAL_HW_RD70X_CONFIG_DISABLE_PCDRESET for this reader to support multiple cards.

Macro Definition Documentation

◆ PHHAL_HW_RD70X_CONFIG_DISABLE_PCDRESET

#define PHHAL_HW_RD70X_CONFIG_DISABLE_PCDRESET   (PH_CONFIG_CUSTOM_BEGIN + 0)

< Disable PcdReset call in phhalHw_ApplyProtocolSettings function.

Set this to PH_ON on every HAL instance to prevent the reader from resetting powered cards
on an phhalHw_ApplyProtocolSettings call.
Ensure that it is set to PH_OFF when you set the protocol the first time to have essential parameters set in the firmware.

Function Documentation

◆ phhalHw_Rd70x_Init()

phStatus_t phhalHw_Rd70x_Init ( phhalHw_Rd70x_DataParams_t pDataParams,
uint16_t  wSizeOfDataParams,
phbalReg_Rd70xUsbWin_DataParams_t pBalDataParams,
uint8_t pTxBuffer,
uint16_t  wTxBufSize,
uint8_t pRxBuffer,
uint16_t  wRxBufSize 
)

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]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.