STM32F4xx_HAL_Driver  1.8.3
Peripheral Control functions

management functions More...

+ Collaboration diagram for Peripheral Control functions:

Functions

HAL_StatusTypeDef HAL_MMC_ConfigWideBusOperation (MMC_HandleTypeDef *hmmc, uint32_t WideMode)
 Enables wide bus operation for the requested card if supported by card. More...
 
HAL_StatusTypeDef HAL_MMC_GetCardCID (MMC_HandleTypeDef *hmmc, HAL_MMC_CardCIDTypeDef *pCID)
 Returns information the information of the card which are stored on the CID register. More...
 
HAL_StatusTypeDef HAL_MMC_GetCardCSD (MMC_HandleTypeDef *hmmc, HAL_MMC_CardCSDTypeDef *pCSD)
 Returns information the information of the card which are stored on the CSD register. More...
 
HAL_StatusTypeDef HAL_MMC_GetCardInfo (MMC_HandleTypeDef *hmmc, HAL_MMC_CardInfoTypeDef *pCardInfo)
 Gets the MMC card info. More...
 
HAL_StatusTypeDef HAL_MMC_GetCardExtCSD (MMC_HandleTypeDef *hmmc, uint32_t *pExtCSD, uint32_t Timeout)
 Returns information the information of the card which are stored on the Extended CSD register. More...
 
HAL_MMC_CardStateTypeDef HAL_MMC_GetCardState (MMC_HandleTypeDef *hmmc)
 Gets the current mmc card data state. More...
 
HAL_StatusTypeDef HAL_MMC_Abort (MMC_HandleTypeDef *hmmc)
 Abort the current transfer and disable the MMC. More...
 
HAL_StatusTypeDef HAL_MMC_Abort_IT (MMC_HandleTypeDef *hmmc)
 Abort the current transfer and disable the MMC (IT mode). More...
 

Detailed Description

management functions

  ==============================================================================
                      ##### Peripheral Control functions #####
  ==============================================================================
  [..]
    This subsection provides a set of functions allowing to control the MMC card
    operations and get the related information

Function Documentation

◆ HAL_MMC_Abort()

HAL_StatusTypeDef HAL_MMC_Abort ( MMC_HandleTypeDef hmmc)

Abort the current transfer and disable the MMC.

Parameters
hmmcpointer to a MMC_HandleTypeDef structure that contains the configuration information for MMC module.
Return values
HALstatus

Definition at line 2416 of file stm32f4xx_hal_mmc.c.

◆ HAL_MMC_Abort_IT()

HAL_StatusTypeDef HAL_MMC_Abort_IT ( MMC_HandleTypeDef hmmc)

Abort the current transfer and disable the MMC (IT mode).

Parameters
hmmcpointer to a MMC_HandleTypeDef structure that contains the configuration information for MMC module.
Return values
HALstatus

Definition at line 2473 of file stm32f4xx_hal_mmc.c.

◆ HAL_MMC_ConfigWideBusOperation()

HAL_StatusTypeDef HAL_MMC_ConfigWideBusOperation ( MMC_HandleTypeDef hmmc,
uint32_t  WideMode 
)

Enables wide bus operation for the requested card if supported by card.

Parameters
hmmcPointer to MMC handle
WideModeSpecifies the MMC card wide bus mode This parameter can be one of the following values:
  • SDIO_BUS_WIDE_8B: 8-bit data transfer
  • SDIO_BUS_WIDE_4B: 4-bit data transfer
  • SDIO_BUS_WIDE_1B: 1-bit data transfer
Return values
HALstatus

Definition at line 2294 of file stm32f4xx_hal_mmc.c.

◆ HAL_MMC_GetCardCID()

HAL_StatusTypeDef HAL_MMC_GetCardCID ( MMC_HandleTypeDef hmmc,
HAL_MMC_CardCIDTypeDef pCID 
)

Returns information the information of the card which are stored on the CID register.

Parameters
hmmcPointer to MMC handle
pCIDPointer to a HAL_MMC_CIDTypedef structure that contains all CID register parameters
Return values
HALstatus

Definition at line 2004 of file stm32f4xx_hal_mmc.c.

◆ HAL_MMC_GetCardCSD()

HAL_StatusTypeDef HAL_MMC_GetCardCSD ( MMC_HandleTypeDef hmmc,
HAL_MMC_CardCSDTypeDef pCSD 
)

Returns information the information of the card which are stored on the CSD register.

Parameters
hmmcPointer to MMC handle
pCSDPointer to a HAL_MMC_CardCSDTypeDef structure that contains all CSD register parameters
Return values
HALstatus

< Reserved

Definition at line 2037 of file stm32f4xx_hal_mmc.c.

◆ HAL_MMC_GetCardExtCSD()

HAL_StatusTypeDef HAL_MMC_GetCardExtCSD ( MMC_HandleTypeDef hmmc,
uint32_t *  pExtCSD,
uint32_t  Timeout 
)

Returns information the information of the card which are stored on the Extended CSD register.

Parameters
hmmcPointer to MMC handle
pExtCSDPointer to a memory area (512 bytes) that contains all Extended CSD register parameters
TimeoutSpecify timeout value
Return values
HALstatus

Definition at line 2176 of file stm32f4xx_hal_mmc.c.

◆ HAL_MMC_GetCardInfo()

HAL_StatusTypeDef HAL_MMC_GetCardInfo ( MMC_HandleTypeDef hmmc,
HAL_MMC_CardInfoTypeDef pCardInfo 
)

Gets the MMC card info.

Parameters
hmmcPointer to MMC handle
pCardInfoPointer to the HAL_MMC_CardInfoTypeDef structure that will contain the MMC card status information
Return values
HALstatus

Definition at line 2154 of file stm32f4xx_hal_mmc.c.

◆ HAL_MMC_GetCardState()

HAL_MMC_CardStateTypeDef HAL_MMC_GetCardState ( MMC_HandleTypeDef hmmc)

Gets the current mmc card data state.

Parameters
hmmcpointer to MMC handle
Return values
Cardstate

Definition at line 2393 of file stm32f4xx_hal_mmc.c.