AN1949 STMicroelectronics, AN1949 Datasheet - Page 12

no-image

AN1949

Manufacturer Part Number
AN1949
Description
RFID Reader using STMicroelectronics PSD MCU and CRX14 Coupler to Implement a China National ID Card Reader
Manufacturer
STMicroelectronics
Datasheet
AN1949 - APPLICATION NOTE
SUMMARY OF THE CRX14 CONTROL DRIVER
The CRX14 control driver consists of four files:
The driver controls the CRX14’s behavior via the I
Detailed Description of Key Routines
Explained below are the functions below that may be called by the main program.
int RF_ON(unsigned char *TX, unsigned char *RX)
This function turns on the CRX14’s 13.56MHz carrier out.
int RF_OFF(unsigned char *TX, unsigned char *RX)
This function turns off the CRX14’s 13.56MHz carrier out.
int Send_Receive_Data(unsigned char *TX, unsigned char *RX)
This function writes control bytes to the CRX14’s Input/Output frame register, and receives the answer
bytes, that are sent by the TypeB tag, from the Input/Output frame register.
unsigned char upsd_i2c_init(unsigned char Slave_Addr, unsigned char* Data_Ptr, unsigned
char N)
This function initializes the I
12/22
upsd_i2c.c
upsd_i2cc.h
CRX14_fncs.c
CRX14_fncs.h
*TX
*RX
Return value:
*TX
*RX
Return value:
*TX
*RX
Return value:
Slave_Addr:
Data_Ptr:
N:
Return value:
pointer to the reception buffer
0 = success; not 0 = failure (to enable carrier out)
pointer to the reception buffer
pointer to the reception buffer
0 = success; not 0 = failure (to get data from the CRX14)
Slave address of I
address pointer to the transmission buffer
not applicable
pointer to the transmission buffer
pointer to the transmission buffer
0 = success; not 0 = failure (to disable carrier out)
pointer to the transmission buffer
length of data buffer to be transmitted
2
C line.
2
C device
2
C interface..

Related parts for AN1949