57
Description
Information transfer between CPU Card and APDU(Application Protocol Data Unit),
This function encapsulates the T = 0 and T = 1 operation
Parameters
ICDev: Handle of Reader Device
slen: Length of information for send
sbuff: Information buffer for send
rlen:
Length of information received
rbuff: [out] buff for returned Information
Return Value
<0 error, its absolute value is error number
=0
successful
Example
int st;
unsigned char slen,rlen,senddata[100], recdata[100];
slen=5;
senddata[0]=0x00;senddata[1]=0x84;senddata[2]=0x00;
senddata[3]=0x00;senddata[4]=0x04;
st= fw_cpuapdu ( icdev,slen,senddata,&rlen,recdata)
/*send the random number command to the card*/
__int16 fw_setcpupara (HANDLE ICDev, unsigned char cputype, unsigned char cpupro,
unsigned char cpuetu)
Description
Set parameters of CPU card, default parameter cpupro=0(T=0 protocol)
cpuetu=92(baud rate 9600) after power on.
Parameters
ICDev: Handle of Reader Device
cputype:Type of Deck.
ox0c: Main deck(ISO7816);
0x0d: SAM1;
0x0e:SAM2;
0x0f:SAM3.
Cpupro: Protocol of card. value 0: T=0 Protocol; value 1: T=1 protocol.
cpuetu: Time-delay data (Decimal) in card operation. For cards with different baud
rates, the value of this parameter is different. Set 92 for 9600(baud rate), set
20 for 38400(baud rate)
Return Value
<0 error, its absolute value is error number
=0
successful
__int16 fw_cpureset (HANDLE ICDev, unsigned char *rlen, unsigned char *rbuff)
Description
Power-on reset function of CPU Card, it will automatically judge card protocol
after reset.
Parameters
ICDev: Handle of Reader Device
Содержание E7
Страница 3: ...3 4 Appendix 68 4 1 Table 1 Mifare Plus card personalized structure 68 ...
Страница 5: ...5 ...