Skip to content

Commit

Permalink
Update to latest SDK
Browse files Browse the repository at this point in the history
Solve auto pps issue
  • Loading branch information
FeitianSmartcardReader committed Sep 18, 2016
1 parent 42b5feb commit 63a1760
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 31 deletions.
64 changes: 34 additions & 30 deletions Library/PCSC API/include/ft301u.h
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.
Expand All @@ -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
Expand All @@ -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);
/*
Expand Down Expand Up @@ -143,6 +156,7 @@ extern "C"
Parameters:
bDidEnter IN must be set 1
Description:
Use this method to release monitor thread of reader status
Expand All @@ -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
}
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 3 additions & 1 deletion Readme.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
2016/4/18
2016/9/13
Add auto pps
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
Expand Down

0 comments on commit 63a1760

Please sign in to comment.