Commit315a068d by developer33

ReaderOpenEx added, lib submodules updated, binaries updated

家长 d3e39a84
eclipse.preferences.version=1
环境/项目/ cdt.managedbuild.config.gnu.mingw.exe.release.1272368177.226908958.1226322284/MINGW_HOME/delimiter=;
环境/项目/ cdt.managedbuild.config.gnu.mingw.exe.release.1272368177.226908958.1226322284/MINGW_HOME/operation=replace
环境/项目/ cdt.managedbuild.config.gnu.mingw.exe.release.1272368177.226908958.1226322284/MINGW_HOME/value=C\:\\mingw-w64\\x86_64-5.1.0-posix-seh-rt_v4-rev0\\mingw64
环境/项目/ cdt.managedbuild.config.gnu.mingw.exe.release.1272368177.226908958.1226322284/MINGW_HOME/value=C\:\\mingw64
环境/项目/ cdt.managedbuild.config.gnu.mingw.exe.release.1272368177.226908958.1226322284/append=true
环境/项目/ cdt.managedbuild.config.gnu.mingw.exe.release.1272368177.226908958.1226322284/appendContributed=true
环境/项目/ cdt.managedbuild.config.gnu.mingw.exe.release.1272368177.226908958.1777558369.2075570673/MINGW_HOME/delimiter=;
环境/项目/ cdt.managedbuild.config.gnu.mingw.exe.release.1272368177.226908958.1777558369.2075570673/MINGW_HOME/operation=replace
环境/项目/ cdt.managedbuild.config.gnu.mingw.exe.release.1272368177.226908958.1777558369.2075570673/MINGW_HOME/value=C\:\\mingw-w64\\i686-5.1.0-posix-dwarf-rt_v4-rev0\\mingw32
环境/项目/ cdt.managedbuild.config.gnu.mingw.exe.release.1272368177.226908958.1777558369.2075570673/MINGW_HOME/value=C\:\\mingw32
环境/项目/ cdt.managedbuild.config.gnu.mingw.exe.release.1272368177.226908958.1777558369.2075570673/append=true
环境/项目/ cdt.managedbuild.config.gnu.mingw.exe.release.1272368177.226908958.1777558369.2075570673/appendContributed=true
环境/项目/ cdt.managedbuild.config.gnu.mingw.exe.release.1272368177.226908958.1777558369/MINGW_HOME/delimiter=;
环境/项目/ cdt.managedbuild.config.gnu.mingw.exe.release.1272368177.226908958.1777558369/MINGW_HOME/operation=replace
环境/项目/ cdt.managedbuild.config.gnu.mingw.exe.release.1272368177.226908958.1777558369/MINGW_HOME/value=C\:\\mingw-w64\\i686-5.1.0-posix-dwarf-rt_v4-rev0\\mingw32
环境/项目/ cdt.managedbuild.config.gnu.mingw.exe.release.1272368177.226908958.1777558369/MINGW_HOME/value=C\:\\mingw32
环境/项目/ cdt.managedbuild.config.gnu.mingw.exe.release.1272368177.226908958.1777558369/append=true
环境/项目/ cdt.managedbuild.config.gnu.mingw.exe.release.1272368177.226908958.1777558369/appendContributed=true
环境/项目/ cdt.managedbuild.config.gnu.mingw.exe.release.1272368177.226908958/MINGW_HOME/delimiter=;
环境/项目/ cdt.managedbuild.config.gnu.mingw.exe.release.1272368177.226908958/MINGW_HOME/operation=replace
环境/项目/ cdt.managedbuild.config.gnu.mingw.exe.release.1272368177.226908958/MINGW_HOME/value=C\:\\mingw-w64\\x86_64-5.1.0-posix-seh-rt_v4-rev0\\mingw64
环境/项目/ cdt.managedbuild.config.gnu.mingw.exe.release.1272368177.226908958/MINGW_HOME/value=C\:\\mingw-w64\\x86_64-8.1.0-posix-seh-rt_v6-rev0\\mingw64
环境/项目/ cdt.managedbuild.config.gnu.mingw.exe.release.1272368177.226908958/append=true
环境/项目/ cdt.managedbuild.config.gnu.mingw.exe.release.1272368177.226908958/appendContributed=true
lib@9f2464bb
Subproject commit763e3fccda8fa5f453102803d2fd168bf9b2b900
Subproject commit9f2464bb97d4b665a60544b934858984fae4430c
... ... @@ -59,23 +59,62 @@ int main(void) {
printf(" Please wait while opening uFR NFC reader.\n");
printf(" --------------------------------------------------\n");
status=ReaderOpen();
if(status!=UFR_OK){
printf(" Error while opening device, status is: 0x%08X\n",status);
getchar();
returnEXIT_FAILURE;
}
intmode=0;
printf("Select reader opening mode:\n");
printf(" (1) - Simple Reader Open\n");
printf(" (2) - Advanced Reader Open\n");
scanf("%d",&mode);
fflush(stdin);
if(mode==1){
status=ReaderOpen();
}
elseif(mode==2)
{
uint32_treader_type=1;
charport_name[1024]="";
uint32_tport_interface=2;
charopen_args[1024]="";
constcharstr_interface[2]="";
printf("Enter reader type:\n");
scanf("%d",&reader_type);
fflush(stdin);
printf("Enter port name:\n");
scanf("%s",port_name);
fflush(stdin);
printf("Enter port interface:\n");
scanf("%s",str_interface);
if(str_interface[0]=='U'){
port_interface=85;
}elseif(str_interface[0]=='T')
{
port_interface=84;
}else{
port_interface=atoi(str_interface);
}
fflush(stdin);
printf("Enter additional argument:\n");
scanf("%s",open_args);
fflush(stdin);
status=ReaderOpenEx(reader_type,port_name,port_interface,open_args);
}
else
{
printf("Invalid input. Press any key to quit the application...");
getchar();
returnEXIT_FAILURE;
}
if(!CheckDependencies()){
ReaderClose();
getchar();
returnEXIT_FAILURE;
}
status=ReaderReset();
if(status!=UFR_OK){
printf(" Error while opening device, status is: 0x%08X\n",status);
getchar();
returnEXIT_FAILURE;
}
printf(" --------------------------------------------------\n");
printf(" uFR NFC reader successfully opened.\n");
... ...
... ... @@ -130,14 +130,14 @@ const char *GetDlTypeName(uint8_t dl_type_code) {
return"DL_MIFARE_CLASSIC_1K";
caseDL_MIFARE_CLASSIC_4K:
return"DL_MIFARE_CLASSIC_4K";
caseDL_MIFARE_PLUS_S_2K:
return"DL_MIFARE_PLUS_S_2K";
caseDL_MIFARE_PLUS_S_4K:
return"DL_MIFARE_PLUS_S_4K";
caseDL_MIFARE_PLUS_X_2K:
return"DL_MIFARE_PLUS_X_2K";
caseDL_MIFARE_PLUS_X_4K:
return"DL_MIFARE_PLUS_X_4K";
caseDL_MIFARE_PLUS_S_2K_SL0:
return"DL_MIFARE_PLUS_S_2K_SL0";
caseDL_MIFARE_PLUS_S_4K_SL0:
return"DL_MIFARE_PLUS_S_4K_SL0";
caseDL_MIFARE_PLUS_X_2K_SL0:
return"DL_MIFARE_PLUS_X_2K_SL0";
caseDL_MIFARE_PLUS_X_4K_SL0:
return"DL_MIFARE_PLUS_X_4K_SL0";
caseDL_MIFARE_DESFIRE:
return"DL_MIFARE_DESFIRE";
caseDL_MIFARE_DESFIRE_EV1_2K:
... ...
    Markdownis supported
    0%or
    You are about to add0peopleto the discussion. Proceed with caution.
    Finish editing this message first!
    Pleaseregisterorto comment
    Baidu
    map