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
24 of 47
2.3 PAL: ISO/IEC14443-3A
2.3.1 ISO14443A part 3
The ISO/IEC 14443 part 3 defines the start of communication and how to select the PICC
and resolve situations, when more cards are present in the field of reader. Sometimes
this is called “Card activation Sequence”. ISO/IEC 14443-3 protocol is split into A and B
version. MIFARE Classic uses A type.
A particular feature of these functions is complexity. They represent software
implementation of procedures defined in ISO/IEC14443-3 exploiting functions of
underlaying HAL layer to execute partial steps of procedures. All the following mentioned
functions are involved in protocol abstraction layer with
phpalI14443p3a_Sw_DataParams_t storing parameters of layer.
It is recommended to use activation function
phpalI14443p3a_ActivateCard()
described in
section 2.3.4 which implements all other functions inside and executes all the procedures
according ISO/IEC14443p3. This is just a recommendation due to comfort. If any reason
to call particular function, it is possible call it separately, of course.
2.3.2 Init ISO14443-3A
- phpalI14443p3a_Sw_Init()
This function initiates PAL ISO14443-3A component.
phStatus_t phpalI14443p3a_Sw_Init(
phpalI14443p3a_Sw_DataParams_t * pDataParams, [In]
uint16_t wSizeOfDataParams, [In]
void * pHalDataParams ); [In]
*pDataParams: pointer to the PAL layer data parameter structure.
wSizeOfDataParams: specifies the size of the data parameter structure. Recommended
to pass here
sizeof(phalMfc_Sw_DataParams_t)
.
*pHalDataParams: pointer to the parameter structure of the underlying HAL layer.
returnValues:
PH_ERR_SUCCESS
- operation successful.
PH_ERR_INVALID_DATA_PARAMS
–
wSizeOfDataParams
does not agree with defined size of PAL
ISO14443p3A structure.
Except previous function this layer implements also one additional important component
MIFARE Although PAL MIFARE component
2.3.3 Request A
- phStatus_t phpalI14443p3a_RequestA()
This function transmits request type A (REQA) then it expects immediate answer to that
request (ATQA). Data rates are automatically configured on 106kHz data rate for both
receiver and transmitter. During this operation CRC module of reader chip is turned off
for both reception and transmission signal. After request is transmitted, routine waits for
any answer until timeout (timers T1, T0) expires.
phStatus_t phpalI14443p3a_RequestA(
void * pDataParams, [In]
uint8_t * pAtqa ); [Out]
*pDataParams: pointer to the PAL layer data parameter structure.