STM32L4xx_HAL_Driver  1.14.0
stm32l4xx_hal_nor.h File Reference

Header file of NOR HAL module. More...

Go to the source code of this file.

Data Structures

struct  NOR_IDTypeDef
 FMC NOR ID typedef. More...
 
struct  NOR_CFITypeDef
 FMC NOR CFI typedef. More...
 
struct  NOR_HandleTypeDef
 NOR handle Structure definition. More...
 

Enumerations

enum  HAL_NOR_StatusTypeDef { HAL_NOR_STATUS_SUCCESS = 0U, HAL_NOR_STATUS_ONGOING, HAL_NOR_STATUS_ERROR, HAL_NOR_STATUS_TIMEOUT }
 FMC NOR Status typedef. More...
 

Functions

HAL_StatusTypeDef HAL_NOR_Init (NOR_HandleTypeDef *hnor, FMC_NORSRAM_TimingTypeDef *Timing, FMC_NORSRAM_TimingTypeDef *ExtTiming)
 Perform the NOR memory Initialization sequence. More...
 
HAL_StatusTypeDef HAL_NOR_DeInit (NOR_HandleTypeDef *hnor)
 Perform NOR memory De-Initialization sequence. More...
 
void HAL_NOR_MspInit (NOR_HandleTypeDef *hnor)
 Initialize the NOR MSP. More...
 
void HAL_NOR_MspDeInit (NOR_HandleTypeDef *hnor)
 DeInitialize the NOR MSP. More...
 
void HAL_NOR_MspWait (NOR_HandleTypeDef *hnor, uint32_t Timeout)
 NOR MSP Wait for Ready/Busy signal. More...
 
HAL_StatusTypeDef HAL_NOR_Read_ID (NOR_HandleTypeDef *hnor, NOR_IDTypeDef *pNOR_ID)
 Read NOR flash IDs. More...
 
HAL_StatusTypeDef HAL_NOR_ReturnToReadMode (NOR_HandleTypeDef *hnor)
 Return the NOR memory to Read mode. More...
 
HAL_StatusTypeDef HAL_NOR_Read (NOR_HandleTypeDef *hnor, uint32_t *pAddress, uint16_t *pData)
 Read data from NOR memory. More...
 
HAL_StatusTypeDef HAL_NOR_Program (NOR_HandleTypeDef *hnor, uint32_t *pAddress, uint16_t *pData)
 Program data to NOR memory. More...
 
HAL_StatusTypeDef HAL_NOR_ReadBuffer (NOR_HandleTypeDef *hnor, uint32_t uwAddress, uint16_t *pData, uint32_t uwBufferSize)
 Read a half-word buffer from the NOR memory. More...
 
HAL_StatusTypeDef HAL_NOR_ProgramBuffer (NOR_HandleTypeDef *hnor, uint32_t uwAddress, uint16_t *pData, uint32_t uwBufferSize)
 Writes a half-word buffer to the NOR memory. This function must be used only with S29GL128P NOR memory. More...
 
HAL_StatusTypeDef HAL_NOR_Erase_Block (NOR_HandleTypeDef *hnor, uint32_t BlockAddress, uint32_t Address)
 Erase the specified block of the NOR memory. More...
 
HAL_StatusTypeDef HAL_NOR_Erase_Chip (NOR_HandleTypeDef *hnor, uint32_t Address)
 Erase the entire NOR chip. More...
 
HAL_StatusTypeDef HAL_NOR_Read_CFI (NOR_HandleTypeDef *hnor, NOR_CFITypeDef *pNOR_CFI)
 Read NOR flash CFI IDs. More...
 
HAL_StatusTypeDef HAL_NOR_WriteOperation_Enable (NOR_HandleTypeDef *hnor)
 Enable dynamically NOR write operation. More...
 
HAL_StatusTypeDef HAL_NOR_WriteOperation_Disable (NOR_HandleTypeDef *hnor)
 Disable dynamically NOR write operation. More...
 
HAL_NOR_StateTypeDef HAL_NOR_GetState (NOR_HandleTypeDef *hnor)
 Return the NOR controller state. More...
 
HAL_NOR_StatusTypeDef HAL_NOR_GetStatus (NOR_HandleTypeDef *hnor, uint32_t Address, uint32_t Timeout)
 Return the NOR operation status. More...
 

Variables

 C
 

Detailed Description

Header file of NOR HAL module.

Author
MCD Application Team
Attention

© Copyright (c) 2017 STMicroelectronics. All rights reserved.

This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause

Definition in file stm32l4xx_hal_nor.h.


Data Structure Documentation

◆ NOR_IDTypeDef

struct NOR_IDTypeDef

FMC NOR ID typedef.

Definition at line 73 of file stm32l4xx_hal_nor.h.

Data Fields
uint16_t Device_Code1
uint16_t Device_Code2
uint16_t Device_Code3

Defines the device's codes used to identify the memory. These codes can be accessed by performing read operations with specific control signals and addresses set.They can also be accessed by issuing an Auto Select command.

uint16_t Manufacturer_Code

Defines the device's manufacturer code used to identify the memory

◆ NOR_CFITypeDef

struct NOR_CFITypeDef

FMC NOR CFI typedef.

Definition at line 90 of file stm32l4xx_hal_nor.h.

Data Fields
uint16_t CFI_1

< Defines the information stored in the memory's Common flash interface which contains a description of various electrical and timing parameters, density information and functions supported by the memory

uint16_t CFI_2
uint16_t CFI_3
uint16_t CFI_4

◆ NOR_HandleTypeDef

struct NOR_HandleTypeDef

NOR handle Structure definition.

Definition at line 108 of file stm32l4xx_hal_nor.h.

Data Fields
FMC_NORSRAM_EXTENDED_TypeDef * Extended

Extended mode register base address

FMC_NORSRAM_InitTypeDef Init

NOR device control configuration parameters

FMC_NORSRAM_TypeDef * Instance

Register base address

HAL_LockTypeDef Lock

NOR locking object

__IO HAL_NOR_StateTypeDef State

NOR device access state

Enumeration Type Documentation

◆ HAL_NOR_StatusTypeDef

FMC NOR Status typedef.

Enumerator
HAL_NOR_STATUS_SUCCESS 
HAL_NOR_STATUS_ONGOING 
HAL_NOR_STATUS_ERROR 
HAL_NOR_STATUS_TIMEOUT 

Definition at line 62 of file stm32l4xx_hal_nor.h.

Variable Documentation

◆ C

C
Initial value:
{
#endif
#if defined(FMC_BANK1)
typedef enum
{
HAL_NOR_STATE_RESET = 0x00U,
HAL_NOR_STATE_READY = 0x01U,
HAL_NOR_STATE_BUSY = 0x02U,
HAL_NOR_STATE_ERROR = 0x03U,
HAL_NOR_STATE_PROTECTED = 0x04U
}HAL_NOR_StateTypeDef
Header file of FMC HAL module.