User Manual

30
Return function, transfer the contents of EEPROM to the card's internal registers
Parameters
icdev:Value of Device Handle.
_Adr: Block address used to transfer.
Return Value
0 if successful; otherwise, Nonzero.
Example
int st;
st=fw_restore(icdev,1);
Remark
Use this function transfers the contents from one block of card to the internal
register.and then use the function fw_transfer() transfers the contents from
internal register to the other block of card. By this way,the contents would be
transfers from one block to the other block and realize the value transfer between
blocks.. The function can only be used for value block
int fw_transfer(int icdev,unsigned char _Adr);
Description
this function transfers the contents of the internal register to the transmitted
a ddress.The sector must be authenticated for this operation .The transfer function
can only be called directly after increment,decrement or restore.
Parameters
icdev:Value of Device Handle.
_Adr:the address on the card to which the contents of the internal register is
transferred to
Return Value
0 if successful; otherwise, Nonzero.
Example
fw_restore(icdev,1);
fw_transfer(icdev,2);
this two lines will transfer the contents of block 1 to block 2.
Remark
reference the description of fw_ restore
2.5 S70 card specific function
int fw_read_S70 (int icdev, unsigned char _Adr, unsigned char *_Data);
Description
Read S70 card, only can read one block once, 16 bytes.
Parameters
icdev: Value of Device Handle.
_Adr: Block address (0-255);
_Data: Read data
Return Value