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
11 of 47
PHHAL_HW_RC663_CMD_LPCD_MODE_POWERDOWN_GUARDED:
Same as previous, but uses the timeout
set with either
PHHAL_HW_CONFIG_TIMING_US
or
PHHAL_HW_CONFIG_TIMING_MS
as abort criteria.
Guard-timer in this case is only running during the power-up phases, so the timeout has
to be adjusted properly.
PHHAL_HW_RC663_CMD_LPCD_MODE_OPTION_TRIMM_LPO:
Or this bit to the desired mode to
perform LPO trimming together with the LPCD command.
PHHAL_HW_RC663_CMD_LPCD_MODE_OPTION_IGNORE_IQ
Or this bit to the desired mode to prevent
the function to set I and Q channel values.
bI: I-Channel value in case of no card on antenna.
bQ: is Q-Channel value in case of no card on antenna.
wPowerDownTimeMs: power-down time in milliseconds if power-down mode is used.
wDetectionTimeUs: detection time in microseconds if power-down mode is used.
returnValues:
PH_ERR_SUCCESS
- card present.
PH_ERR_IO_TIMEOUT
- no card found.
PH_ERR_SUCCESS
- operation successful.
Other: depending on implementation and underlaying component.
2.1.4 LoadKey
- phStatus_t phhalHw_Rc663_Cmd_LoadKey()
This function loads a MIFARE Key (6 bytes) into the Key buffer of the reader, that
necessary for further authentication.
phStatus_t phhalHw_Rc663_Cmd_LoadKey(
phhalHw_Rc663_DataParams_t * DataParams, [In]
uint8_t * pKey ); [In]
*pDataParams: pointer to the HAL layer data parameter structure.
*pKey: pointer to the 6 byte MIFARE key array. Value of this key is defined by software,
so any value of key satisfying 6 byte size may be used for attempt to Authenticate. This
is different from LoadKeyE2 command -
phhalHw_Rc663_Cmd_LoadKeyE2()
function, which
loads key from EEPROM without any possibility to find out actual value of the key.
returnValues:
PH_ERR_SUCCESS
- operation successful.
Other: depending on implementation and underlaying component.
2.1.5 LoadKeyE2
- phhalHw_Rc663_Cmd_LoadKeyE2()
This function loads the MIFARE Key (6 bytes) from a position in the PCD EEPROM Key
Storage Area into the Key buffer. Subsequently, with such loaded key the authentication
can be executed.
Note: Before you decide to use this function, see more complex
phalMfc_Authenticate()
function in section
2.4.2 and consider which one is more suitable for your intended
purpose.
phStatus_t phhalHw_Rc663_Cmd_LoadKeyE2(
phhalHw_Rc663_DataParams_t * DataParams, [In]
uint8_t bKeyNo ); [In]