#include <flash.h>
Definition at line 58 of file flash.h.
◆ QSPI_StatusTypeDef
Enumerator |
---|
QSPI_KO_INIT | |
QSPI_OK | |
QSPI_ERROR | |
QSPI_BUSY | |
QSPI_TIMEOUT | |
QSPI_NOT_SUPPORTED | |
QSPI_SUSPENDED | |
QSPI_READY | |
QSPI_RESET | |
Definition at line 63 of file flash.h.
◆ Flash() [1/2]
◆ Flash() [2/2]
Flash::Flash |
( |
QSPI_HandleTypeDef * |
hqspi | ) |
|
◆ BSP_QSPI_AutoPolling()
Flash::QSPI_StatusTypeDef Flash::BSP_QSPI_AutoPolling |
( |
QSPI_CommandTypeDef * |
cmd, |
|
|
QSPI_AutoPollingTypeDef * |
cfg, |
|
|
uint32_t |
Timeout |
|
) |
| |
|
private |
Configure the QSPI Automatic Polling Mode in interrupt mode.
- Parameters
-
cmd | : structure that contains the command configuration information. |
cfg | : structure that contains the polling configuration information. |
Timeout | : Timeout duration |
- Note
- This function is used only in Automatic Polling Mode
- Return values
-
Definition at line 702 of file flash.cpp.
◆ BSP_QSPI_DeInit()
De-Initializes the QSPI interface.
- Return values
-
Definition at line 171 of file flash.cpp.
◆ BSP_QSPI_DisableMemoryMappedMode()
Disable the QSPI memory-mapped mode.
- Return values
-
Definition at line 573 of file flash.cpp.
◆ BSP_QSPI_EnableMemoryMappedMode()
Configure the QSPI in memory-mapped mode.
- Return values
-
Definition at line 541 of file flash.cpp.
◆ BSP_QSPI_Erase_Block()
Erases the specified block of the QSPI memory.
- Parameters
-
BlockAddress | Block address to erase |
- Return values
-
Definition at line 312 of file flash.cpp.
◆ BSP_QSPI_Erase_Chip()
Erases the entire QSPI memory.
- Return values
-
Definition at line 391 of file flash.cpp.
◆ BSP_QSPI_Erase_Sector()
Erases the specified sector of the QSPI memory.
- Parameters
-
Sector | Sector address to erase (0 to 255) |
- Return values
-
- Note
- This function is non blocking meaning that sector erase operation is started but not completed when the function returns. Application has to call BSP_QSPI_GetStatus() to know when the device is available again (i.e. erase operation completed).
Definition at line 353 of file flash.cpp.
◆ BSP_QSPI_GetInfo()
Return the configuration of the QSPI memory.
- Parameters
-
pInfo | pointer on the configuration structure |
- Return values
-
Definition at line 527 of file flash.cpp.
◆ BSP_QSPI_GetStatus()
Reads current status (RDY/BUSY, WEL and SUS bits) of the QSPI memory.
- Return values
-
Definition at line 509 of file flash.cpp.
◆ BSP_QSPI_Init()
Initializes the QSPI interface.
- Return values
-
Definition at line 109 of file flash.cpp.
◆ BSP_QSPI_Read()
Reads an amount of data from the QSPI memory.
- Parameters
-
pData | Pointer to data to be read |
ReadAddr | Read start address |
Size | Size of data to read |
- Return values
-
Definition at line 207 of file flash.cpp.
◆ BSP_QSPI_ReadStatus()
Reads current full status registers (byte1 and 2) of the QSPI memory.
- Parameters
-
Reg | destination variable address |
- Return values
-
Definition at line 425 of file flash.cpp.
◆ BSP_QSPI_Receive()
Receive an amount of data in interrupt mode.
- Parameters
-
pData | : pointer to data buffer |
Timeout | : Timeout duration |
- Note
- This function is used only in Indirect Read Mode
- Return values
-
Definition at line 669 of file flash.cpp.
◆ BSP_QSPI_ResumeErase()
uint8_t Flash::BSP_QSPI_ResumeErase |
( |
void |
| ) |
|
This function resumes a paused erase command.
- Return values
-
Definition at line 624 of file flash.cpp.
◆ BSP_QSPI_SuspendErase()
uint8_t Flash::BSP_QSPI_SuspendErase |
( |
void |
| ) |
|
This function suspends an ongoing erase command.
- Return values
-
Definition at line 586 of file flash.cpp.
◆ BSP_QSPI_Transmit()
Transmit an amount of data in interrupt mode.
- Parameters
-
pData | : pointer to data buffer |
Timeout | : Timeout duration |
- Note
- This function is used only in Indirect Write Mode
- Return values
-
Definition at line 685 of file flash.cpp.
◆ BSP_QSPI_WaitingForEvent()
Waiting event for QSPI Module.
- Parameters
-
Timeout | Timeout for operation |
- Returns
- QSPI polling status flag
Definition at line 716 of file flash.cpp.
◆ BSP_QSPI_Write()
Writes an amount of data to the QSPI memory.
- Parameters
-
pData | Pointer to data to be written |
WriteAddr | Write start address |
Size | Size of data to write |
- Return values
-
Definition at line 245 of file flash.cpp.
◆ BSP_QSPI_WriteStatus()
Write status registers of the QSPI memory.
- Parameters
-
- Return values
-
Definition at line 469 of file flash.cpp.
◆ QSPI_AutoPollingMemReady()
This function read the SR of the memory and wait the EOP.
- Parameters
-
Timeout | Timeout for auto-polling |
- Return values
-
Definition at line 987 of file flash.cpp.
◆ QSPI_DisableContinuousMode()
This function disable Continuous Read Mode Reset - Quad.
- Return values
-
Definition at line 966 of file flash.cpp.
◆ QSPI_DummyCyclesCfg()
This function configure the dummy cycles on memory side.
- Return values
-
Definition at line 823 of file flash.cpp.
◆ QSPI_ExitDeepPowerDown()
This function exit from deep power down the QSPI memory.
- Return values
-
Definition at line 764 of file flash.cpp.
◆ QSPI_ResetMemory()
This function reset the QSPI memory.
- Return values
-
Definition at line 784 of file flash.cpp.
◆ QSPI_SetDeepPowerDown()
This function enter in deep power down the QSPI memory.
- Return values
-
Definition at line 744 of file flash.cpp.
◆ QSPI_WriteDisable()
This function clear Write Enable Latch bit and wait it is effective.
- Return values
-
Definition at line 930 of file flash.cpp.
◆ QSPI_WriteEnable()
This function set Write Enable Latch bit and wait it is effective.
- Return values
-
Definition at line 894 of file flash.cpp.
◆ QSPI_WriteEnableVolat()
This function enable the write for Volatile Status Register only.
- Return values
-
Definition at line 874 of file flash.cpp.
◆ _evtFlag
◆ _FlashInfo
◆ _hqspi
QSPI_HandleTypeDef* Flash::_hqspi |
|
private |
The documentation for this class was generated from the following files:
- /home/pat1/git/rmap/platformio/stima_v4/slave-rain/include/drivers/flash.h
- /home/pat1/git/rmap/platformio/stima_v4/slave-rain/src/drivers/flash.cpp