62
icdev: Value of Device Handle.
_Adr:
The starting address to read
_Data: Returned data
length: length of returned data
Return Value
0 if successful; otherwise, Nonzero.
Example
//to read 20 bytes starting from address 0
int st;
unsigned char rbuf[300]={0};
st= fw_read_4428(icdev,0,rbuf,20);
remark
1: the value of length should be less than 1024, otherwise reading card will fail.
2: the parameters _Adr should be less than 1023;
int fw_write_4428(int icdev,unsigned int _Adr,unsigned char *_Data,int length);
Description
Write data to 4428 card
Parameters
icdev: Value of Device Handle.
_Adr:
The starting address of written data
_Data: data to be written
length: length of written data
Return Value
0 if successful; otherwise, Nonzero.
Example
//write 4 bytes starting from address 0x30
int st;
unsigned char sbuf[4]={0x01,0x02,0x03,0x04};
st= fw_write_4428(icdev,0x30,sbuf,4);
remark
1:Parameter _Adr should value between 0x0 and 0x3ff;
2: the value of parameter length should be less than the actual length of data
to be written;
int fw_getProtectData_4428(int icdev,unsigned int _Adr,unsigned char *_Data,int
length);
Description
Read protected bit
Parameters
icdev: Value of Device Handle.
_Adr:
The starting address of read data
_Data: returned protected bit
length: the length to read
Return Value
0 if successful; otherwise, Nonzero.