PSoC64 Secure Boot Utilities Middleware Library 1.0
Memory operation

General Description

Functions

cy_p64_psa_status_t cy_p64_psa_memset (void *dst_addr, uint8_t val, size_t data_size)
 This function fills the first data_size bytes of the array pointed to by dst_addr to the value val. More...
 
cy_p64_psa_status_t cy_p64_psa_memcpy (void *dst_addr, void const *src_addr, size_t data_size)
 This function copies the data_size bytes from the memory area pointed by src_addr in to the memory area pointed by dst_addr. More...
 

Function Documentation

◆ cy_p64_psa_memset()

cy_p64_psa_status_t cy_p64_psa_memset ( void *  dst_addr,
uint8_t  val,
size_t  data_size 
)

This function fills the first data_size bytes of the array pointed to by dst_addr to the value val.

Parameters
[in]dst_addrDestination memory area, must be aligned to 4 bytes for CY_DEVICE_PSOC6ABLE2 device
[in]valThe value
[in]data_sizeThe size of the data buffer in bytes.
Returns
Pointer to the destination memory block or NULL on error

◆ cy_p64_psa_memcpy()

cy_p64_psa_status_t cy_p64_psa_memcpy ( void *  dst_addr,
void const *  src_addr,
size_t  data_size 
)

This function copies the data_size bytes from the memory area pointed by src_addr in to the memory area pointed by dst_addr.

Returns a pointer to the first byte of the out area.

Parameters
[in]dst_addrDestination memory area, must be aligned to 4 bytes for CY_DEVICE_PSOC6ABLE2 device
[in]src_addrSource memory area, must be aligned to 4 bytes for CY_DEVICE_PSOC6ABLE2 device
[in]data_sizeThe size of the data buffer in bytes.
Returns
The pointer to the destination memory block or NULL on error.