30 #if !defined(__QSPI_MEMORY_INTERFACE_H__) 31 #define __QSPI_MEMORY_INTERFACE_H__ 33 #include "memory/memory.h" 39 #if defined(__cplusplus) 45 kQspiMemoryId_QuadSpiMemory = 0,
46 kQspiMemoryId_AliasArea = 1,
54 status_t qspi_mem_init(uint32_t memoryId);
57 status_t qspi_mem_read(uint32_t address, uint32_t length, uint8_t *restrict buffer);
60 status_t qspi_mem_write(uint32_t memoryId, uint32_t address, uint32_t length,
const uint8_t *buffer);
63 status_t qspi_mem_fill(uint32_t memoryId, uint32_t address, uint32_t length, uint32_t pattern);
66 status_t qspi_mem_erase(uint32_t memoryId, uint32_t address, uint32_t length);
76 #if defined(__cplusplus) 80 #endif // __QSPI_MEMORY_INTERFACE_H__ status_t qspi_mem_erase_all(void)
Erase all QSPI memory.
Definition: qspi_memory.c:491
int32_t status_t
Type used for all status and error return values.
Definition: fsl_common.h:121