DMCP interface  03.15_020

QSPI User functions. More...

Functions

int qspi_user_write (uint8_t *data, int size, int offset, int erase)
 Writes data to the user QSPI data area. More...
 
uint8_t * qspi_user_addr ()
 Returns pointer to the user QSPI data area. More...
 
int qspi_user_size ()
 Returns size (in bytes) of the user QSPI data area. More...
 

Detailed Description

QSPI User functions.

DMCP Allocates a single QSPI flash page for use in the user program. It allows to store persistent data (like a configuration values) in a memory mapped area which isn't overwritten by firmware updates.

Use System flash if you need to store more data.

Function Documentation

◆ qspi_user_addr()

uint8_t* qspi_user_addr ( )

Returns pointer to the user QSPI data area.

Returns
Data pointer

◆ qspi_user_size()

int qspi_user_size ( )

Returns size (in bytes) of the user QSPI data area.

Returns
Data area size

◆ qspi_user_write()

int qspi_user_write ( uint8_t *  data,
int  size,
int  offset,
int  erase 
)

Writes data to the user QSPI data area.

Note that nothing is written and write fails if the data write request goes beyond the user area.

Parameters
dataData pointer
sizeData size to be written (bytes)
offsetWrite at this position of the user QSPI data area
erase(0/1) 1 = Erase the user QSPI data area before write
Returns
0 = Success