Go to the documentation of this file.
21 #ifndef __STM32F7xx_HAL_SRAM_H
22 #define __STM32F7xx_HAL_SRAM_H
59 #if (USE_HAL_SRAM_REGISTER_CALLBACKS == 1)
60 typedef struct __SRAM_HandleTypeDef
77 #if (USE_HAL_SRAM_REGISTER_CALLBACKS == 1)
78 void (* MspInitCallback) (
struct __SRAM_HandleTypeDef * hsram);
79 void (* MspDeInitCallback) (
struct __SRAM_HandleTypeDef * hsram);
85 #if (USE_HAL_SRAM_REGISTER_CALLBACKS == 1)
91 HAL_SRAM_MSP_INIT_CB_ID = 0x00U,
92 HAL_SRAM_MSP_DEINIT_CB_ID = 0x01U,
93 HAL_SRAM_DMA_XFER_CPLT_CB_ID = 0x02U,
94 HAL_SRAM_DMA_XFER_ERR_CB_ID = 0x03U
95 }HAL_SRAM_CallbackIDTypeDef;
118 #if (USE_HAL_SRAM_REGISTER_CALLBACKS == 1)
119 #define __HAL_SRAM_RESET_HANDLE_STATE(__HANDLE__) do { \
120 (__HANDLE__)->State = HAL_SRAM_STATE_RESET; \
121 (__HANDLE__)->MspInitCallback = NULL; \
122 (__HANDLE__)->MspDeInitCallback = NULL; \
125 #define __HAL_SRAM_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_SRAM_STATE_RESET)
168 #if (USE_HAL_SRAM_REGISTER_CALLBACKS == 1)
void HAL_SRAM_MspInit(SRAM_HandleTypeDef *hsram)
HAL_StatusTypeDef
HAL Status structures definition
HAL_StatusTypeDef HAL_SRAM_Read_32b(SRAM_HandleTypeDef *hsram, uint32_t *pAddress, uint32_t *pDstBuffer, uint32_t BufferSize)
static FMC_SDRAM_TimingTypeDef Timing
void HAL_SRAM_DMA_XferCpltCallback(DMA_HandleTypeDef *hdma)
DMA handle Structure definition.
HAL_StatusTypeDef HAL_SRAM_Read_16b(SRAM_HandleTypeDef *hsram, uint32_t *pAddress, uint16_t *pDstBuffer, uint32_t BufferSize)
HAL_StatusTypeDef HAL_SRAM_Init(SRAM_HandleTypeDef *hsram, FMC_NORSRAM_TimingTypeDef *Timing, FMC_NORSRAM_TimingTypeDef *ExtTiming)
HAL_SRAM_StateTypeDef
HAL SRAM State structures definition
HAL_LockTypeDef
HAL Lock structures definition
#define FMC_NORSRAM_TypeDef
void HAL_SRAM_MspDeInit(SRAM_HandleTypeDef *hsram)
FMC NORSRAM Timing parameters structure definition
HAL_StatusTypeDef HAL_SRAM_Write_16b(SRAM_HandleTypeDef *hsram, uint32_t *pAddress, uint16_t *pSrcBuffer, uint32_t BufferSize)
FMC_NORSRAM_InitTypeDef Init
HAL_SRAM_StateTypeDef HAL_SRAM_GetState(SRAM_HandleTypeDef *hsram)
HAL_StatusTypeDef HAL_SRAM_WriteOperation_Disable(SRAM_HandleTypeDef *hsram)
void HAL_SRAM_DMA_XferErrorCallback(DMA_HandleTypeDef *hdma)
HAL_StatusTypeDef HAL_SRAM_Write_8b(SRAM_HandleTypeDef *hsram, uint32_t *pAddress, uint8_t *pSrcBuffer, uint32_t BufferSize)
__IO HAL_SRAM_StateTypeDef State
FMC_NORSRAM_TypeDef * Instance
FMC_NORSRAM_EXTENDED_TypeDef * Extended
SRAM handle Structure definition.
HAL_StatusTypeDef HAL_SRAM_Read_8b(SRAM_HandleTypeDef *hsram, uint32_t *pAddress, uint8_t *pDstBuffer, uint32_t BufferSize)
HAL_StatusTypeDef HAL_SRAM_Write_DMA(SRAM_HandleTypeDef *hsram, uint32_t *pAddress, uint32_t *pSrcBuffer, uint32_t BufferSize)
@ HAL_SRAM_STATE_PROTECTED
FMC NORSRAM Configuration Structure definition.
Header file of FMC HAL module.
#define FMC_NORSRAM_EXTENDED_TypeDef
HAL_StatusTypeDef HAL_SRAM_Read_DMA(SRAM_HandleTypeDef *hsram, uint32_t *pAddress, uint32_t *pDstBuffer, uint32_t BufferSize)
HAL_StatusTypeDef HAL_SRAM_Write_32b(SRAM_HandleTypeDef *hsram, uint32_t *pAddress, uint32_t *pSrcBuffer, uint32_t BufferSize)
HAL_StatusTypeDef HAL_SRAM_WriteOperation_Enable(SRAM_HandleTypeDef *hsram)
HAL_StatusTypeDef HAL_SRAM_DeInit(SRAM_HandleTypeDef *hsram)