STM32L4R9I_EVAL BSP User Manual: stm32l4r9i_eval_ospi_nor.h File Reference

STM32L4R9I_EVAL BSP

stm32l4r9i_eval_ospi_nor.h File Reference

This file contains the common defines and functions prototypes for the stm32l4r9i_eval_ospi_nor.c driver. More...

#include "stm32l4xx_hal.h" #include "../Components/mx25lm51245g/mx25lm51245g.h"

Go to the source code of this file.

Data Structures

struct  OSPI_NOR_Info

Defines

#define OSPI_NOR_OK   ((uint8_t)0x00)
#define OSPI_NOR_ERROR   ((uint8_t)0x01)
#define OSPI_NOR_BUSY   ((uint8_t)0x02)
#define OSPI_NOR_NOT_SUPPORTED   ((uint8_t)0x04)
#define OSPI_NOR_SUSPENDED   ((uint8_t)0x08)

Functions

uint8_t BSP_OSPI_NOR_Init (void)
 Initializes the OSPI interface.
uint8_t BSP_OSPI_NOR_DeInit (void)
 De-Initializes the OSPI interface.
uint8_t BSP_OSPI_NOR_Read (uint8_t *pData, uint32_t ReadAddr, uint32_t Size)
 Reads an amount of data from the OSPI memory.
uint8_t BSP_OSPI_NOR_Write (uint8_t *pData, uint32_t WriteAddr, uint32_t Size)
 Writes an amount of data to the OSPI memory.
uint8_t BSP_OSPI_NOR_Erase_Block (uint32_t BlockAddress)
 Erases the specified block of the OSPI memory.
uint8_t BSP_OSPI_NOR_Erase_Sector (uint32_t Sector)
 Erases the specified sector of the OSPI memory.
uint8_t BSP_OSPI_NOR_Erase_Chip (void)
 Erases the entire OSPI memory.
uint8_t BSP_OSPI_NOR_GetStatus (void)
 Reads current status of the OSPI memory.
uint8_t BSP_OSPI_NOR_GetInfo (OSPI_NOR_Info *pInfo)
 Return the configuration of the OSPI memory.
uint8_t BSP_OSPI_NOR_EnableMemoryMappedMode (void)
 Configure the OSPI in memory-mapped mode.
uint8_t BSP_OSPI_NOR_SuspendErase (void)
 This function suspends an ongoing erase command.
uint8_t BSP_OSPI_NOR_ResumeErase (void)
 This function resumes a paused erase command.
uint8_t BSP_OSPI_NOR_EnterDeepPowerDown (void)
 This function enter the OSPI memory in deep power down mode.
uint8_t BSP_OSPI_NOR_LeaveDeepPowerDown (void)
 This function leave the OSPI memory from deep power down mode.

Detailed Description

This file contains the common defines and functions prototypes for the stm32l4r9i_eval_ospi_nor.c driver.

Author:
MCD Application Team
Attention:

© COPYRIGHT(c) 2017 STMicroelectronics

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file stm32l4r9i_eval_ospi_nor.h.

Generated on Thu Oct 12 2017 10:54:00 for STM32L4R9I_EVAL BSP User Manual by   doxygen 1.7.6.1