Download ACR89U-A1 Application Programming Interface V1.01

Transcript
Table of Contents
1.0.
Introduction ............................................................................................................. 5
1.1.
1.2.
Scope and Limitation ............................................................................................................. 5
Reference .............................................................................................................................. 5
2.0.
Compiler Independent Data Types ......................................................................... 6
3.0.
Smart Card API Functions ...................................................................................... 7
3.1.
Firmware Version Records .................................................................................................... 7
Hardware Code: HW-AA-BB-CC .................................................................................. 7
Production Firmware Code: XYYY................................................................................ 7
Data Structures ...................................................................................................................... 7
SCARD_MSG_TYPE .................................................................................................... 7
Functions ............................................................................................................................... 9
SCard_Manager_Msg_Receive .................................................................................... 9
SCard_Manager_Select Card ....................................................................................... 9
SCard_Manager_CardOn ............................................................................................. 9
SCard_Manager_CardOff ........................................................................................... 10
SCard_Manager_SendBlock ...................................................................................... 10
3.2.
3.3.
3.1.1.
3.1.2.
3.2.1.
3.3.1.
3.3.2.
3.3.3.
3.3.4.
3.3.5.
4.0.
Reader API Functions ........................................................................................... 12
4.1.
Battery API Functions .......................................................................................................... 12
Data Structures ........................................................................................................... 12
Functions ..................................................................................................................... 12
Buzzer API Functions .......................................................................................................... 13
Data Structures ........................................................................................................... 13
Functions ..................................................................................................................... 13
Keypad API Functions ......................................................................................................... 15
Data Structures ........................................................................................................... 15
Functions ..................................................................................................................... 17
EEPROM API Functions ...................................................................................................... 19
Data Structures ........................................................................................................... 19
Functions ..................................................................................................................... 19
Real-Time Clock API Functions ........................................................................................... 20
Data Structures ........................................................................................................... 20
Functions ..................................................................................................................... 20
LCD API Functions .............................................................................................................. 24
Data Structures ........................................................................................................... 24
Functions ..................................................................................................................... 24
Serial Flash API Functions .................................................................................................. 29
Data Structures ........................................................................................................... 29
Functions ..................................................................................................................... 29
RS232 API Functions .......................................................................................................... 31
Data Structures ........................................................................................................... 31
Functions ..................................................................................................................... 32
Miscellaneous I/O API Functions ......................................................................................... 35
Data Structures ........................................................................................................... 35
Functions ..................................................................................................................... 36
4.2.
4.3.
4.4.
4.5.
4.6.
4.7.
4.8.
4.9.
4.1.1.
4.1.2.
4.2.1.
4.2.2.
4.3.1.
4.3.2.
4.4.1.
4.4.2.
4.5.1.
4.5.2.
4.6.1.
4.6.2.
4.7.1.
4.7.2.
4.8.1.
4.8.2.
4.9.1.
4.9.2.
5.0.
RF Card API Functions (only for ACR89-CL version) ......................................... 39
5.1.
Data Structures .................................................................................................................... 39
Functions ..................................................................................................................... 39
RFIF_Sleep ................................................................................................................. 39
RFIF_Wakeup ............................................................................................................. 39
5.1.1.
5.1.2.
5.1.3.
6.0.
FreeRTOS API Functions ...................................................................................... 40
6.1.
Task Creation ...................................................................................................................... 40
xTaskHandle ............................................................................................................... 40
6.1.1.
Page 2 of 78
ACR89U-A1 – Application Programming Interface
Version 1.01
info@acs.com.hk
www.acs.com.hk