stm32h7xx_hal_mmc.h
Go to the documentation of this file.
1 
20 /* Define to prevent recursive inclusion -------------------------------------*/
21 #ifndef STM32H7xx_HAL_MMC_H
22 #define STM32H7xx_HAL_MMC_H
23 
24 #ifdef __cplusplus
25  extern "C" {
26 #endif
27 
28 /* Includes ------------------------------------------------------------------*/
29 #include "stm32h7xx_ll_sdmmc.h"
30 
39 /* Exported types ------------------------------------------------------------*/
47 typedef enum
48 {
49  HAL_MMC_STATE_RESET = ((uint32_t)0x00000000U),
50  HAL_MMC_STATE_READY = ((uint32_t)0x00000001U),
51  HAL_MMC_STATE_TIMEOUT = ((uint32_t)0x00000002U),
52  HAL_MMC_STATE_BUSY = ((uint32_t)0x00000003U),
53  HAL_MMC_STATE_PROGRAMMING = ((uint32_t)0x00000004U),
54  HAL_MMC_STATE_RECEIVING = ((uint32_t)0x00000005U),
55  HAL_MMC_STATE_TRANSFER = ((uint32_t)0x00000006U),
56  HAL_MMC_STATE_ERROR = ((uint32_t)0x0000000FU)
65 typedef uint32_t HAL_MMC_CardStateTypeDef;
66 
67 #define HAL_MMC_CARD_READY 0x00000001U
68 #define HAL_MMC_CARD_IDENTIFICATION 0x00000002U
69 #define HAL_MMC_CARD_STANDBY 0x00000003U
70 #define HAL_MMC_CARD_TRANSFER 0x00000004U
71 #define HAL_MMC_CARD_SENDING 0x00000005U
72 #define HAL_MMC_CARD_RECEIVING 0x00000006U
73 #define HAL_MMC_CARD_PROGRAMMING 0x00000007U
74 #define HAL_MMC_CARD_DISCONNECTED 0x00000008U
75 #define HAL_MMC_CARD_ERROR 0x000000FFU
83 #define MMC_InitTypeDef SDMMC_InitTypeDef
84 #define MMC_TypeDef SDMMC_TypeDef
85 
89 typedef struct
90 {
91  uint32_t CardType;
93  uint32_t Class;
95  uint32_t RelCardAdd;
97  uint32_t BlockNbr;
99  uint32_t BlockSize;
101  uint32_t LogBlockNbr;
103  uint32_t LogBlockSize;
106 
110 #if defined (USE_HAL_MMC_REGISTER_CALLBACKS) && (USE_HAL_MMC_REGISTER_CALLBACKS == 1U)
111 typedef struct __MMC_HandleTypeDef
112 #else
113 typedef struct
114 #endif /* USE_HAL_MMC_REGISTER_CALLBACKS */
115 {
122  uint8_t *pTxBuffPtr;
124  uint32_t TxXferSize;
126  uint8_t *pRxBuffPtr;
128  uint32_t RxXferSize;
130  __IO uint32_t Context;
134  __IO uint32_t ErrorCode;
138  uint32_t CSD[4U];
140  uint32_t CID[4U];
142  uint32_t Ext_CSD[128];
143 
144 #if defined (USE_HAL_MMC_REGISTER_CALLBACKS) && (USE_HAL_MMC_REGISTER_CALLBACKS == 1U)
145  void (* TxCpltCallback) (struct __MMC_HandleTypeDef *hmmc);
146  void (* RxCpltCallback) (struct __MMC_HandleTypeDef *hmmc);
147  void (* ErrorCallback) (struct __MMC_HandleTypeDef *hmmc);
148  void (* AbortCpltCallback) (struct __MMC_HandleTypeDef *hmmc);
149  void (* Read_DMADblBuf0CpltCallback) (struct __MMC_HandleTypeDef *hmmc);
150  void (* Read_DMADblBuf1CpltCallback) (struct __MMC_HandleTypeDef *hmmc);
151  void (* Write_DMADblBuf0CpltCallback) (struct __MMC_HandleTypeDef *hmmc);
152  void (* Write_DMADblBuf1CpltCallback) (struct __MMC_HandleTypeDef *hmmc);
153 
154  void (* MspInitCallback) (struct __MMC_HandleTypeDef *hmmc);
155  void (* MspDeInitCallback) (struct __MMC_HandleTypeDef *hmmc);
156 #endif
158 
159 
167 typedef struct
168 {
169  __IO uint8_t CSDStruct;
171  __IO uint8_t Reserved1;
172  __IO uint8_t TAAC;
173  __IO uint8_t NSAC;
174  __IO uint8_t MaxBusClkFrec;
176  __IO uint8_t RdBlockLen;
177  __IO uint8_t PartBlockRead;
180  __IO uint8_t DSRImpl;
181  __IO uint8_t Reserved2;
182  __IO uint32_t DeviceSize;
187  __IO uint8_t DeviceSizeMul;
188  __IO uint8_t EraseGrSize;
189  __IO uint8_t EraseGrMul;
192  __IO uint8_t ManDeflECC;
193  __IO uint8_t WrSpeedFact;
194  __IO uint8_t MaxWrBlockLen;
196  __IO uint8_t Reserved3;
199  __IO uint8_t CopyFlag;
200  __IO uint8_t PermWrProtect;
201  __IO uint8_t TempWrProtect;
202  __IO uint8_t FileFormat;
203  __IO uint8_t ECC;
204  __IO uint8_t CSD_CRC;
205  __IO uint8_t Reserved4;
215 typedef struct
216 {
218  __IO uint16_t OEM_AppliID;
219  __IO uint32_t ProdName1;
220  __IO uint8_t ProdName2;
221  __IO uint8_t ProdRev;
222  __IO uint32_t ProdSN;
223  __IO uint8_t Reserved1;
224  __IO uint16_t ManufactDate;
225  __IO uint8_t CID_CRC;
226  __IO uint8_t Reserved2;
233 #if defined (USE_HAL_MMC_REGISTER_CALLBACKS) && (USE_HAL_MMC_REGISTER_CALLBACKS == 1U)
234 
237 typedef enum
238 {
239  HAL_MMC_TX_CPLT_CB_ID = 0x00U,
240  HAL_MMC_RX_CPLT_CB_ID = 0x01U,
241  HAL_MMC_ERROR_CB_ID = 0x02U,
242  HAL_MMC_ABORT_CB_ID = 0x03U,
243  HAL_MMC_READ_DMA_DBL_BUF0_CPLT_CB_ID = 0x04U,
244  HAL_MMC_READ_DMA_DBL_BUF1_CPLT_CB_ID = 0x05U,
245  HAL_MMC_WRITE_DMA_DBL_BUF0_CPLT_CB_ID = 0x06U,
246  HAL_MMC_WRITE_DMA_DBL_BUF1_CPLT_CB_ID = 0x07U,
248  HAL_MMC_MSP_INIT_CB_ID = 0x10U,
249  HAL_MMC_MSP_DEINIT_CB_ID = 0x11U
250 }HAL_MMC_CallbackIDTypeDef;
258 typedef void (*pMMC_CallbackTypeDef) (MMC_HandleTypeDef *hmmc);
262 #endif
263 
267 /* Exported constants --------------------------------------------------------*/
272 #define MMC_BLOCKSIZE ((uint32_t)512U)
277 #define HAL_MMC_ERROR_NONE SDMMC_ERROR_NONE
278 #define HAL_MMC_ERROR_CMD_CRC_FAIL SDMMC_ERROR_CMD_CRC_FAIL
279 #define HAL_MMC_ERROR_DATA_CRC_FAIL SDMMC_ERROR_DATA_CRC_FAIL
280 #define HAL_MMC_ERROR_CMD_RSP_TIMEOUT SDMMC_ERROR_CMD_RSP_TIMEOUT
281 #define HAL_MMC_ERROR_DATA_TIMEOUT SDMMC_ERROR_DATA_TIMEOUT
282 #define HAL_MMC_ERROR_TX_UNDERRUN SDMMC_ERROR_TX_UNDERRUN
283 #define HAL_MMC_ERROR_RX_OVERRUN SDMMC_ERROR_RX_OVERRUN
284 #define HAL_MMC_ERROR_ADDR_MISALIGNED SDMMC_ERROR_ADDR_MISALIGNED
285 #define HAL_MMC_ERROR_BLOCK_LEN_ERR SDMMC_ERROR_BLOCK_LEN_ERR
287 #define HAL_MMC_ERROR_ERASE_SEQ_ERR SDMMC_ERROR_ERASE_SEQ_ERR
288 #define HAL_MMC_ERROR_BAD_ERASE_PARAM SDMMC_ERROR_BAD_ERASE_PARAM
289 #define HAL_MMC_ERROR_WRITE_PROT_VIOLATION SDMMC_ERROR_WRITE_PROT_VIOLATION
290 #define HAL_MMC_ERROR_LOCK_UNLOCK_FAILED SDMMC_ERROR_LOCK_UNLOCK_FAILED
292 #define HAL_MMC_ERROR_COM_CRC_FAILED SDMMC_ERROR_COM_CRC_FAILED
293 #define HAL_MMC_ERROR_ILLEGAL_CMD SDMMC_ERROR_ILLEGAL_CMD
294 #define HAL_MMC_ERROR_CARD_ECC_FAILED SDMMC_ERROR_CARD_ECC_FAILED
295 #define HAL_MMC_ERROR_CC_ERR SDMMC_ERROR_CC_ERR
296 #define HAL_MMC_ERROR_GENERAL_UNKNOWN_ERR SDMMC_ERROR_GENERAL_UNKNOWN_ERR
297 #define HAL_MMC_ERROR_STREAM_READ_UNDERRUN SDMMC_ERROR_STREAM_READ_UNDERRUN
298 #define HAL_MMC_ERROR_STREAM_WRITE_OVERRUN SDMMC_ERROR_STREAM_WRITE_OVERRUN
299 #define HAL_MMC_ERROR_CID_CSD_OVERWRITE SDMMC_ERROR_CID_CSD_OVERWRITE
300 #define HAL_MMC_ERROR_WP_ERASE_SKIP SDMMC_ERROR_WP_ERASE_SKIP
301 #define HAL_MMC_ERROR_CARD_ECC_DISABLED SDMMC_ERROR_CARD_ECC_DISABLED
302 #define HAL_MMC_ERROR_ERASE_RESET SDMMC_ERROR_ERASE_RESET
304 #define HAL_MMC_ERROR_AKE_SEQ_ERR SDMMC_ERROR_AKE_SEQ_ERR
305 #define HAL_MMC_ERROR_INVALID_VOLTRANGE SDMMC_ERROR_INVALID_VOLTRANGE
306 #define HAL_MMC_ERROR_ADDR_OUT_OF_RANGE SDMMC_ERROR_ADDR_OUT_OF_RANGE
307 #define HAL_MMC_ERROR_REQUEST_NOT_APPLICABLE SDMMC_ERROR_REQUEST_NOT_APPLICABLE
308 #define HAL_MMC_ERROR_PARAM SDMMC_ERROR_INVALID_PARAMETER
309 #define HAL_MMC_ERROR_UNSUPPORTED_FEATURE SDMMC_ERROR_UNSUPPORTED_FEATURE
310 #define HAL_MMC_ERROR_BUSY SDMMC_ERROR_BUSY
311 #define HAL_MMC_ERROR_DMA SDMMC_ERROR_DMA
312 #define HAL_MMC_ERROR_TIMEOUT SDMMC_ERROR_TIMEOUT
314 #if defined (USE_HAL_MMC_REGISTER_CALLBACKS) && (USE_HAL_MMC_REGISTER_CALLBACKS == 1U)
315 #define HAL_MMC_ERROR_INVALID_CALLBACK SDMMC_ERROR_INVALID_PARAMETER
316 #endif
317 
324 #define MMC_CONTEXT_NONE ((uint32_t)0x00000000U)
325 #define MMC_CONTEXT_READ_SINGLE_BLOCK ((uint32_t)0x00000001U)
326 #define MMC_CONTEXT_READ_MULTIPLE_BLOCK ((uint32_t)0x00000002U)
327 #define MMC_CONTEXT_WRITE_SINGLE_BLOCK ((uint32_t)0x00000010U)
328 #define MMC_CONTEXT_WRITE_MULTIPLE_BLOCK ((uint32_t)0x00000020U)
329 #define MMC_CONTEXT_IT ((uint32_t)0x00000008U)
330 #define MMC_CONTEXT_DMA ((uint32_t)0x00000080U)
342 #define MMC_HIGH_VOLTAGE_RANGE 0x80FF8000U
343 #define MMC_DUAL_VOLTAGE_RANGE 0x80FF8080U
344 #define eMMC_HIGH_VOLTAGE_RANGE 0xC0FF8000U
345 #define eMMC_DUAL_VOLTAGE_RANGE 0xC0FF8080U
346 #define MMC_INVALID_VOLTAGE_RANGE 0x0001FF01U
347 
354 #define MMC_LOW_CAPACITY_CARD ((uint32_t)0x00000000U)
355 #define MMC_HIGH_CAPACITY_CARD ((uint32_t)0x00000001U)
364 #define HAL_MMC_ERASE 0x00000000U
365 #define HAL_MMC_TRIM 0x00000001U
366 #define HAL_MMC_DISCARD 0x00000003U
367 #define HAL_MMC_SECURE_ERASE 0x80000000U
368 #define HAL_MMC_SECURE_TRIM_STEP1 0x80000001U
369 #define HAL_MMC_SECURE_TRIM_STEP2 0x80008000U
371 #define IS_MMC_ERASE_TYPE(TYPE) (((TYPE) == HAL_MMC_ERASE) || \
372  ((TYPE) == HAL_MMC_TRIM) || \
373  ((TYPE) == HAL_MMC_DISCARD) || \
374  ((TYPE) == HAL_MMC_SECURE_ERASE) || \
375  ((TYPE) == HAL_MMC_SECURE_TRIM_STEP1) || \
376  ((TYPE) == HAL_MMC_SECURE_TRIM_STEP2))
377 
384 #define HAL_MMC_SRT_ERASE 0x00000001U
385 #define HAL_MMC_SRT_WRITE_CHAR_ERASE 0x00000002U
386 #define HAL_MMC_SRT_WRITE_CHAR_COMPL_RANDOM 0x00000004U
387 #define HAL_MMC_SRT_VENDOR_DEFINED 0x00000008U
390 #define IS_MMC_SRT_TYPE(TYPE) (((TYPE) == HAL_MMC_SRT_ERASE) || \
391  ((TYPE) == HAL_MMC_SRT_WRITE_CHAR_ERASE) || \
392  ((TYPE) == HAL_MMC_SRT_WRITE_CHAR_COMPL_RANDOM) || \
393  ((TYPE) == HAL_MMC_SRT_VENDOR_DEFINED))
394 
402 /* Exported macro ------------------------------------------------------------*/
411 #if defined (USE_HAL_MMC_REGISTER_CALLBACKS) && (USE_HAL_MMC_REGISTER_CALLBACKS == 1U)
412 #define __HAL_MMC_RESET_HANDLE_STATE(__HANDLE__) do { \
413  (__HANDLE__)->State = HAL_MMC_STATE_RESET; \
414  (__HANDLE__)->MspInitCallback = NULL; \
415  (__HANDLE__)->MspDeInitCallback = NULL; \
416  } while(0)
417 #else
418 #define __HAL_MMC_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_MMC_STATE_RESET)
419 #endif
420 
451 #define __HAL_MMC_ENABLE_IT(__HANDLE__, __INTERRUPT__) __SDMMC_ENABLE_IT((__HANDLE__)->Instance, (__INTERRUPT__))
452 
483 #define __HAL_MMC_DISABLE_IT(__HANDLE__, __INTERRUPT__) __SDMMC_DISABLE_IT((__HANDLE__)->Instance, (__INTERRUPT__))
484 
521 #define __HAL_MMC_GET_FLAG(__HANDLE__, __FLAG__) __SDMMC_GET_FLAG((__HANDLE__)->Instance, (__FLAG__))
522 
550 #define __HAL_MMC_CLEAR_FLAG(__HANDLE__, __FLAG__) __SDMMC_CLEAR_FLAG((__HANDLE__)->Instance, (__FLAG__))
551 
582 #define __HAL_MMC_GET_IT(__HANDLE__, __INTERRUPT__) __SDMMC_GET_IT((__HANDLE__)->Instance, (__INTERRUPT__))
583 
614 #define __HAL_MMC_CLEAR_IT(__HANDLE__, __INTERRUPT__) __SDMMC_CLEAR_IT((__HANDLE__)->Instance, (__INTERRUPT__))
615 
620 /* Include MMC HAL Extension module */
621 #include "stm32h7xx_hal_mmc_ex.h"
622 
623 /* Exported functions --------------------------------------------------------*/
636 
644 /* Blocking mode: Polling */
645 HAL_StatusTypeDef HAL_MMC_ReadBlocks(MMC_HandleTypeDef *hmmc, uint8_t *pData, uint32_t BlockAdd, uint32_t NumberOfBlocks, uint32_t Timeout);
646 HAL_StatusTypeDef HAL_MMC_WriteBlocks(MMC_HandleTypeDef *hmmc, uint8_t *pData, uint32_t BlockAdd, uint32_t NumberOfBlocks, uint32_t Timeout);
647 HAL_StatusTypeDef HAL_MMC_Erase(MMC_HandleTypeDef *hmmc, uint32_t BlockStartAdd, uint32_t BlockEndAdd);
648 /* Non-Blocking mode: IT */
649 HAL_StatusTypeDef HAL_MMC_ReadBlocks_IT(MMC_HandleTypeDef *hmmc, uint8_t *pData, uint32_t BlockAdd, uint32_t NumberOfBlocks);
650 HAL_StatusTypeDef HAL_MMC_WriteBlocks_IT(MMC_HandleTypeDef *hmmc, uint8_t *pData, uint32_t BlockAdd, uint32_t NumberOfBlocks);
651 /* Non-Blocking mode: DMA */
652 HAL_StatusTypeDef HAL_MMC_ReadBlocks_DMA(MMC_HandleTypeDef *hmmc, uint8_t *pData, uint32_t BlockAdd, uint32_t NumberOfBlocks);
653 HAL_StatusTypeDef HAL_MMC_WriteBlocks_DMA(MMC_HandleTypeDef *hmmc, uint8_t *pData, uint32_t BlockAdd, uint32_t NumberOfBlocks);
654 
656 
657 /* Callback in non blocking modes (DMA) */
662 
663 #if defined (USE_HAL_MMC_REGISTER_CALLBACKS) && (USE_HAL_MMC_REGISTER_CALLBACKS == 1U)
664 /* MMC callback registering/unregistering */
665 HAL_StatusTypeDef HAL_MMC_RegisterCallback (MMC_HandleTypeDef *hmmc, HAL_MMC_CallbackIDTypeDef CallbackId, pMMC_CallbackTypeDef pCallback);
666 HAL_StatusTypeDef HAL_MMC_UnRegisterCallback(MMC_HandleTypeDef *hmmc, HAL_MMC_CallbackIDTypeDef CallbackId);
667 #endif
668 
696 uint32_t HAL_MMC_GetError(MMC_HandleTypeDef *hmmc);
713 HAL_StatusTypeDef HAL_MMC_EraseSequence(MMC_HandleTypeDef *hmmc, uint32_t EraseType, uint32_t BlockStartAdd, uint32_t BlockEndAdd);
721 /* Private types -------------------------------------------------------------*/
730 /* Private defines -----------------------------------------------------------*/
739 /* Private variables ---------------------------------------------------------*/
748 /* Private constants ---------------------------------------------------------*/
757 /* Private macros ------------------------------------------------------------*/
766 /* Private functions prototypes ----------------------------------------------*/
775 /* Private functions ---------------------------------------------------------*/
797 #ifdef __cplusplus
798 }
799 #endif
800 
801 
802 #endif /* STM32H7xx_HAL_MMC_H */
803 
804 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
HAL_MMC_CardCIDTypeDef::ProdName2
__IO uint8_t ProdName2
Definition: stm32h7xx_hal_mmc.h:220
HAL_MMC_STATE_RECEIVING
@ HAL_MMC_STATE_RECEIVING
Definition: stm32h7xx_hal_mmc.h:54
HAL_MMC_CardStateTypeDef
uint32_t HAL_MMC_CardStateTypeDef
Definition: stm32h7xx_hal_mmc.h:65
HAL_MMC_CardInfoTypeDef::RelCardAdd
uint32_t RelCardAdd
Definition: stm32h7xx_hal_mmc.h:95
MMC_HandleTypeDef::TxXferSize
uint32_t TxXferSize
Definition: stm32h7xx_hal_mmc.h:124
__IO
#define __IO
Definition: imxrt1050/imxrt1050-evkb/CMSIS/core_cm7.h:237
HAL_StatusTypeDef
HAL_StatusTypeDef
HAL Status structures definition
Definition: stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h:40
HAL_MMC_CardCIDTypeDef::ManufactDate
__IO uint16_t ManufactDate
Definition: stm32h7xx_hal_mmc.h:224
HAL_MMC_ConfigWideBusOperation
HAL_StatusTypeDef HAL_MMC_ConfigWideBusOperation(MMC_HandleTypeDef *hmmc, uint32_t WideMode)
HAL_MMC_CardCIDTypeDef::OEM_AppliID
__IO uint16_t OEM_AppliID
Definition: stm32h7xx_hal_mmc.h:218
HAL_MMC_CardInfoTypeDef::CardType
uint32_t CardType
Definition: stm32h7xx_hal_mmc.h:91
HAL_MMC_CardInfoTypeDef::LogBlockSize
uint32_t LogBlockSize
Definition: stm32h7xx_hal_mmc.h:103
HAL_MMC_STATE_TIMEOUT
@ HAL_MMC_STATE_TIMEOUT
Definition: stm32h7xx_hal_mmc.h:51
HAL_MMC_CardCSDTypeDef::MaxRdCurrentVDDMax
__IO uint8_t MaxRdCurrentVDDMax
Definition: stm32h7xx_hal_mmc.h:184
HAL_MMC_ErrorCallback
void HAL_MMC_ErrorCallback(MMC_HandleTypeDef *hmmc)
HAL_MMC_DeInit
HAL_StatusTypeDef HAL_MMC_DeInit(MMC_HandleTypeDef *hmmc)
HAL_MMC_IRQHandler
void HAL_MMC_IRQHandler(MMC_HandleTypeDef *hmmc)
HAL_MMC_CardCSDTypeDef::MaxWrCurrentVDDMax
__IO uint8_t MaxWrCurrentVDDMax
Definition: stm32h7xx_hal_mmc.h:186
HAL_MMC_GetCardCSD
HAL_StatusTypeDef HAL_MMC_GetCardCSD(MMC_HandleTypeDef *hmmc, HAL_MMC_CardCSDTypeDef *pCSD)
HAL_MMC_CardCIDTypeDef::Reserved1
__IO uint8_t Reserved1
Definition: stm32h7xx_hal_mmc.h:223
HAL_MMC_CardCSDTypeDef
Definition: stm32h7xx_hal_mmc.h:167
HAL_MMC_ConfigSpeedBusOperation
HAL_StatusTypeDef HAL_MMC_ConfigSpeedBusOperation(MMC_HandleTypeDef *hmmc, uint32_t SpeedMode)
HAL_MMC_CardCSDTypeDef::FileFormat
__IO uint8_t FileFormat
Definition: stm32h7xx_hal_mmc.h:202
HAL_MMC_InitCard
HAL_StatusTypeDef HAL_MMC_InitCard(MMC_HandleTypeDef *hmmc)
HAL_MMC_CardInfoTypeDef::BlockSize
uint32_t BlockSize
Definition: stm32h7xx_hal_mmc.h:99
HAL_MMC_TxCpltCallback
void HAL_MMC_TxCpltCallback(MMC_HandleTypeDef *hmmc)
HAL_MMC_ReadBlocks_IT
HAL_StatusTypeDef HAL_MMC_ReadBlocks_IT(MMC_HandleTypeDef *hmmc, uint8_t *pData, uint32_t BlockAdd, uint32_t NumberOfBlocks)
HAL_MMC_CardCSDTypeDef::PermWrProtect
__IO uint8_t PermWrProtect
Definition: stm32h7xx_hal_mmc.h:200
HAL_MMC_Erase
HAL_StatusTypeDef HAL_MMC_Erase(MMC_HandleTypeDef *hmmc, uint32_t BlockStartAdd, uint32_t BlockEndAdd)
HAL_MMC_RxCpltCallback
void HAL_MMC_RxCpltCallback(MMC_HandleTypeDef *hmmc)
HAL_LockTypeDef
HAL_LockTypeDef
HAL Lock structures definition
Definition: stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h:51
MMC_HandleTypeDef::Lock
HAL_LockTypeDef Lock
Definition: stm32h7xx_hal_mmc.h:120
HAL_MMC_CardCSDTypeDef::WriteBlockPaPartial
__IO uint8_t WriteBlockPaPartial
Definition: stm32h7xx_hal_mmc.h:195
HAL_MMC_CardCSDTypeDef::CardComdClasses
__IO uint16_t CardComdClasses
Definition: stm32h7xx_hal_mmc.h:175
HAL_MMC_ReadBlocks
HAL_StatusTypeDef HAL_MMC_ReadBlocks(MMC_HandleTypeDef *hmmc, uint8_t *pData, uint32_t BlockAdd, uint32_t NumberOfBlocks, uint32_t Timeout)
HAL_MMC_CardCSDTypeDef::WrBlockMisalign
__IO uint8_t WrBlockMisalign
Definition: stm32h7xx_hal_mmc.h:178
MMC_HandleTypeDef::Instance
MMC_TypeDef * Instance
Definition: stm32h7xx_hal_mmc.h:116
HAL_MMC_GetCardInfo
HAL_StatusTypeDef HAL_MMC_GetCardInfo(MMC_HandleTypeDef *hmmc, HAL_MMC_CardInfoTypeDef *pCardInfo)
HAL_MMC_CardCSDTypeDef::RdBlockLen
__IO uint8_t RdBlockLen
Definition: stm32h7xx_hal_mmc.h:176
HAL_MMC_STATE_PROGRAMMING
@ HAL_MMC_STATE_PROGRAMMING
Definition: stm32h7xx_hal_mmc.h:53
HAL_MMC_CardCSDTypeDef::MaxBusClkFrec
__IO uint8_t MaxBusClkFrec
Definition: stm32h7xx_hal_mmc.h:174
HAL_MMC_EraseSequence
HAL_StatusTypeDef HAL_MMC_EraseSequence(MMC_HandleTypeDef *hmmc, uint32_t EraseType, uint32_t BlockStartAdd, uint32_t BlockEndAdd)
HAL_MMC_CardCSDTypeDef::Reserved2
__IO uint8_t Reserved2
Definition: stm32h7xx_hal_mmc.h:181
HAL_MMC_CardCSDTypeDef::DeviceSizeMul
__IO uint8_t DeviceSizeMul
Definition: stm32h7xx_hal_mmc.h:187
HAL_MMC_Abort_IT
HAL_StatusTypeDef HAL_MMC_Abort_IT(MMC_HandleTypeDef *hmmc)
HAL_MMC_CardCIDTypeDef
Definition: stm32h7xx_hal_mmc.h:215
HAL_MMC_StateTypeDef
HAL_MMC_StateTypeDef
Definition: stm32h7xx_hal_mmc.h:47
HAL_MMC_GetState
HAL_MMC_StateTypeDef HAL_MMC_GetState(MMC_HandleTypeDef *hmmc)
HAL_MMC_CardCIDTypeDef::Reserved2
__IO uint8_t Reserved2
Definition: stm32h7xx_hal_mmc.h:226
MMC_HandleTypeDef::Init
MMC_InitTypeDef Init
Definition: stm32h7xx_hal_mmc.h:118
MMC_HandleTypeDef::pTxBuffPtr
uint8_t * pTxBuffPtr
Definition: stm32h7xx_hal_mmc.h:122
HAL_MMC_MspInit
void HAL_MMC_MspInit(MMC_HandleTypeDef *hmmc)
HAL_MMC_CardCSDTypeDef::Reserved1
__IO uint8_t Reserved1
Definition: stm32h7xx_hal_mmc.h:171
HAL_MMC_GetError
uint32_t HAL_MMC_GetError(MMC_HandleTypeDef *hmmc)
HAL_MMC_CardCSDTypeDef::Reserved4
__IO uint8_t Reserved4
Definition: stm32h7xx_hal_mmc.h:205
MMC_HandleTypeDef::pRxBuffPtr
uint8_t * pRxBuffPtr
Definition: stm32h7xx_hal_mmc.h:126
HAL_MMC_Sanitize
HAL_StatusTypeDef HAL_MMC_Sanitize(MMC_HandleTypeDef *hmmc)
MMC_HandleTypeDef::Context
__IO uint32_t Context
Definition: stm32h7xx_hal_mmc.h:130
HAL_MMC_WriteBlocks
HAL_StatusTypeDef HAL_MMC_WriteBlocks(MMC_HandleTypeDef *hmmc, uint8_t *pData, uint32_t BlockAdd, uint32_t NumberOfBlocks, uint32_t Timeout)
HAL_MMC_CardCSDTypeDef::EraseGrMul
__IO uint8_t EraseGrMul
Definition: stm32h7xx_hal_mmc.h:189
HAL_MMC_CardCSDTypeDef::CopyFlag
__IO uint8_t CopyFlag
Definition: stm32h7xx_hal_mmc.h:199
MMC_HandleTypeDef
MMC handle Structure definition.
Definition: stm32h7xx_hal_mmc.h:113
stm32h7xx_hal_mmc_ex.h
Header file of SD HAL extended module.
HAL_MMC_CardCIDTypeDef::ProdName1
__IO uint32_t ProdName1
Definition: stm32h7xx_hal_mmc.h:219
HAL_MMC_STATE_RESET
@ HAL_MMC_STATE_RESET
Definition: stm32h7xx_hal_mmc.h:49
HAL_MMC_CardCSDTypeDef::CSD_CRC
__IO uint8_t CSD_CRC
Definition: stm32h7xx_hal_mmc.h:204
HAL_MMC_AbortCallback
void HAL_MMC_AbortCallback(MMC_HandleTypeDef *hmmc)
HAL_MMC_WriteBlocks_DMA
HAL_StatusTypeDef HAL_MMC_WriteBlocks_DMA(MMC_HandleTypeDef *hmmc, uint8_t *pData, uint32_t BlockAdd, uint32_t NumberOfBlocks)
HAL_MMC_CardCSDTypeDef::RdBlockMisalign
__IO uint8_t RdBlockMisalign
Definition: stm32h7xx_hal_mmc.h:179
HAL_MMC_STATE_READY
@ HAL_MMC_STATE_READY
Definition: stm32h7xx_hal_mmc.h:50
HAL_MMC_Abort
HAL_StatusTypeDef HAL_MMC_Abort(MMC_HandleTypeDef *hmmc)
HAL_MMC_CardCIDTypeDef::ProdSN
__IO uint32_t ProdSN
Definition: stm32h7xx_hal_mmc.h:222
HAL_MMC_CardCSDTypeDef::DeviceSize
__IO uint32_t DeviceSize
Definition: stm32h7xx_hal_mmc.h:182
HAL_MMC_MspDeInit
void HAL_MMC_MspDeInit(MMC_HandleTypeDef *hmmc)
HAL_MMC_CardCSDTypeDef::PartBlockRead
__IO uint8_t PartBlockRead
Definition: stm32h7xx_hal_mmc.h:177
MMC_HandleTypeDef::State
__IO HAL_MMC_StateTypeDef State
Definition: stm32h7xx_hal_mmc.h:132
HAL_MMC_CardCSDTypeDef::SysSpecVersion
__IO uint8_t SysSpecVersion
Definition: stm32h7xx_hal_mmc.h:170
HAL_MMC_CardCIDTypeDef::CID_CRC
__IO uint8_t CID_CRC
Definition: stm32h7xx_hal_mmc.h:225
MMC_HandleTypeDef::MmcCard
HAL_MMC_CardInfoTypeDef MmcCard
Definition: stm32h7xx_hal_mmc.h:136
HAL_MMC_CardInfoTypeDef
MMC Card Information Structure definition.
Definition: stm32h7xx_hal_mmc.h:89
HAL_MMC_STATE_ERROR
@ HAL_MMC_STATE_ERROR
Definition: stm32h7xx_hal_mmc.h:56
HAL_MMC_CardInfoTypeDef::LogBlockNbr
uint32_t LogBlockNbr
Definition: stm32h7xx_hal_mmc.h:101
MMC_HandleTypeDef::ErrorCode
__IO uint32_t ErrorCode
Definition: stm32h7xx_hal_mmc.h:134
HAL_MMC_CardCSDTypeDef::TAAC
__IO uint8_t TAAC
Definition: stm32h7xx_hal_mmc.h:172
HAL_MMC_Init
HAL_StatusTypeDef HAL_MMC_Init(MMC_HandleTypeDef *hmmc)
HAL_MMC_CardCSDTypeDef::WrSpeedFact
__IO uint8_t WrSpeedFact
Definition: stm32h7xx_hal_mmc.h:193
HAL_MMC_ConfigSecRemovalType
HAL_StatusTypeDef HAL_MMC_ConfigSecRemovalType(MMC_HandleTypeDef *hmmc, uint32_t SRTMode)
HAL_MMC_STATE_TRANSFER
@ HAL_MMC_STATE_TRANSFER
Definition: stm32h7xx_hal_mmc.h:55
HAL_MMC_CardInfoTypeDef::BlockNbr
uint32_t BlockNbr
Definition: stm32h7xx_hal_mmc.h:97
HAL_MMC_CardCIDTypeDef::ProdRev
__IO uint8_t ProdRev
Definition: stm32h7xx_hal_mmc.h:221
HAL_MMC_CardCIDTypeDef::ManufacturerID
__IO uint8_t ManufacturerID
Definition: stm32h7xx_hal_mmc.h:217
HAL_MMC_CardCSDTypeDef::TempWrProtect
__IO uint8_t TempWrProtect
Definition: stm32h7xx_hal_mmc.h:201
HAL_MMC_CardCSDTypeDef::NSAC
__IO uint8_t NSAC
Definition: stm32h7xx_hal_mmc.h:173
MMC_HandleTypeDef::RxXferSize
uint32_t RxXferSize
Definition: stm32h7xx_hal_mmc.h:128
HAL_MMC_CardCSDTypeDef::ECC
__IO uint8_t ECC
Definition: stm32h7xx_hal_mmc.h:203
MMC_InitTypeDef
#define MMC_InitTypeDef
Definition: stm32h7xx_hal_mmc.h:83
HAL_MMC_CardCSDTypeDef::ManDeflECC
__IO uint8_t ManDeflECC
Definition: stm32h7xx_hal_mmc.h:192
HAL_MMC_CardCSDTypeDef::WrProtectGrSize
__IO uint8_t WrProtectGrSize
Definition: stm32h7xx_hal_mmc.h:190
HAL_MMC_CardCSDTypeDef::CSDStruct
__IO uint8_t CSDStruct
Definition: stm32h7xx_hal_mmc.h:169
HAL_MMC_CardCSDTypeDef::MaxWrBlockLen
__IO uint8_t MaxWrBlockLen
Definition: stm32h7xx_hal_mmc.h:194
HAL_MMC_GetSupportedSecRemovalType
HAL_StatusTypeDef HAL_MMC_GetSupportedSecRemovalType(MMC_HandleTypeDef *hmmc, uint32_t *SupportedSRT)
HAL_MMC_GetCardState
HAL_MMC_CardStateTypeDef HAL_MMC_GetCardState(MMC_HandleTypeDef *hmmc)
HAL_MMC_CardCSDTypeDef::ContentProtectAppli
__IO uint8_t ContentProtectAppli
Definition: stm32h7xx_hal_mmc.h:197
HAL_MMC_CardCSDTypeDef::FileFormatGroup
__IO uint8_t FileFormatGroup
Definition: stm32h7xx_hal_mmc.h:198
HAL_MMC_ReadBlocks_DMA
HAL_StatusTypeDef HAL_MMC_ReadBlocks_DMA(MMC_HandleTypeDef *hmmc, uint8_t *pData, uint32_t BlockAdd, uint32_t NumberOfBlocks)
HAL_MMC_CardCSDTypeDef::EraseGrSize
__IO uint8_t EraseGrSize
Definition: stm32h7xx_hal_mmc.h:188
HAL_MMC_WriteBlocks_IT
HAL_StatusTypeDef HAL_MMC_WriteBlocks_IT(MMC_HandleTypeDef *hmmc, uint8_t *pData, uint32_t BlockAdd, uint32_t NumberOfBlocks)
HAL_MMC_CardCSDTypeDef::MaxRdCurrentVDDMin
__IO uint8_t MaxRdCurrentVDDMin
Definition: stm32h7xx_hal_mmc.h:183
HAL_MMC_CardInfoTypeDef::Class
uint32_t Class
Definition: stm32h7xx_hal_mmc.h:93
HAL_MMC_GetCardCID
HAL_StatusTypeDef HAL_MMC_GetCardCID(MMC_HandleTypeDef *hmmc, HAL_MMC_CardCIDTypeDef *pCID)
HAL_MMC_STATE_BUSY
@ HAL_MMC_STATE_BUSY
Definition: stm32h7xx_hal_mmc.h:52
HAL_MMC_CardCSDTypeDef::Reserved3
__IO uint8_t Reserved3
Definition: stm32h7xx_hal_mmc.h:196
HAL_MMC_CardCSDTypeDef::WrProtectGrEnable
__IO uint8_t WrProtectGrEnable
Definition: stm32h7xx_hal_mmc.h:191
HAL_MMC_CardCSDTypeDef::MaxWrCurrentVDDMin
__IO uint8_t MaxWrCurrentVDDMin
Definition: stm32h7xx_hal_mmc.h:185
MMC_TypeDef
#define MMC_TypeDef
Definition: stm32h7xx_hal_mmc.h:84
HAL_MMC_CardCSDTypeDef::DSRImpl
__IO uint8_t DSRImpl
Definition: stm32h7xx_hal_mmc.h:180


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:14:54