API函数说明资料 下载本文

内容发布更新时间 : 2024/11/14 13:27:06星期一 下面是文章的全部内容请认真阅读。

FR100 IC卡读写器

API

编程说明

版本 1.00

Table of Contents

1 概述

4

1.1 API文件说明: 4 1.2 适用操作系统: 4 1.3

适用开发语言:

4

2 API 函数 5

2.1 设备通用函数 5 2.1.1 int _stdcall IFD_GetDLL_Ver(char *rVER) 5 2.1.2 int _stdcall IFD_SetDLL_CommKEY(unsigned char *key) 5 2.1.3 int _stdcall IFD_SetDLL_CommMode(unsigned char mode) 5 2.1.4 int _stdcall IFD_InitComm(char *portname, unsigned long baud) 5 2.1.5 int _stdcall IFD_ExitComm() 6 2.1.6 int _stdcall IFD_GetDevice_Ver(unsigned char *rData, unsigned char *rLen) 6 2.1.7 int _stdcall IFD_ResetDevice() 6

2.1.8 int _stdcall IFD_Control_LED(unsigned char LedCtrlMode, unsigned char LED1, unsigned char LED2) 6

2.1.9 int _stdcall IFD_Control_Buzzer(unsigned char *cBeepData, unsigned char cLen) 7 2.1.10 int _stdcall IFD_SetDevice_Baud(unsigned char baud) 7 2.1.11 int _stdcall IFD_SetDevice_CommKEY(unsigned char *key) 8 2.2 卡座通用函数 8 2.2.1 int _stdcall IFD_Select_ICC(unsigned char IccNumber) 8 2.2.2 int _stdcall IFD_PowerON_ICC() 8 2.2.3 int _stdcall IFD_PowerDown_ICC() 8

2.2.4 int _stdcall IFD_Get_CardStatus(unsigned char *rCardStatus, unsigned char *rLen) 8 2.2.5 int _stdcall IFD_Get_CardStatus(unsigned char *rCardStatus, unsigned char *rLen) 9 2.2.6 int _stdcall IFD_AutoPowerON(unsigned char mode) 9

2.3 CPU卡专用函数 9

2.3.1 int _stdcall IFD_CPUCARD_Reset(unsigned char *rData, unsigned char *rLen) 9

2.3.2 int _stdcall IFD_CPUCARD_ExchangeAPDU(unsigned char *cData, unsigned char cLen, unsigned char *rData, unsigned char *rLen)

9

2.4 AT24Cxx系列卡专用函数 10 2.4.1 int _stdcall IFD_AT24C01_Reset() 10

2.4.2 int _stdcall IFD_AT24C01_Read(unsigned int Address, unsigned char Len, unsigned char *rData) 10 2.4.3 int _stdcall IFD_AT24C01_Write(unsigned int Address, unsigned char Len, unsigned char *cData) 10 2.4.4 int _stdcall IFD_AT24C01_Reset() 11

2.4.5 int _stdcall IFD_AT24C01_Read(unsigned int Address, unsigned char Len, unsigned char *rData) 11 2.4.6 int _stdcall IFD_AT24C01_Write(unsigned int Address, unsigned char Len, unsigned char *cData)

11

2.5 SLE4442/4432卡专用函数 12 2.5.1 int _stdcall IFD_SLE4442_Reset(unsigned char *rData, unsigned char *rLen)12

2.5.2 int _stdcall IFD_SLE4442_Read(unsigned int Address, unsigned char Len, unsigned char *rData) 12 2.5.3 int _stdcall IFD_SLE4442_Write(unsigned int Address, unsigned char Len, unsigned char *cData) 12

2.5.4 int _stdcall IFD_SLE4442_Read_ProtectZone (unsigned int Address, unsigned char Len, unsigned char *rData) 2.5.5 int _stdcall IFD_SLE4442_Write_ProtectZone (unsigned int Address, unsigned char Len, unsigned char *cData) 2.5.6 int _stdcall IFD_SLE4442_Verify_PSC(unsigned char psc1, unsigned char psc2, unsigned char psc3) 13 2.5.7 int _stdcall IFD_SLE4442_Update_PSC(unsigned char psc1, unsigned char psc2, unsigned char psc3) 132.5.8 int _stdcall IFD_SLE4442_Read_PSC(unsigned char *rPSC, unsigned char *rLen) 14 2.5.9 int _stdcall IFD_SLE4442_Read_EC(unsigned char *rEC, unsigned char *rLen) 14 2.5.10 int _stdcall IFD_SLE4442_Update_EC(unsigned char EC) 14 2.6 SLE4428/4418卡专用函数 15 2.6.1 int _stdcall IFD_SLE4428_Reset(unsigned char *rData, unsigned char *rLen)15

2.6.2 int _stdcall IFD_SLE4428_Read(unsigned int Address, unsigned char Len, unsigned char *rData) 15 2.6.3 int _stdcall IFD_SLE4428_Write(unsigned int Address, unsigned char Len, unsigned char *cData) 15 2.6.4 int _stdcall IFD_SLE4428_Read_PB(unsigned int Address, unsigned char Len, unsigned char *rData) 152.6.5 int _stdcall IFD_SLE4428_Write_PB(unsigned int Address, unsigned char Len, unsigned char *cData) 162.6.6 int _stdcall IFD_SLE4428_Compare_PB(unsigned int Address, unsigned char Len, unsigned char *cData) 162.6.7 int _stdcall IFD_SLE4428_Verify_PSC(unsigned char psc1, unsigned char psc2) 16 2.6.8 int _stdcall IFD_SLE4428_Update_PSC(unsigned char psc1, unsigned char psc2) 17 2.6.9 int _stdcall IFD_SLE4428_Read_PSC(unsigned char *rPSC, unsigned char *rLen) 17 2.6.10 int _stdcall IFD_SLE4428_Read_EC(unsigned char *rEC, unsigned char *rLen) 17 2.6.11 int _stdcall IFD_SLE4428_Update_EC(unsigned char EC) 17 3

返回状态/错误代码

19 附录:SLE4442卡读流程

20

1313