28
number >31)
Parameters
icdev:Value of Device Handle.
_SecNr:Section number(M1:0~15,M1S70:0-39)
_KeyA:Key A
_CtrlW:Control Word of key
_Bk:Set value 0
_KeyB:Key B
Return Value
0 if successful; otherwise, Nonzero.
Example
int st;
unsigned char keya;
unsigned char keyb;
unsigned char ctrlword={0xff,0x07,0x80,0x69};
memset(keya,0xff,6);
memset(keyb,0xff,6);
st=fw_changeb3(icdev,1,keya, ctrlword,0,keyb);//change the key of sector 1
int fw_initval(int icdev,unsigned char _Adr,unsigned long _Value);
D Description
Initial value of block.
Parameters
icdev:Value of Device Handle.
_Adr:Address of block
_Value:value of block for seting
Return Value
0 if successful; otherwise, Nonzero.
Example
int st;
unsigned long value;
value=1000;
/*set value
as 1000*/
st=fw_initval(icdev,1,value);
/*Initial value of block 1 as 1000*/
Remark
During value operation, you must first initialize the value function, and then
make the others read, increment, decrement operation.
int fw_increment(int icdev,unsigned char _Adr,unsigned long _Value);
Description
Increment value of certain block.
Parameters
icdev:Value of Device Handle.
_Adr:Address of block
_Value:Value for increment
Return Value
0 if successful; otherwise, Nonzero.