psp_spifi_write


This function is provided by the PSP to write to the device.

Format

int psp_spifi_write (
    uint8_t     uid,
    uint32_t    addr,
    uint8_t *   src,
    uint32_t    len )

Arguments

Argument Description Type
uid The unit ID. uint8_t
addr The address to write to. uint32_t
src The source of the data. uint8_t *
len The length of the data to write. uint32_t

Return Values

Return value Description
PSP_SPIFI_SUCCESS Successful execution.
PSP_SPIFI_ERROR Operation failed.