资源简介
KRF-35开发包 自己试试吧 我觉得很好
代码片段和文件信息
#include
#include
#include
#include
#include
#include “mwrf.h“
int main()
{
int icdevi;
int sectorblockloadmode=0cardmode=1;
unsigned long Wvalue=100;
unsigned long Rvalue;
unsigned int Wvalueml=100;
unsigned int Rvalueml;
unsigned long snr;
unsigned long Rsnr;
static unsigned char key1[6]={0xa00xa10xa20xa30xa40xa5};
static unsigned char data32h[32]=“12345678901234567890123456789012“;
static unsigned char data32[32]=“12345678901234567890123456789012“ ;
int ctl_modedisp_modebvalue;
unsigned char str1[8]={0x880x070x060x050x040x030x020x01};
unsigned char buff32[32];
unsigned char rdbuff[20];
unsigned char HLdata[17];
unsigned char Hexdata[32];
unsigned char ver[20];
unsigned char demover[20];
unsigned char snr_buf[16];
unsigned char timebuff[7];
unsigned char timebufh[14];
unsigned char commmode;
int number;
static unsigned char key2[6]={0xff0xff0xff0xff0xff0xff};
static unsigned char data1[16]=“2222“;
static unsigned char data2[16]=“3333“;
unsigned char buff8[8];
//**************** init *********************************//
// chose com2
icdev=rf_init(1115200L);
if(icdev<0)
{
printf(“\nRf_init error.“);
exit(1);
}
while(1){
clrscr();
printf(“\n *********************************************************\n“);
printf( “ ** ““ C““ Function example **\n“);
printf( “ ** **\n“);
printf( “ ** You can choose: **\n“);
printf( “ ** ** 1 ** ** M1 card test** **\n“);
printf( “ ** ** 2 ** ** ML card test** **\n“);
printf( “ ** ** 3 ** ** device test** **\n“);
printf( “ ** ** 4 ** ** exit *** **\n“);
printf( “ ** **\n“);
printf( “ *********************************************************\n“);
printf(“Input:“);
scanf(“%d“&number);
switch(number)
{
case 1:
for (sector=0;sector<16;sector++)
{
if ((rf_load_key(icdev loadmodesectorkey1))!=0)
{
printf(“\nload_key (A) error sec“);
rf_exit(icdev);
exit(1);
}
}
//**************** comm function *********************************//
sector=2;
if((rf_card(icdevcardmode&snr))!=0)
{
printf (“\nno__card“);
getchar();
getchar();
break;
}
if((rf_authentication(icdevloadmodesector))!=0)
{
printf (“\nno authen“);
getchar();
getchar();
break;
}
block=9;
if((rf_write_hex(icdevblockdata32))!=0)
{
printf (“32write wrong\n“);
getchar();
getchar();
break;
}
if((rf_check_writehex(ic
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2012-08-03 14:17 BJ_KRF-35开发包\
目录 0 2010-07-23 21:05 BJ_KRF-35开发包\API\
文件 19319 2009-06-03 16:37 BJ_KRF-35开发包\API\mwrf32.h
文件 86016 2010-07-23 21:04 BJ_KRF-35开发包\API\mwrf_bj.dll
文件 40324 2010-07-23 21:04 BJ_KRF-35开发包\API\mwrf_bj.lib
目录 0 2010-07-26 20:05 BJ_KRF-35开发包\demo\
文件 491520 2010-07-26 20:04 BJ_KRF-35开发包\demo\DemoRF_BJMWV1.0.exe
文件 133431 2009-06-04 16:54 BJ_KRF-35开发包\demo\mwrfhelp.chm
文件 86016 2010-07-23 21:04 BJ_KRF-35开发包\demo\mwrf_bj.dll
目录 0 2010-07-30 15:15 BJ_KRF-35开发包\Example\
目录 0 2010-07-30 15:15 BJ_KRF-35开发包\Example\c.dos\
文件 4852 1999-06-28 13:39 BJ_KRF-35开发包\Example\c.dos\Mwrf.h
文件 9691 1999-10-12 08:27 BJ_KRF-35开发包\Example\c.dos\Sample.cpp
目录 0 2010-07-30 15:15 BJ_KRF-35开发包\Example\Delphi5\
文件 122962 2003-03-04 18:29 BJ_KRF-35开发包\Example\Delphi5\mwrf32.dll
文件 386 2003-04-29 15:51 BJ_KRF-35开发包\Example\Delphi5\Rfexamd.cfg
文件 1043 2003-04-29 15:51 BJ_KRF-35开发包\Example\Delphi5\Rfexamd.dof
文件 191 1998-08-20 08:31 BJ_KRF-35开发包\Example\Delphi5\Rfexamd.dpr
文件 323072 2003-03-19 17:06 BJ_KRF-35开发包\Example\Delphi5\Rfexamd.exe
文件 876 2003-04-29 15:44 BJ_KRF-35开发包\Example\Delphi5\Rfexamd.res
文件 1235 2003-03-19 15:37 BJ_KRF-35开发包\Example\Delphi5\rfexamp.dfm
文件 19871 2003-03-19 17:06 BJ_KRF-35开发包\Example\Delphi5\rfexamp.pas
目录 0 2010-07-30 15:15 BJ_KRF-35开发包\Example\Foxpro.dos\
文件 6234 1999-10-10 15:59 BJ_KRF-35开发包\Example\Foxpro.dos\Sample.fxp
文件 6154 1999-10-10 15:59 BJ_KRF-35开发包\Example\Foxpro.dos\Sample.prg
目录 0 2010-07-30 15:15 BJ_KRF-35开发包\Example\Linux\
文件 914 2004-12-06 14:50 BJ_KRF-35开发包\Example\Linux\Cputest.c
文件 2177 2004-12-06 14:50 BJ_KRF-35开发包\Example\Linux\demorf.c
文件 2371 2004-12-06 14:50 BJ_KRF-35开发包\Example\Linux\device.c
文件 1578 2004-12-06 14:50 BJ_KRF-35开发包\Example\Linux\Protest.c
文件 939 2004-12-06 14:50 BJ_KRF-35开发包\Example\Linux\Samtest.c
............此处省略52个文件信息
评论
共有 条评论