ACR1281U-C8 – Application Programming Interface
Version 1.00
www.acs.com.hk
Page 41 of 52
UINT8 Cmd[5]={0x94, 0xb2, 0x01, 0x3c, 0x1D};
INT16 RetCode;
xLen=5;
SID=1;
typeA = FALSE; // Type B card
//Selects a single card and returns the card ID (Serial Number)
retcode = ACR120_Select(rHandle, SID, &HaveTag, &tmpbyte, tmpArray);
if (retcode == 0)
{
// If a card is selected, proceed to issue an APDU of 94B2013C1D
PICC_InitBlockNumber(0);
retcode = PICC_Xch_APDU(rHandle, SID, typeA, &xLen, Cmd, &rLen,
rData);
//check if retcode is error
if(retcode < 0){
// Exchange APDU failed
} else{
// Exchange APDU successful
}
}