STM32F4xx_HAL_Driver  1.8.3

management functions More...

+ Collaboration diagram for Control functions:

Functions

HAL_StatusTypeDef HAL_SDRAM_WriteProtection_Enable (SDRAM_HandleTypeDef *hsdram)
 Enables dynamically SDRAM write protection. More...
 
HAL_StatusTypeDef HAL_SDRAM_WriteProtection_Disable (SDRAM_HandleTypeDef *hsdram)
 Disables dynamically SDRAM write protection. More...
 
HAL_StatusTypeDef HAL_SDRAM_SendCommand (SDRAM_HandleTypeDef *hsdram, FMC_SDRAM_CommandTypeDef *Command, uint32_t Timeout)
 Sends Command to the SDRAM bank. More...
 
HAL_StatusTypeDef HAL_SDRAM_ProgramRefreshRate (SDRAM_HandleTypeDef *hsdram, uint32_t RefreshRate)
 Programs the SDRAM Memory Refresh rate. More...
 
HAL_StatusTypeDef HAL_SDRAM_SetAutoRefreshNumber (SDRAM_HandleTypeDef *hsdram, uint32_t AutoRefreshNumber)
 Sets the Number of consecutive SDRAM Memory auto Refresh commands. More...
 
uint32_t HAL_SDRAM_GetModeStatus (SDRAM_HandleTypeDef *hsdram)
 Returns the SDRAM memory current mode. More...
 

Detailed Description

management functions

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

Function Documentation

◆ HAL_SDRAM_GetModeStatus()

uint32_t HAL_SDRAM_GetModeStatus ( SDRAM_HandleTypeDef hsdram)

Returns the SDRAM memory current mode.

Parameters
hsdrampointer to a SDRAM_HandleTypeDef structure that contains the configuration information for SDRAM module.
Return values
TheSDRAM memory mode.

Definition at line 1184 of file stm32f4xx_hal_sdram.c.

◆ HAL_SDRAM_ProgramRefreshRate()

HAL_StatusTypeDef HAL_SDRAM_ProgramRefreshRate ( SDRAM_HandleTypeDef hsdram,
uint32_t  RefreshRate 
)

Programs the SDRAM Memory Refresh rate.

Parameters
hsdrampointer to a SDRAM_HandleTypeDef structure that contains the configuration information for SDRAM module.
RefreshRateThe SDRAM refresh rate value
Return values
HALstatus

Definition at line 1119 of file stm32f4xx_hal_sdram.c.

◆ HAL_SDRAM_SendCommand()

HAL_StatusTypeDef HAL_SDRAM_SendCommand ( SDRAM_HandleTypeDef hsdram,
FMC_SDRAM_CommandTypeDef Command,
uint32_t  Timeout 
)

Sends Command to the SDRAM bank.

Parameters
hsdrampointer to a SDRAM_HandleTypeDef structure that contains the configuration information for SDRAM module.
CommandSDRAM command structure
TimeoutTimeout duration
Return values
HALstatus

Definition at line 1076 of file stm32f4xx_hal_sdram.c.

◆ HAL_SDRAM_SetAutoRefreshNumber()

HAL_StatusTypeDef HAL_SDRAM_SetAutoRefreshNumber ( SDRAM_HandleTypeDef hsdram,
uint32_t  AutoRefreshNumber 
)

Sets the Number of consecutive SDRAM Memory auto Refresh commands.

Parameters
hsdrampointer to a SDRAM_HandleTypeDef structure that contains the configuration information for SDRAM module.
AutoRefreshNumberThe SDRAM auto Refresh number
Return values
HALstatus

Definition at line 1152 of file stm32f4xx_hal_sdram.c.

◆ HAL_SDRAM_WriteProtection_Disable()

HAL_StatusTypeDef HAL_SDRAM_WriteProtection_Disable ( SDRAM_HandleTypeDef hsdram)

Disables dynamically SDRAM write protection.

Parameters
hsdrampointer to a SDRAM_HandleTypeDef structure that contains the configuration information for SDRAM module.
Return values
HALstatus

Definition at line 1040 of file stm32f4xx_hal_sdram.c.

◆ HAL_SDRAM_WriteProtection_Enable()

HAL_StatusTypeDef HAL_SDRAM_WriteProtection_Enable ( SDRAM_HandleTypeDef hsdram)

Enables dynamically SDRAM write protection.

Parameters
hsdrampointer to a SDRAM_HandleTypeDef structure that contains the configuration information for SDRAM module.
Return values
HALstatus

Definition at line 1008 of file stm32f4xx_hal_sdram.c.