Last change
on this file since 1253 was 1253, checked in by dingo35, 14 years ago |
Move Reset to ifd_phoenix.c and cleanup lot of overhead
|
File size:
1.6 KB
|
Line | |
---|
1 | /*****************************************************************
|
---|
2 | /
|
---|
3 | / File : ctapi.h
|
---|
4 | / Author : David Corcoran
|
---|
5 | / Date : September 2, 1998
|
---|
6 | / Purpose: Defines CT-API functions and returns
|
---|
7 | / License: See file LICENSE
|
---|
8 | / Note : modified by doz21
|
---|
9 | /
|
---|
10 | ******************************************************************/
|
---|
11 |
|
---|
12 | #ifndef _ctapi_h_
|
---|
13 | #define _ctapi_h_
|
---|
14 |
|
---|
15 | #ifdef __cplusplus
|
---|
16 | extern "C" {
|
---|
17 | #endif
|
---|
18 |
|
---|
19 | #define MAX_APDULEN 1040
|
---|
20 |
|
---|
21 | extern char CT_init (
|
---|
22 | unsigned short Ctn /* Terminal Number */
|
---|
23 | );
|
---|
24 |
|
---|
25 | extern char CT_close(
|
---|
26 | unsigned short Ctn /* Terminal Number */
|
---|
27 | );
|
---|
28 |
|
---|
29 | extern char CT_data(
|
---|
30 | unsigned short ctn, /* Terminal Number */
|
---|
31 | unsigned char *dad, /* Destination */
|
---|
32 | unsigned char *sad, /* Source */
|
---|
33 | unsigned short lc, /* Length of command */
|
---|
34 | unsigned char *cmd, /* Command/Data Buffer */
|
---|
35 | unsigned short *lr, /* Length of Response */
|
---|
36 | unsigned char *rsp /* Response */
|
---|
37 | );
|
---|
38 |
|
---|
39 |
|
---|
40 | #define OK 0 /* Success */
|
---|
41 | #define ERR_INVALID -1 /* Invalid Data */
|
---|
42 | #define ERR_CT -8 /* CT Error */
|
---|
43 | #define ERR_TRANS -10 /* Transmission Error */
|
---|
44 | #define ERR_MEMORY -11 /* Memory Allocate Error */
|
---|
45 | #define ERR_HTSI -128 /* HTSI Error */
|
---|
46 |
|
---|
47 | /* #define DAD */
|
---|
48 | #define CARD 0
|
---|
49 | #define CT 1
|
---|
50 | #define HOST 2
|
---|
51 |
|
---|
52 | #ifdef __cplusplus
|
---|
53 | }
|
---|
54 | #endif
|
---|
55 |
|
---|
56 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.