STM32L4xx_HAL_Driver  1.14.0

management functions More...

Functions

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...
 

Detailed Description

management functions

  ==============================================================================
                        ##### NOR Control functions #####
  ==============================================================================
  [..]
    This subsection provides a set of functions allowing to control dynamically
    the NOR interface.

Function Documentation

◆ HAL_NOR_WriteOperation_Disable()

HAL_StatusTypeDef HAL_NOR_WriteOperation_Disable ( NOR_HandleTypeDef hnor)

Disable dynamically NOR write operation.

Parameters
hnorpointer to a NOR_HandleTypeDef structure that contains the configuration information for NOR module.
Return values
HALstatus

Definition at line 900 of file stm32l4xx_hal_nor.c.

901 {
902  /* Process Locked */
903  __HAL_LOCK(hnor);
904 
905  /* Update the SRAM controller state */
906  hnor->State = HAL_NOR_STATE_BUSY;
907 
908  /* Disable write operation */
910 
911  /* Update the NOR controller state */
912  hnor->State = HAL_NOR_STATE_PROTECTED;
913 
914  /* Process unlocked */
915  __HAL_UNLOCK(hnor);
916 
917  return HAL_OK;
918 }
FMC_NORSRAM_TypeDef * Instance
__HAL_UNLOCK(hrtc)
__HAL_LOCK(hrtc)
return HAL_OK
FMC_NORSRAM_InitTypeDef Init
HAL_StatusTypeDef FMC_NORSRAM_WriteOperation_Disable(FMC_NORSRAM_TypeDef *Device, uint32_t Bank)
Disables dynamically FMC_NORSRAM write operation.
__IO HAL_NOR_StateTypeDef State

◆ HAL_NOR_WriteOperation_Enable()

HAL_StatusTypeDef HAL_NOR_WriteOperation_Enable ( NOR_HandleTypeDef hnor)

Enable dynamically NOR write operation.

Parameters
hnorpointer to a NOR_HandleTypeDef structure that contains the configuration information for NOR module.
Return values
HALstatus

Definition at line 877 of file stm32l4xx_hal_nor.c.

878 {
879  /* Process Locked */
880  __HAL_LOCK(hnor);
881 
882  /* Enable write operation */
884 
885  /* Update the NOR controller state */
886  hnor->State = HAL_NOR_STATE_READY;
887 
888  /* Process unlocked */
889  __HAL_UNLOCK(hnor);
890 
891  return HAL_OK;
892 }
FMC_NORSRAM_TypeDef * Instance
__HAL_UNLOCK(hrtc)
__HAL_LOCK(hrtc)
return HAL_OK
FMC_NORSRAM_InitTypeDef Init
HAL_StatusTypeDef FMC_NORSRAM_WriteOperation_Enable(FMC_NORSRAM_TypeDef *Device, uint32_t Bank)
Enables dynamically FMC_NORSRAM write operation.
__IO HAL_NOR_StateTypeDef State