Skip to content

Commit

Permalink
Add get reader type API into SDK
Browse files Browse the repository at this point in the history
More information, check readme
  • Loading branch information
FeitianSmartcardReader committed Jun 29, 2016
1 parent 16eb814 commit 42b5feb
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 6 deletions.
42 changes: 37 additions & 5 deletions Library/PCSC API/include/ft301u.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
/*
Expand Down Expand Up @@ -134,7 +143,6 @@ extern "C"
Parameters:
bDidEnter IN must be set 1
Description:
Use this method to release monitor thread of reader status
Expand All @@ -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
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 2 additions & 1 deletion Readme.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 42b5feb

Please sign in to comment.