Security of Software Protection
29.2 _ECAT_Security_Get_Check_Verifykey_State
Syntax
29
U16 PASCAL _ECAT_Security_Get_Check_Verifykey_State (U16 CardNo, U16 *State )
Purpose
Check the verification status and result of checking the verification key.
Note: The function of verification check will not be completed unless the return code is not 2.
Parameter
Name
CardNo
State
Example
U16 Status = 0;
U16 CardNo = 0, State = 0;
U32 Key[8] = {0, 0, 0, 0, 0, 0, 0, 0};
// Check the verification key
Status= _ECAT_Security_Check_Verifykey ( CardNo, Key );
// Wait for the result
While (1)
{
Status= _ECAT_Security_Get_Check_Verifykey_State ( CardNo, &State );
if (State != 2)
{
}
}
29-4
Data type
Property
U16
Number
U16*
Status
// Verification check is done. User can check the result from the return code.
break;
Description
Card No.
Return code:
0: Verification sussesful.
1: Verification failed.
2: Verification in process.
3: _ECAT_Security_Check_Verifykey is not executed.
4: Processing error of
_ECAT_Security_Check_Verifykey
EtherCAT Programming Guide
March, 2017