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.224 July 2013
257412
23 of 47
PH_ERR_SUCCESS
operation successful.
PH_ERR_INTERFACE_ERROR
communication error.
2.2.9 FieldReset
- phhalHw_FieldReset()
This function performs reset of the RF field. Firstly the RF field is turned off by
FieldOff()
(see section 2.2.8) function and subsequently the RF field is enabled by
FieldOn()
(see
section 2.2.7) function. Both those states are hold for a certain amount of time while
doing nothing else.
phStatus_t phhalHw_FieldReset(
void * pDataParams ); [In]
*pDataParams: pointer to the HAL layer data parameter structure. HAL structure
parameters
pDataParams->wFieldOffTime
and
pDataParams->wFieldRecoveryTime
determine
how long (in milliseconds)
FieldOff()
and
FieldOn()
functions hold their field states.
Default value for both the timeouts is 5 milliseconds. Whilst field off and field recovery
times can be changed by
phhalHw_SetConfig()
function individually, units are
unchangeable (milliseconds are fixed).
returnValues:
PH_ERR_SUCCESS
operation successful.
PH_ERR_INTERFACE_ERROR
communication error.
2.2.10 Wait
- phhalHw_Wait()
This function utilizes reader chip timers T0 and T1 to hold program flow for a given
amount of time. Program leaves this function when timeout elapses.
phStatus_t phhalHw_Wait(
void * pDataParams, [In]
uint8_t bUnit, [In]
uint16_t wTimeout ); [In]
*pDataParams: pointer to the HAL layer data parameter structure.
bUnit: unit of given timeout value. Either
PHHAL_HW_TIME_MICROSECONDS
or
PHHAL_HW_TIME_MILLISECONDS
.
wTimeout: timeout value.
returnValue:
PH_ERR_SUCCESS
operation successful.
PH_ERR_INVALID_PARAMETER bUnit
is invalid.
PH_ERR_INTERFACE_ERROR
communication error.