source: branches/merlin/csctapi/ctapi.h@ 531

Last change on this file since 531 was 531, checked in by smurzch2, 12 years ago

Header file wasn't updated, causing problems at compile time.

File size: 1.7 KB
Line 
1
2/*****************************************************************
3/
4/ File : ctapi.h
5/ Author : David Corcoran
6/ Date : September 2, 1998
7/ Purpose: Defines CT-API functions and returns
8/ License: See file LICENSE
9/ Note : modified by doz21
10/
11******************************************************************/
12
13#ifndef _ctapi_h_
14# define _ctapi_h_
15
16# ifdef __cplusplus
17extern "C" {
18# endif
19
20# define MAX_APDULEN 1040
21
22 extern char CT_init(char *device, /* Device Path */
23 unsigned long frequency, /* Frequency */
24 unsigned short reader_type /* Reader Type (phoenix, smartmouse, sci, smartreader+) */
25 );
26
27 extern char CT_close();
28
29 extern char CT_data(unsigned char *dad, /* Destination */
30 unsigned char *sad, /* Source */
31 unsigned short lc, /* Length of command */
32 unsigned char *cmd, /* Command/Data Buffer */
33 unsigned short *lr, /* Length of Response */
34 unsigned char *rsp /* Response */
35 );
36
37
38# define OK 0 /* Success */
39# define ERR_INVALID -1 /* Invalid Data */
40# define ERR_CT -8 /* CT Error */
41# define ERR_TRANS -10 /* Transmission Error */
42# define ERR_MEMORY -11 /* Memory Allocate Error */
43# define ERR_HTSI -128 /* HTSI Error */
44
45# define PORT_COM1 0 /* COM 1 */
46# define PORT_COM2 1 /* COM 2 */
47# define PORT_COM3 2 /* COM 3 */
48# define PORT_COM4 3 /* COM 4 */
49# define PORT_Printer 4 /* Printer Port (MAC) */
50# define PORT_Modem 5 /* Modem Port (MAC) */
51# define PORT_LPT1 6 /* LPT 1 */
52# define PORT_LPT2 7 /* LPT 2 */
53
54 /* #define DAD */
55# define CARD 0
56# define CT 1
57# define HOST 2
58
59# ifdef __cplusplus
60}
61# endif
62#endif
Note: See TracBrowser for help on using the repository browser.