Datasheet

Table Of Contents
{nu1XBase, u2XLength} overlaps {nu1YBase,u2YLength}
43.3.4.3.7 Status Returned Values
Table 43-10. Swap Service Return Codes
Returned status Importance Meaning
PUKCL_OK Service functioned correctly
43.3.4.4 Fill
43.3.4.4.1 Purpose
This service performs a memory fill operation, with a given 32-bit constant.
43.3.4.4.2 How to Use the Service
43.3.4.4.3 Description
This service fills a Crypto RAM space with a provided 32-bit constant: Fill (R, FillValue)
The service name for this operation is Fill.
43.3.4.4.4 Parameters Definition
This service can easily be accessed through the use of the PUKCL_Fill() macro.
Table 43-11. Fill Service Parameters
Parameter Type Direction. Location Data Length Before Executing
the Service
After Executing the
Service
nu1RBase nu1 I Crypto RAM u2RLength Base of R Base of R value filled
repetitively with
u4FillValue
u2RLength u2 I Crypto RAM Length of R Length of R
u4FillValue u4 I Filling value Filling value
43.3.4.4.5 Code Example
PUKCL_PARAM PUKCLParam;
PPUKCL_PARAM pvPUKCLParam = &PUKCLParam;
// Initialize parameters
PUKCL_Fill(nu1RBase) = <Base of the R number>;
PUKCL_Fill(u2RLength) = <Length of the R number>;
PUKCL_Fill(u4FillValue) = <32-bits value to fill with>;
// vPUKCL_Process() is a macro command, which populates the service name
// and then calls the library...
vPUKCL_Process(Fill,pvPUKCLParam);
if (PUKCL(u2Status) == PUKCL_OK)
{
...
}
else // Manage the error
43.3.4.4.6 Constraints
The following conditions must be avoided to ensure that the service works correctly:
nu1RBase are not aligned on 32-bit boundaries
u2RLength is either: <4, >0xffc or not a 32-bit length
{nu1RBase, u2RLength} do not entirely lie in Crypto RAM
SAM D5x/E5x Family Data Sheet
Public Key Cryptography Controller (PUKCC)
© 2019 Microchip Technology Inc.
Datasheet
DS60001507E-page 1453