Datasheet

Table Of Contents
{
// The Library version is available
// in PUKCL_SelfTest(u4Version)
// The PUKCL version is available
// in PUKCL_SelfTest(u4PUKCCVersion)
}
43.3.4.1.6 Returned Values
The expected u4Version value depends on the version of PUKCL being used, and the u4PUKCCVersion
value depends on the version of PUKCC being used.
The expected u4CheckNum1 value is 0x6e70ddd2 and the expected one for u4CheckNum2 is
0x25c8d64f. The expected final u1Step value is 3.
43.3.4.1.7 Status Returned Values
Table 43-6. SelfTest Service Return Codes
Returned Status Importance Meaning
PUKCL_OK Service functioned correctly.
PUKCL_ERROR Severe An issue has been encountered.
43.3.4.2 Clear Flags
43.3.4.2.1 Purpose
This service can be used to clear parameter structure flags.
43.3.4.2.2 How to Use the Service
43.3.4.2.3 Description
This service clears CarryOut, CarryIn, Zero and Violation flags in the Specific bit field. The Gf2n flag is
untouched.
The service name for this operation is ClearFlags.
43.3.4.2.4 Parameters Definition
It is possible to directly address this service through the PUKCL_ClearFlags() macro.
Table 43-7. Clear Flags Service Parameters
Parameter Type Direction Location Data Length Before Executing
the Service
After Executing
the Service
Specific/CarryOut Bit O Cleared
Specific/CarryIn Bit O Cleared
Specific/Zero Bit O Cleared
Specific/Violation Bit O Cleared
43.3.4.2.5 Code Example
PUKCL_PARAM PUKCLParam;
PPUKCL_PARAM pvPUKCLParam = &PUKCLParam;
// vPUKCL_Process() is a macro command, which populates the service name
// and then calls the library...
vPUKCL_Process(ClearFlags,pvPUKCLParam);
if (PUKCL(u2Status) == PUKCL_OK)
{
// Success
SAM D5x/E5x Family Data Sheet
Public Key Cryptography Controller (PUKCC)
© 2019 Microchip Technology Inc.
Datasheet
DS60001507E-page 1451