-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
37 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,25 @@ | ||
/* | ||
* Support for bR301(Bluetooth) smart card reader | ||
* | ||
* ft301u.h: header file for ft_ccid.c | ||
* | ||
* Copyright (C) Feitian 2014, Ben <[email protected]> | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 2.1 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 | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public | ||
* License along with this library; if not, write to the Free Software | ||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
*/ | ||
|
||
/** | ||
* @file | ||
* @This isfeitian's private cmd. | ||
|
@@ -9,21 +31,11 @@ | |
|
||
#include "wintypes.h" | ||
|
||
|
||
typedef enum READERTYPE{ | ||
READER_UNKOWN = 0, | ||
READER_bR301, | ||
READER_iR301U_DOCK, | ||
READER_iR301U_LIGHTING | ||
|
||
}READERTYPE; | ||
|
||
#ifdef __cplusplus | ||
extern "C" | ||
{ | ||
#endif | ||
LONG SCARD_CTL_CODE(unsigned int code); | ||
|
||
/* | ||
Function: FtGetSerialNum | ||
|
@@ -35,6 +47,7 @@ extern "C" | |
Description: | ||
This function userd to get serial number of iR301. | ||
*/ | ||
|
||
LONG FtGetSerialNum(SCARDHANDLE hCard, unsigned int length, | ||
char * buffer); | ||
/* | ||
|
@@ -143,6 +156,7 @@ extern "C" | |
Parameters: | ||
bDidEnter IN must be set 1 | ||
Description: | ||
Use this method to release monitor thread of reader status | ||
|
@@ -164,44 +178,34 @@ extern "C" | |
Description: | ||
This function userd to transmit data with SLE4442 card | ||
*/ | ||
LONG FtSle4442Cmd(SCARDHANDLE hCard,LPCBYTE pbCmd,DWORD bLengthToRead,BYTE bIsClockNum,LPBYTE pbRecvBuffer,LPDWORD pcbRecvLength); | ||
|
||
/* | ||
LONG FtSle4442Cmd(SCARDHANDLE hCard,LPCBYTE pbCmd,DWORD bLengthToRead,BYTE bIsClockNum,LPBYTE pbRecvBuffer,LPDWORD pcbRecvLength); | ||
LONG FtGetDevVer( SCARDCONTEXT hContext,char *firmwareRevision,char *hardwareRevision); | ||
/* | ||
Function: FtGetLibVersion | ||
Parameters: | ||
buffer :buffer of libVersion | ||
Description: | ||
Get the Current Lib Version | ||
*/ | ||
void FtGetLibVersion (char *buffer); | ||
|
||
/* | ||
Function: FtGetDevVer | ||
Parameters: | ||
hContext IN Connection made from SCardConnect(Ignore this parameter and just set to zero in iOS system) | ||
firmwareRevision INOUT IN: The buffer OUT: The real buffer contain return version data | ||
hardwareRevision INOUT IN: The buffer OUT: The real buffer contain return version data | ||
Description: | ||
Get the current Reader firmware Version and hardware Version | ||
*/ | ||
LONG FtGetDevVer( SCARDCONTEXT hContext,char *firmwareRevision,char *hardwareRevision); | ||
|
||
/* | ||
/* | ||
Function: FtGetCurrentReaderType | ||
Parameters: | ||
readerType : INOUT IN: int value OUT: The real current reader type | ||
readerType : Get reader type | ||
Description: | ||
Get current Reader Type | ||
Get the Current reader type | ||
*/ | ||
|
||
LONG FtGetCurrentReaderType(unsigned int *readerType); | ||
LONG FtGetCurrentReaderType(unsigned int *readerType); | ||
|
||
#ifdef __cplusplus | ||
} | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters