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
21 of 47
wRxBufSize: size of the global receive buffer. Specify the buffer +1 byte, because one
byte is reserved for SPI communication.
2.2.3 SetConfig
- phhalHw_SetConfig()
This function performs changing the value of the particular parameter (member) of the
HAL layer data parameter structure, but it does not modify the structure itself (adding or
erasing new parameters - members) because one structure is fix defined for particular
reader chip. For example, this function can be used to set timeouts for
FieldReset()
function. This function is implemented by many functions of HAL and PAL layer as well,
for example to set timeouts and bits according to set desired communication protocol. If a
parameter is closely matched with particular register, in addition
phhalHw_SetConfig()
function executes writing the value to correct PCD register (for example
bFifoSize
or
wMaxPrecachcedBytes
are related to FifoSize register). Therefore rather use this function to
modify desired parameter of HAL layer component.
phStatus_t phhalHw_SetConfig(
void * pDataParams, [In]
uint16_t wConfig, [In]
uint16_t wValue ); [In]
*pDataParams: pointer to the HAL layer data parameter structure.
wConfig: configuration identifier specifies parameter (member) to be changed. All the
configuration identifiers (
PHHAL_HW_CONFIG_<CONFIGURATION_IDENTIFIER>
) are listed in
phhalHw.h file in folder NxpRdLib_PublicRelease\intfs.
wValue: configuration value. New value of the parameter.
returnValue:
2.2.4 GetConfig
- phhalHw_GetConfig()
This function is complementary to the previous
phhalHw_SetConfig()
function (see
previous section 2.2.3). It reads current configuration value of given parameter from HAL
data parameter structure component.
phStatus_t phhalHw_GetConfig(
void * pDataParams, [In]
uint16_t wConfig, [In]
uint16_t * pValue ); [Out]
*pDataParams: pointer to the HAL layer data parameter structure.
wConfig: configuration identifier specifies parameter (member) to be read. All the
configuration identifiers (
PHHAL_HW_CONFIG_<CONFIGURATION_IDENTIFIER>
) are listed in
phhalHw.h file in folder NxpRdLib_PublicRelease\intfs.
*pValue: pointer to variable, where read value is copied into.
2.2.5 ReadRegister
- phhalHw_ReadRegister()
This function reads a value from any PCD register.
phStatus_t phhalHw_ReadRegister(
void * pDataParams, [In]
uint8_t bAddress, [In]