请问有没有用过RC632读取15693协议卡的朋友,小弟现在能实现读取15693协议相关的卡号,可是进**操作时无论如何都不能成功,知道的朋友能否指点下,代码如下:
ic_status=ISO15693_Select(0x22,&UID[0]);
int8_t ISO15693_Select(uint8_t flags, uint8_t *uid)
{
uint8_t ic_status;
TranSciveBuffer MfComData;
TranSciveBuffer *pi;
pi = &MfComData;
ClearBitMask(RegCoderControl, 0x80);
MfComData.MfCommand = PCD_TRANSCEIVE;
MfComData.MfLength = 10;
MfComData.MfData[0] = flags;
MfComData.MfData[1] = ISO15693_SELECT;
memcpy (&MfComData.MfData[2], uid, 8);
ic_status = ISO15693_Transceive(pi);
if ( (ic_status == MI_OK) && (MfComData.MfLength != 0x08) )
{
ic_status = MI_BITCOUNTERR;
}
return ic_status;
} |
|