![Advanced Card ACR20 Скачать руководство пользователя страница 17](http://html1.mh-extra.com/html/advanced-card/acr20/acr20_program-reference-manual_2855845017.webp)
Smart Card Reader Driver Program Reference Manual
rev 1.1 Sept, 2003
Advanced Card Systems Ltd.
Page 17 of 34
2.3.3.3 ACI_WriteCarry
The ACI_WriteCarry command is available for EEPROM non-reloadable token counter cards.
The parameter structure is defined as follows:
Name
Value
Description
CLA 0x00
Instruction
class
INS
ACI_WriteCarry
Instruction code for the write carry command
P1
0x01,0x02 or 0x03
0x01 = write carry without backup
0x02 = write with backup
0x03 = write carry with backup
P2
Variable
LSB of the starting address to be written
Lc
0x01
Only one byte at a time is allowed for this command
DataIn
Variable
DataIn[0] contains the byte that is to be written into the card
Le
0x00
No response data expected from the card
2.3.3.4 ACI_WritePr
The ACI_WritePr command is available for some memory cards with protected memory logic.
The parameter structure is defined as follows:
Name
Value
Description
CLA 0x00
Instruction
class
INS
ACI_WritePr
Instruction code for the write protect command
P1
Variable
MSB of the starting address to be written
P2
Variable
LSB of the starting address to be written
Lc
variable <= 32
The number of bytes to be written into the card
DataIn
Variable
Lc bytes of data to be written into the card
Le
0x00
No response data expected from the card
2.3.3.5 ACI_Erase
The ACI_Erase command is available for some memory cards with the erasing capability. The
parameter structure is defined as follows:
Name
Value
Description
CLA 0x00
Instruction
class
INS
ACI_Erase
Instruction code for the erase command
P1
Variable
MSB of the starting address to be erased
P2
Variable
LSB of the starting address to be erased
Lc
variable <= 32
The number of bytes to be erased from the card
DataIn -
Don't
care
Le
0x00
No response data expected from the card