diff --git a/Library/PCSC API/include/ft301u.h b/Library/PCSC API/include/ft301u.h index e166a8e..1f3a134 100755 --- a/Library/PCSC API/include/ft301u.h +++ b/Library/PCSC API/include/ft301u.h @@ -9,11 +9,21 @@ #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 @@ -25,7 +35,6 @@ extern "C" Description: This function userd to get serial number of iR301. */ - LONG FtGetSerialNum(SCARDHANDLE hCard, unsigned int length, char * buffer); /* @@ -134,7 +143,6 @@ extern "C" Parameters: bDidEnter IN must be set 1 - Description: Use this method to release monitor thread of reader status @@ -156,21 +164,45 @@ 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); - /* + + /* 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 + + Description: + Get current Reader Type + */ + + LONG FtGetCurrentReaderType(unsigned int *readerType); + #ifdef __cplusplus } #endif diff --git a/Library/PCSC API/lib/iRockey301_ccid_ST_V1.31.2_debug.a b/Library/PCSC API/lib/iRockey301_ccid_ST_V1.31.2_debug.a deleted file mode 100644 index 2104cf0..0000000 Binary files a/Library/PCSC API/lib/iRockey301_ccid_ST_V1.31.2_debug.a and /dev/null differ diff --git a/Library/PCSC API/lib/iRockey301_ccid_ST_V1.31.2_release.a b/Library/PCSC API/lib/iRockey301_ccid_ST_V1.31.2_release.a deleted file mode 100644 index 52ca83c..0000000 Binary files a/Library/PCSC API/lib/iRockey301_ccid_ST_V1.31.2_release.a and /dev/null differ diff --git a/Library/PCSC API/lib/libiRockey301_ccid_V1.31.4_debug.a b/Library/PCSC API/lib/libiRockey301_ccid_V1.31.4_debug.a new file mode 100644 index 0000000..383cea6 Binary files /dev/null and b/Library/PCSC API/lib/libiRockey301_ccid_V1.31.4_debug.a differ diff --git a/Library/PCSC API/lib/libiRockey301_ccid_V1.31.4_release.a b/Library/PCSC API/lib/libiRockey301_ccid_V1.31.4_release.a new file mode 100644 index 0000000..4535664 Binary files /dev/null and b/Library/PCSC API/lib/libiRockey301_ccid_V1.31.4_release.a differ diff --git a/Readme.txt b/Readme.txt index 15e8c19..1ea0825 100755 --- a/Readme.txt +++ b/Readme.txt @@ -1,4 +1,5 @@ - +2016/4/18 + Update iOS SDK, add get reader type API - FtGetCurrentReaderType. 2016/2/24 Fix SCardGetStatusChange() may (not always, but frequently) return “SCARD_E_READER_UNAVAILABLE” problem, new lib version is 1.31.2 2015/12/25