📄 ctapi.h.bak
字号:
/* CT-API Copyright (C) 1998 Gregor A. Panstruga This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Contact: Gregor A. Panstruga Reulestr. 28 D - 12105 Berlin gap@mail.blinx.de This is a so called CT-API for SmartPort-Readers (serial Version) made by: Tritheim Technologies, Inc. 101 West Court Street Tarpon Springs, FL 34689 USA Ref.: MKT Spec. 0.9 August 1995 and 1.0 Feb. 1997 Report bugs or comments to: gap@mail.blinx.de Thanks to: Cy Husdon from T2I for supplying the readers and help. Known Bugs: GET STATUS-Command with Tag 80 is generated by Software (not really a bug) not tested very well ;-) History: 0.10 only alpha-testing 0.20 does now support up to 261 byte in APDU added timing to REQUEST ICC Complied under LINUX-Kernel - 2.2.1 with gcc-2.7.2 Don磘 fear the Penguins Version 0.20 *//* defines for sad (source address) and dad (dest. address) */#define CT 1#define HOST 2#define ICC1 0#define ICC2 2#define ICC3 3#define ICC4 4#define ICC5 5#define ICC6 6/* CT-API Errors */#define OK 0#define ERR_INVALID -1#define ERR_CT -8#define ERR_TRANS -10#define ERR_MEMORY -11#define ERR_HTSI -128/* Prototypes */char CT_init ( unsigned short ctn, unsigned short pn );char CT_data ( unsigned short ctn, unsigned char * dad, unsigned char * sad, unsigned short lenc, unsigned char * command, unsigned short * lenr, unsigned char * response );char CT_close ( unsigned short ctn );
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -