User Manual

54
Description
Write the block data of the three-level card in the clear
Parameters
ihic: handle of device
blkAddr: the starting block NO
blkNum: the number of clock to write(Usually 1~3)
wdata: the data to write
Return:
0 if successful; otherwise, Nonzero.
Example:
int st;
unsigned char writeData[256]=
{0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x4
4, 0x55,0x55,0x55,0x55, 0x55,0x55,0x55,0x55, 0x55,0x55,0x55,0x55,
0x55,0x55,0x55,0x55, 0x66,0x66,0x66,0x66, 0x66,0x66,0x66,0x66,
0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x66};
st= fw_MFPlusL3_WriteWithPlain(icdev,4, 3,writeData);
int fw_MFPlusL3_ReadWithEncrypt(int ihic, unsigned int blkAddr,unsigned char
blkNum,unsigned char* rdata,unsigned char flag);
Description
Read the block data of the three-level card in the encryption way
Parameters:
ihic: handle of device
blkAddr: the starting block NO
blkNum: the number of clock to read(Usually 1~3
rdata: received data to be read
flag: sign bit,0-return after data decryption,
1-directly return without the decryption
Return:
0 if successful; otherwise, Nonzero.
Example:
int st;
unsigned char readData[16];
st= fw_MFPlusL3_ReadWithEncrypt(icdev,4, 3,readData, 0);
int fw_MFPlusL3_WriteWithEncrypt(int ihic, unsigned int blkAddr,unsigned char
blkNum,unsigned char* wdata,unsigned char flag);
Description
Write the block data of the three-level card in the encryption way
Parameters:
ihic: handle of device
blkAddr: the starting block NO
blkNum: the number of clock to read(Usually 1~3
wdata: the data to write