HT-CM400 NXP Semiconductors, HT-CM400 Datasheet - Page 9



Manufacturer Part Number
Ht Cm400; Ht Rm440 Family; Ht Rm800 Family Interface Protocol Reader - Host
NXP Semiconductors
2.2 Using the Provided Host Software Modules
Communication via the serial interface between the host and the read/write device is handled by
using interrupts. As a consequence a host-program only has to test a flag (RWDEot) periodically
to recognize the end of a communication sequence. Meanwhile the program can execute other
functions while the data transfer is running in the background.
To do this, however, some flags are needed:
The names of the commands described in the following have to be prefixed with „proloc_“
to get the correspoding names in the C-Library (e.g. function proloc_GetSnr() for command
GetSnr) for Ordinary Protocol.
All Header Files contain short examples to illustrate the usage of each command.
To open the serial port on the host system use function (Header File PROLIB6.H)
To close the serial port on the host system use function (Header File PROLIB6.H)
In order to prevent undesired side effects use proloc_close before program end or before a
new proloc_open.
To change BCC calculation (when entering or leaving KeyInitMode) use function
(Header File PROLIB6.H)
For communication in Extended Protocol use commands with ‘Proloc_M’-prefix (Header File
proloc_open(char *ComStr) //
proloc_SetBCCMode(BYTE_T mode)
Helps to identify the end of a communication sequence
flag is set to 0 at a library function request
flag is set to 1 at the end of the serial protocol
Saves the error code
0 ... errorfree execution
<0 ... error has occured
Saves the number of bytes received via the serial interface.
Can take any value between 0 and 24.
Page 9 (104)
Rev. 1.0
*ComStr="COM1" for COM1
*ComStr= "COM2" for COM2
mode=0x00: Operating Mode
mode=0x01: KeyInit Mode
Provided Host Software Modules

Related parts for HT-CM400