20#ifndef STM32H7xx_HAL_SDRAM_H
21#define STM32H7xx_HAL_SDRAM_H
63#if (USE_HAL_SDRAM_REGISTER_CALLBACKS == 1)
64typedef struct __SDRAM_HandleTypeDef
69 FMC_SDRAM_TypeDef *Instance;
79#if (USE_HAL_SDRAM_REGISTER_CALLBACKS == 1)
80 void (* MspInitCallback)(
struct __SDRAM_HandleTypeDef *hsdram);
81 void (* MspDeInitCallback)(
struct __SDRAM_HandleTypeDef *hsdram);
82 void (* RefreshErrorCallback)(
struct __SDRAM_HandleTypeDef *hsdram);
88#if (USE_HAL_SDRAM_REGISTER_CALLBACKS == 1)
94 HAL_SDRAM_MSP_INIT_CB_ID = 0x00U,
95 HAL_SDRAM_MSP_DEINIT_CB_ID = 0x01U,
96 HAL_SDRAM_REFRESH_ERR_CB_ID = 0x02U,
97 HAL_SDRAM_DMA_XFER_CPLT_CB_ID = 0x03U,
98 HAL_SDRAM_DMA_XFER_ERR_CB_ID = 0x04U
99} HAL_SDRAM_CallbackIDTypeDef;
123#if (USE_HAL_SDRAM_REGISTER_CALLBACKS == 1)
124#define __HAL_SDRAM_RESET_HANDLE_STATE(__HANDLE__) do { \
125 (__HANDLE__)->State = HAL_SDRAM_STATE_RESET; \
126 (__HANDLE__)->MspInitCallback = NULL; \
127 (__HANDLE__)->MspDeInitCallback = NULL; \
130#define __HAL_SDRAM_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_SDRAM_STATE_RESET)
166 uint32_t BufferSize);
168 uint32_t BufferSize);
170 uint32_t BufferSize);
172 uint32_t BufferSize);
174 uint32_t BufferSize);
176 uint32_t BufferSize);
179 uint32_t BufferSize);
181 uint32_t BufferSize);
183#if (USE_HAL_SDRAM_REGISTER_CALLBACKS == 1)
186 pSDRAM_CallbackTypeDef pCallback);
189 pSDRAM_DmaCallbackTypeDef pCallback);
#define __IO
Definition: core_cm4.h:239
HAL_SDRAM_StateTypeDef
HAL SDRAM State structure definition.
Definition: stm32h7xx_hal_sdram.h:50
@ HAL_SDRAM_STATE_ERROR
Definition: stm32h7xx_hal_sdram.h:54
@ HAL_SDRAM_STATE_READY
Definition: stm32h7xx_hal_sdram.h:52
@ HAL_SDRAM_STATE_WRITE_PROTECTED
Definition: stm32h7xx_hal_sdram.h:55
@ HAL_SDRAM_STATE_RESET
Definition: stm32h7xx_hal_sdram.h:51
@ HAL_SDRAM_STATE_PRECHARGED
Definition: stm32h7xx_hal_sdram.h:56
@ HAL_SDRAM_STATE_BUSY
Definition: stm32h7xx_hal_sdram.h:53
HAL_StatusTypeDef
HAL Status structures definition.
Definition: stm32h7xx_hal_def.h:47
HAL_LockTypeDef
HAL Lock structures definition.
Definition: stm32h7xx_hal_def.h:58
Header file of FMC HAL module.
SDRAM command parameters structure definition.
Definition: stm32h7xx_ll_fmc.h:432
FMC SDRAM Configuration Structure definition.
Definition: stm32h7xx_ll_fmc.h:360
FMC SDRAM Timing parameters structure definition.
Definition: stm32h7xx_ll_fmc.h:398
SDRAM handle Structure definition.
Definition: stm32h7xx_hal_sdram.h:68
FMC_SDRAM_InitTypeDef Init
Definition: stm32h7xx_hal_sdram.h:71
HAL_LockTypeDef Lock
Definition: stm32h7xx_hal_sdram.h:75
__IO HAL_SDRAM_StateTypeDef State
Definition: stm32h7xx_hal_sdram.h:73
MDMA_HandleTypeDef * hmdma
Definition: stm32h7xx_hal_sdram.h:77
MDMA handle Structure definition.
Definition: stm32h7xx_hal_mdma.h:204