55
flag:
sign,0—data can be writed after encryption
1—data has been encrypted.
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,0x
55,0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x66,0
x66};
st= fw_MFPlusL3_WriteWithEncrypt(icdev,4, 3,writeData,0);
int
fw_MFPlusL3_InitVal(int ihic, unsigned int blkAddr,unsigned long value);
Description:
Initialize the block to value block for the three-level card
Parameters:
ihic:
handle of device
blkAddr: the block NO
value:
value of initialize settings
Example:
int st;
st= fw_MFPlusL3_InitVal(icdev,4, 1000);
int
fw_MFPlusL3_ReadVal(int ihic, unsigned int blkAddr,unsigned long* value);
Description:
Read the value of the value block for the three-level card(check the balance)
Parameters:
ihic:
handle
of device
blkAddr: the block NO.
value:
the value to be read
Example:
int st;
unsigned long charge;
st= fw_MFPlusL3_ReadVal(icdev,4, &charge);
int
fw_MFPlusL3_Increment(int ihic, unsigned int blkAddr,unsigned long value);
Description:
Add the value of the value block for the three-level card(recharge)
Parameters:
ihic:
handle
of device
blkAddr: the block NO.
value:
the increased value
Example:
int st;
st= fw_MFPlusL3_Increment(icdev,4, 100);