![]() |
RTEMS 6.1-rc7
|
Functions | |
int32_t | BSP_QSPI_Init (uint32_t Instance, BSP_QSPI_Init_t *Init) |
Initializes the QSPI interface. | |
int32_t | BSP_QSPI_DeInit (uint32_t Instance) |
De-Initializes the QSPI interface. | |
__weak HAL_StatusTypeDef | MX_QSPI_Init (QSPI_HandleTypeDef *hQspi, MX_QSPI_Init_t *Config) |
Initializes the QSPI interface. | |
int32_t | BSP_QSPI_Read (uint32_t Instance, uint8_t *pData, uint32_t ReadAddr, uint32_t Size) |
Reads an amount of data from the QSPI memory. | |
int32_t | BSP_QSPI_Write (uint32_t Instance, uint8_t *pData, uint32_t WriteAddr, uint32_t Size) |
Writes an amount of data to the QSPI memory. | |
int32_t | BSP_QSPI_EraseBlock (uint32_t Instance, uint32_t BlockAddress, BSP_QSPI_Erase_t BlockSize) |
Erases the specified block of the QSPI memory. MT25TL01G support 4K, 32K, 64K size block erase commands for each Die. i.e 8K, 64K, 128K at BSP level (see BSP_QSPI_Erase_t type definition) | |
int32_t | BSP_QSPI_EraseChip (uint32_t Instance) |
Erases the entire QSPI memory. | |
int32_t | BSP_QSPI_GetStatus (uint32_t Instance) |
Reads current status of the QSPI memory. If WIP != 0 then return busy. | |
int32_t | BSP_QSPI_GetInfo (uint32_t Instance, BSP_QSPI_Info_t *pInfo) |
Return the configuration of the QSPI memory. | |
int32_t | BSP_QSPI_EnableMemoryMappedMode (uint32_t Instance) |
Configure the QSPI in memory-mapped mode Only 1 Instance can running MMP mode. And it will lock system at this mode. | |
int32_t | BSP_QSPI_DisableMemoryMappedMode (uint32_t Instance) |
Exit form memory-mapped mode Only 1 Instance can running MMP mode. And it will lock system at this mode. | |
int32_t | BSP_QSPI_ReadID (uint32_t Instance, uint8_t *Id) |
Get flash ID, 3 Byte Manufacturer ID, Memory type, Memory density. | |
int32_t | BSP_QSPI_ConfigFlash (uint32_t Instance, BSP_QSPI_Interface_t Mode, BSP_QSPI_Transfer_t Rate) |
Set Flash to desired Interface mode. And this instance becomes current instance. If current instance running at MMP mode then this function isn't work. Indirect -> Indirect. | |
int32_t BSP_QSPI_ConfigFlash | ( | uint32_t | Instance, |
BSP_QSPI_Interface_t | Mode, | ||
BSP_QSPI_Transfer_t | Rate | ||
) |
Set Flash to desired Interface mode. And this instance becomes current instance. If current instance running at MMP mode then this function isn't work. Indirect -> Indirect.
Instance | QSPI instance |
Mode | QSPI mode |
Rate | QSPI transfer rate |
BSP | status |
int32_t BSP_QSPI_DeInit | ( | uint32_t | Instance | ) |
De-Initializes the QSPI interface.
Instance | QSPI Instance |
BSP | status |
int32_t BSP_QSPI_DisableMemoryMappedMode | ( | uint32_t | Instance | ) |
Exit form memory-mapped mode Only 1 Instance can running MMP mode. And it will lock system at this mode.
Instance | QSPI instance |
BSP | status |
int32_t BSP_QSPI_EnableMemoryMappedMode | ( | uint32_t | Instance | ) |
Configure the QSPI in memory-mapped mode Only 1 Instance can running MMP mode. And it will lock system at this mode.
Instance | QSPI instance |
BSP | status |
int32_t BSP_QSPI_EraseBlock | ( | uint32_t | Instance, |
uint32_t | BlockAddress, | ||
BSP_QSPI_Erase_t | BlockSize | ||
) |
Erases the specified block of the QSPI memory. MT25TL01G support 4K, 32K, 64K size block erase commands for each Die. i.e 8K, 64K, 128K at BSP level (see BSP_QSPI_Erase_t type definition)
Instance | QSPI instance |
BlockAddress | Block address to erase |
BlockSize | Erase Block size |
BSP | status |
int32_t BSP_QSPI_EraseChip | ( | uint32_t | Instance | ) |
Erases the entire QSPI memory.
Instance | QSPI instance |
BSP | status |
int32_t BSP_QSPI_GetInfo | ( | uint32_t | Instance, |
BSP_QSPI_Info_t * | pInfo | ||
) |
Return the configuration of the QSPI memory.
Instance | QSPI instance |
pInfo | pointer on the configuration structure |
BSP | status |
int32_t BSP_QSPI_GetStatus | ( | uint32_t | Instance | ) |
Reads current status of the QSPI memory. If WIP != 0 then return busy.
Instance | QSPI instance |
QSPI | memory status: whether busy or not |
int32_t BSP_QSPI_Init | ( | uint32_t | Instance, |
BSP_QSPI_Init_t * | Init | ||
) |
Initializes the QSPI interface.
Instance | QSPI Instance |
Init | QSPI Init structure |
BSP | status |
int32_t BSP_QSPI_Read | ( | uint32_t | Instance, |
uint8_t * | pData, | ||
uint32_t | ReadAddr, | ||
uint32_t | Size | ||
) |
Reads an amount of data from the QSPI memory.
Instance | QSPI instance |
pData | Pointer to data to be read |
ReadAddr | Read start address |
Size | Size of data to read |
BSP | status |
int32_t BSP_QSPI_ReadID | ( | uint32_t | Instance, |
uint8_t * | Id | ||
) |
Get flash ID, 3 Byte Manufacturer ID, Memory type, Memory density.
Instance | QSPI instance |
Id | QSPI Identifier |
BSP | status |
int32_t BSP_QSPI_Write | ( | uint32_t | Instance, |
uint8_t * | pData, | ||
uint32_t | WriteAddr, | ||
uint32_t | Size | ||
) |
Writes an amount of data to the QSPI memory.
Instance | QSPI instance |
pData | Pointer to data to be written |
WriteAddr | Write start address |
Size | Size of data to write |
BSP | status |
HAL_StatusTypeDef MX_QSPI_Init | ( | QSPI_HandleTypeDef * | hQspi, |
MX_QSPI_Init_t * | Config | ||
) |
Initializes the QSPI interface.
hQspi | QSPI handle |
Config | QSPI configuration structure |
BSP | status |