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... | |
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.
uint8_t* qspi_user_addr | ( | ) |
Returns pointer to the user QSPI data area.
int qspi_user_size | ( | ) |
Returns size (in bytes) of the user QSPI data area.
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.
data | Data pointer |
size | Data size to be written (bytes) |
offset | Write at this position of the user QSPI data area |
erase | (0/1) 1 = Erase the user QSPI data area before write |