STM32L4xx_HAL_Driver  1.14.0

Control functions. More...

Functions

HAL_StatusTypeDef HAL_SRAM_WriteOperation_Enable (SRAM_HandleTypeDef *hsram)
 Enable dynamically SRAM write operation. More...
 
HAL_StatusTypeDef HAL_SRAM_WriteOperation_Disable (SRAM_HandleTypeDef *hsram)
 Disable dynamically SRAM write operation. More...
 

Detailed Description

Control functions.

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

Function Documentation

◆ HAL_SRAM_WriteOperation_Disable()

HAL_StatusTypeDef HAL_SRAM_WriteOperation_Disable ( SRAM_HandleTypeDef hsram)

Disable dynamically SRAM write operation.

Parameters
hsrampointer to a SRAM_HandleTypeDef structure that contains the configuration information for SRAM module.
Return values
HALstatus

Definition at line 610 of file stm32l4xx_hal_sram.c.

611 {
612  /* Process Locked */
613  __HAL_LOCK(hsram);
614 
615  /* Update the SRAM controller state */
616  hsram->State = HAL_SRAM_STATE_BUSY;
617 
618  /* Disable write operation */
620 
621  /* Update the SRAM controller state */
622  hsram->State = HAL_SRAM_STATE_PROTECTED;
623 
624  /* Process unlocked */
625  __HAL_UNLOCK(hsram);
626 
627  return HAL_OK;
628 }
__HAL_UNLOCK(hrtc)
FMC_NORSRAM_TypeDef * Instance
__HAL_LOCK(hrtc)
return HAL_OK
HAL_StatusTypeDef FMC_NORSRAM_WriteOperation_Disable(FMC_NORSRAM_TypeDef *Device, uint32_t Bank)
Disables dynamically FMC_NORSRAM write operation.
FMC_NORSRAM_InitTypeDef Init
__IO HAL_SRAM_StateTypeDef State

◆ HAL_SRAM_WriteOperation_Enable()

HAL_StatusTypeDef HAL_SRAM_WriteOperation_Enable ( SRAM_HandleTypeDef hsram)

Enable dynamically SRAM write operation.

Parameters
hsrampointer to a SRAM_HandleTypeDef structure that contains the configuration information for SRAM module.
Return values
HALstatus

Definition at line 587 of file stm32l4xx_hal_sram.c.

588 {
589  /* Process Locked */
590  __HAL_LOCK(hsram);
591 
592  /* Enable write operation */
594 
595  /* Update the SRAM controller state */
596  hsram->State = HAL_SRAM_STATE_READY;
597 
598  /* Process unlocked */
599  __HAL_UNLOCK(hsram);
600 
601  return HAL_OK;
602 }
__HAL_UNLOCK(hrtc)
FMC_NORSRAM_TypeDef * Instance
__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_SRAM_StateTypeDef State