STM32F439xx HAL User Manual
Functions
Control functions
SDRAM Exported Functions

management functions More...

Functions

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

Detailed Description

management functions

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


Function Documentation

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 798 of file stm32f4xx_hal_sdram.c.

References SDRAM_HandleTypeDef::Init, and SDRAM_HandleTypeDef::Instance.

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 745 of file stm32f4xx_hal_sdram.c.

References HAL_SDRAM_STATE_BUSY, HAL_SDRAM_STATE_READY, SDRAM_HandleTypeDef::Instance, and SDRAM_HandleTypeDef::State.

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 711 of file stm32f4xx_hal_sdram.c.

References HAL_SDRAM_STATE_BUSY, HAL_SDRAM_STATE_PRECHARGED, HAL_SDRAM_STATE_READY, SDRAM_HandleTypeDef::Instance, and SDRAM_HandleTypeDef::State.

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 772 of file stm32f4xx_hal_sdram.c.

References HAL_SDRAM_STATE_BUSY, HAL_SDRAM_STATE_READY, SDRAM_HandleTypeDef::Instance, and SDRAM_HandleTypeDef::State.

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 683 of file stm32f4xx_hal_sdram.c.

References HAL_SDRAM_STATE_BUSY, HAL_SDRAM_STATE_READY, SDRAM_HandleTypeDef::Init, SDRAM_HandleTypeDef::Instance, and SDRAM_HandleTypeDef::State.

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 657 of file stm32f4xx_hal_sdram.c.

References HAL_SDRAM_STATE_BUSY, HAL_SDRAM_STATE_WRITE_PROTECTED, SDRAM_HandleTypeDef::Init, SDRAM_HandleTypeDef::Instance, and SDRAM_HandleTypeDef::State.