📄 mifareprohost.txt
字号:
/**********************************************************************************
文件名:MifarePro Card 处理函数
输出:返回读取状态 status
核心处理: M500PiccExchangeBlock,卡片<->读卡器之间的数据交换
时间: 11-03-09
**********************************************************************************/
#include "MifarePro.h"
#include "includes.h"
//unsigned char GBLK = 0; //The GBLK must be the variable which is used in this files!
//unsigned char CID = 0x55;
unsigned int ExCmdLen = 32;
//unsigned char idata i,atq[2],snr[10],sak,snr_len;
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//MifarePro Card 复位操作函数
char MProCardReset(unsigned char *CmdBuf,unsigned int *len)
{
//M500PiccActivateIdle(0,atq,&sak,snr,&snr_len);
if((MProCommand(CmdBuf,ExCmdLen,CmdBuf,len,1,256))!= MI_OK) return (!MI_OK);
if(CmdBuf[*len-4] == 0x90) return (MI_OK);
else return (!MI_OK);
}
/**********************************************************************
函数名:Cmd_PackedCmd
输入参数: 命令内容包,命令长度.
输出: 返回读取状态标识 status
核心处理: MifarePro Card 命令处理函数.->数据交换.
时间: 16-03-09
**********************************************************************/
char Cmd_PackedProc(unsigned char *CmdBuf,unsigned int *len)
{
//M500PiccActivateIdle(0,atq,&sak,snr,&snr_len);
if(MProCommand(CmdBuf,ExCmdLen,CmdBuf,len,1,256) != MI_OK) return(!MI_OK);
if(CmdBuf[*len-4]==0x90) return(MI_OK);
else return(!MI_OK);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -