You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

114 lines
3.6 KiB

  1. /**
  2. ******************************************************************************
  3. * @file stm32h7xx_hal_sd_ex.h
  4. * @author MCD Application Team
  5. * @brief Header file of SD HAL extended module.
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * <h2><center>&copy; Copyright (c) 2017 STMicroelectronics.
  10. * All rights reserved.</center></h2>
  11. *
  12. * This software component is licensed by ST under BSD 3-Clause license,
  13. * the "License"; You may not use this file except in compliance with the
  14. * License. You may obtain a copy of the License at:
  15. * opensource.org/licenses/BSD-3-Clause
  16. *
  17. ******************************************************************************
  18. */
  19. /* Define to prevent recursive inclusion -------------------------------------*/
  20. #ifndef STM32H7xx_HAL_SD_EX_H
  21. #define STM32H7xx_HAL_SD_EX_H
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. /* Includes ------------------------------------------------------------------*/
  26. #include "stm32h7xx_hal_def.h"
  27. /** @addtogroup STM32H7xx_HAL_Driver
  28. * @{
  29. */
  30. /** @addtogroup SDEx
  31. * @brief SD HAL extended module driver
  32. * @{
  33. */
  34. /* Exported types ------------------------------------------------------------*/
  35. /** @defgroup SDEx_Exported_Types SDEx Exported Types
  36. * @{
  37. */
  38. /** @defgroup SDEx_Exported_Types_Group1 SD Card Internal DMA Buffer structure
  39. * @{
  40. */
  41. typedef enum
  42. {
  43. SD_DMA_BUFFER0 = 0x00U, /*!< selects SD internal DMA Buffer 0 */
  44. SD_DMA_BUFFER1 = 0x01U, /*!< selects SD internal DMA Buffer 1 */
  45. }HAL_SDEx_DMABuffer_MemoryTypeDef;
  46. /**
  47. * @}
  48. */
  49. /**
  50. * @}
  51. */
  52. /* Exported constants --------------------------------------------------------*/
  53. /* Exported macro ------------------------------------------------------------*/
  54. /* Exported functions --------------------------------------------------------*/
  55. /** @defgroup SDEx_Exported_Functions SDEx Exported Functions
  56. * @{
  57. */
  58. /** @defgroup SDEx_Exported_Functions_Group1 MultiBuffer functions
  59. * @{
  60. */
  61. HAL_StatusTypeDef HAL_SDEx_ConfigDMAMultiBuffer(SD_HandleTypeDef *hsd, uint32_t * pDataBuffer0, uint32_t * pDataBuffer1, uint32_t BufferSize);
  62. HAL_StatusTypeDef HAL_SDEx_ReadBlocksDMAMultiBuffer(SD_HandleTypeDef *hsd, uint32_t BlockAdd, uint32_t NumberOfBlocks);
  63. HAL_StatusTypeDef HAL_SDEx_WriteBlocksDMAMultiBuffer(SD_HandleTypeDef *hsd, uint32_t BlockAdd, uint32_t NumberOfBlocks);
  64. HAL_StatusTypeDef HAL_SDEx_ChangeDMABuffer(SD_HandleTypeDef *hsd, HAL_SDEx_DMABuffer_MemoryTypeDef Buffer, uint32_t *pDataBuffer);
  65. void HAL_SDEx_Read_DMADoubleBuf0CpltCallback(SD_HandleTypeDef *hsd);
  66. void HAL_SDEx_Read_DMADoubleBuf1CpltCallback(SD_HandleTypeDef *hsd);
  67. void HAL_SDEx_Write_DMADoubleBuf0CpltCallback(SD_HandleTypeDef *hsd);
  68. void HAL_SDEx_Write_DMADoubleBuf1CpltCallback(SD_HandleTypeDef *hsd);
  69. /**
  70. * @}
  71. */
  72. /**
  73. * @}
  74. */
  75. /* Private types -------------------------------------------------------------*/
  76. /* Private defines -----------------------------------------------------------*/
  77. /* Private variables ---------------------------------------------------------*/
  78. /* Private constants ---------------------------------------------------------*/
  79. /* Private macros ------------------------------------------------------------*/
  80. /* Private functions prototypes ----------------------------------------------*/
  81. /* Private functions ---------------------------------------------------------*/
  82. /**
  83. * @}
  84. */
  85. /**
  86. * @}
  87. */
  88. #ifdef __cplusplus
  89. }
  90. #endif
  91. #endif /* stm32h7xx_HAL_SD_EX_H */
  92. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/