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
8 of 47
• RF field management, receiver and transmitter configuration
• Timers configuration
• Resolving interrupt sources from reader chip
• FIFO management
Data passed from upper layers are packed together with command code into special
order, thus reader is able to decode them as command code, address and data. Section
2.1 is focused on description of functions performing CLRC663 native commands and
section 2.2 describes some HAL layer functions independent of reader chip.
The NXP Reader Library also supports Pegoda reader
1.1.1.4 Bus Abstraction Layer
The Bus Abstraction Layer ensures correct communication interface between the master
device and the reader chip. The master device can be PC with Windows or Linux
platform installed or MCU and it sends to the reader chip commands and other command
related data like addresses and data bytes. The card reader can send some register
values or received data like the response to requests from the mater device.
The NXP Reader Library supports following communication interfaces:
SerialWin:
serial connection for Windows platform
Rd70x USB Win: drivers for Windows platform to enable connection to Pegoda reader
PcscWin: driver for PC/SC interface running on Windows platform
Stub: Originally it was intended like component without functionality to ease
implementation of additional busses. Currently it supports SPI, I2C and RS232 interfaces
enabling connection to the Blueboard
[27] or Xpresso board.
The reader chip can possibly send replies – mostly when MCU requests value of
particular register.
1.1.1.5 Common Layer
The NXP Reader Library also includes utilities independent of any card and hardware
(card reader) – meaning they can be implemented regardless of hardware components.
All of them are encapsulated into the Common Layer
phTools: this part of common layer is able to perform binary operations related to CRC
and bit parity both for various lengths. CRC and parity check are used very rarely in
communication between PC or MCU and the card reader.
Note: These functions must not be implemented into the reader and any card
intercommunication. All the CRC checksum is done by both the sides automatically.
phKeyStore: is key handling software – storage, changing key format etc.. But the NXP
Reader Library supports only key storage utility. Only the NXP Reader Library Export
Controlled version supports full key storage functionalities and for those card readers
from phKeyStore part in
Fig 3.
phLog: software module enabling log files creation.
1.1.1.6 Data structures of the layers
Each layer uses its own data structure to store important data, parameters for hardware
and software configuration. Members of structures determine branching of program flow