User manual
NXP Semiconductors
UM10663
NXP Reader Library User Manual
UM10663
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2013. All rights reserved.
User Manual
COMPANY PUBLIC
Rev. 1.2 — 24 July 2013
257412
20 of 47
uint16_t
wFieldRecoveryTime: field recovery time in milliseconds. How long
FieldReset()
function (see section 2.2.9) holds the field turned on while doing nothing
else.
uint8_t bBalConnectionType: type of the underlying BAL connection interface. This
parameter is necessary from software point of view, thus it has no impact on hardware
pin configuration communication interface in the MCU.
PHHAL_HW_BAL_CONNECTION_RS232:
reader connected to the MCU via RS232.
PHHAL_HW_BAL_CONNECTION_SPI:
reader connected to the MCU via SPI.
PHHAL_HW_BAL_CONNECTION_I2C:
reader connected to the MCU via I2C.
uint8_t
bRfResetAfterTo: binary switch for field reset after timeout. If any PAL
ISO/IEC14443-3A function (described in section ) receives no response from PICC after
timeout expiration and this parameter is set
PH_ON
then PCD RF field is reset by
FieldReset()
function.
2.2.2 Initialization HAL
- phhalHw_Rc663_Init()
This function loads entire HAL layer data parameter structure with values. The HAL layer
data parameter structure contains much more parameters than number of input
parameters of this function. Consequently, by this function developer can influence only
those HAL layer parameters matched to input parameters whilst the rest of the HAL
parameters are initialized on default values. Check definition of initialization function for
particular reader chip in NxpRdLib_PublicRelease\comps\phhalHw\src\
<FolderOfReaderChip>\phhalHw<ReaderChip> whether default initialization values
satisfy your intended purpose. Use
phhalHw_SetConfig()
function (see section 2.2.3) to
modify any parameter of a HAL layer component on any legal value.
phStatus_t phhalHw_Rc663_Init(
phhalHw_Rc663_DataParams_t * pDataParams, [In]
uint16_t wSizeOfDataParams, [In]
void * pBalDataParams, [In]
uint8_t * pLoadRegConfig, [In]
uint8_t * pTxBuffer, [In]
uint16_t wTxBufSize, [In]
uint8_t * pRxBuffer, [In]
uint16_t wRxBufSize ); [In]
*pDataParams: pointer to the HAL layer parameter structure.
wSizeOfDataParams: specifies the size of the data parameter structure.
*pBalDataParams: pointer to the underlaying BAL layer data parameter structure.
*pLoadRegConfig: pointer to configuration buffer for Load Register mode in
ApplyprotocolSettings()
(see section 2.1.13).
*pTxBuffer: pointer to global transmit buffer used by data exchange in PAL
ISO/IEC14443-3A layer.
wTxBufSize: size of the global transmit buffer.
*pRxBuffer: pointer to global receive buffer used by data exchange in PAL
ISO/IEC14443-3A layer.