Example #1
0
/******************************************************************************
 * 函 数 名:isCard
 * 功能描述:寻卡
 * 输入参数:无
 * 返 回 值:成功返回ture 失败返回false
 ******************************************************************************/
bool RFID::isCard()
{
    unsigned char status;
    unsigned char str[MAX_LEN];

    status = MFRC522Request(PICC_REQIDL, str);
    if (status == MI_OK)
        return true;
    else
        return false;
}
Example #2
0
 bool RFID::isCard() 
 {
	uint8_t status;
	uint8_t str[MAX_LEN];

	status = MFRC522Request(PICC_REQIDL, str);	
    if (status == MI_OK) {
		return true;
	} else { 
		return false; 
	}
 }