下你所需,载你所想!
汇集开发技术源码资料

STM32和PN5180的NFC开发包

:7.639MB :1 :2022-10-10 15:46:23

部分简介

STM32和PN5180的NFC开发包如果开发者对于本文件有需要的可以参考。
STM32和PN5180的NFC开发包,可实现ISO15693和ISO14443A协议读写卡。
uint16_t ISO14443_SendWakeUpTypeAAndReadATQA(void)
{
uint16_t ATQA = 0;
uint16_t Length = 0;
uint8_t Buffer[32];
uint8_t Command[3];
/* Sends WAKE-UP(Wake-UP command,Type A) command */
Command[0] = PHHAL_HW_PN5180_SET_INSTR_SEND_DATA;
Command[1] = 0X07; /* LSB先发,只发送0X52的7bits */
Command[2] = 0X52;
if (ISO14443_CommandSendAndRecvData(Command, sizeof(Command), Buffer, &Length) == 0)
{
if (Length == 2) /* 正确则返回2字节的ATQA */
{
ATQA = (Buffer[1] << 8) | Buffer[0];
}
}
// printf(" ----REQA");
return ATQA;
}

STM32和PN5180的NFC开发包

热门推荐

相关文章