STM32H735xx HAL User Manual
Functions
MMC Private Functions
MMC | MMC Exported Functions

Functions

static uint32_t MMC_InitCard (MMC_HandleTypeDef *hmmc)
 Initializes the mmc card.
static uint32_t MMC_PowerON (MMC_HandleTypeDef *hmmc)
 Enquires cards about their operating voltage and configures clock controls and stores MMC information that will be needed in future in the MMC handle.
static uint32_t MMC_SendStatus (MMC_HandleTypeDef *hmmc, uint32_t *pCardStatus)
 Returns the current card's status.
static void MMC_PowerOFF (MMC_HandleTypeDef *hmmc)
 Turns the SDMMC output signals off.
static void MMC_Write_IT (MMC_HandleTypeDef *hmmc)
 Wrap up writing in non-blocking mode.
static void MMC_Read_IT (MMC_HandleTypeDef *hmmc)
 Wrap up reading in non-blocking mode.
static uint32_t MMC_HighSpeed (MMC_HandleTypeDef *hmmc, FunctionalState state)
 Switches the MMC card to high speed mode.
static uint32_t MMC_DDR_Mode (MMC_HandleTypeDef *hmmc, FunctionalState state)
 Switches the MMC card to Double Data Rate (DDR) mode.
static HAL_StatusTypeDef MMC_ReadExtCSD (MMC_HandleTypeDef *hmmc, uint32_t *pFieldData, uint16_t FieldIndex, uint32_t Timeout)
 Reads extended CSD register to get the sectors number of the device.
static uint32_t MMC_PwrClassUpdate (MMC_HandleTypeDef *hmmc, uint32_t Wide, uint32_t Speed)
 Update the power class of the device.
__weak void HAL_MMCEx_Read_DMADoubleBuf0CpltCallback (MMC_HandleTypeDef *hmmc)
 Read DMA Buffer 0 Transfer completed callbacks.
__weak void HAL_MMCEx_Read_DMADoubleBuf1CpltCallback (MMC_HandleTypeDef *hmmc)
 Read DMA Buffer 1 Transfer completed callbacks.
__weak void HAL_MMCEx_Write_DMADoubleBuf0CpltCallback (MMC_HandleTypeDef *hmmc)
 Write DMA Buffer 0 Transfer completed callbacks.
__weak void HAL_MMCEx_Write_DMADoubleBuf1CpltCallback (MMC_HandleTypeDef *hmmc)
 Write DMA Buffer 1 Transfer completed callbacks.

Function Documentation

Read DMA Buffer 0 Transfer completed callbacks.

Parameters:
hmmc,:MMC handle
Return values:
None

Definition at line 4225 of file stm32h7xx_hal_mmc.c.

Referenced by HAL_MMC_Init(), HAL_MMC_IRQHandler(), and HAL_MMC_UnRegisterCallback().

Read DMA Buffer 1 Transfer completed callbacks.

Parameters:
hmmc,:MMC handle
Return values:
None

Definition at line 4240 of file stm32h7xx_hal_mmc.c.

Referenced by HAL_MMC_Init(), HAL_MMC_IRQHandler(), and HAL_MMC_UnRegisterCallback().

Write DMA Buffer 0 Transfer completed callbacks.

Parameters:
hmmc,:MMC handle
Return values:
None

Definition at line 4255 of file stm32h7xx_hal_mmc.c.

Referenced by HAL_MMC_Init(), HAL_MMC_IRQHandler(), and HAL_MMC_UnRegisterCallback().

Write DMA Buffer 1 Transfer completed callbacks.

Parameters:
hmmc,:MMC handle
Return values:
None

Definition at line 4270 of file stm32h7xx_hal_mmc.c.

Referenced by HAL_MMC_Init(), HAL_MMC_IRQHandler(), and HAL_MMC_UnRegisterCallback().

static uint32_t MMC_DDR_Mode ( MMC_HandleTypeDef hmmc,
FunctionalState  state 
) [static]

Switches the MMC card to Double Data Rate (DDR) mode.

Parameters:
hmmc,:MMC handle
state,:State of DDR mode
Return values:
MMCCard error state

Definition at line 4015 of file stm32h7xx_hal_mmc.c.

References HAL_MMC_ERROR_NONE, __MMC_HandleTypeDef::Instance, MMC_PwrClassUpdate(), __MMC_HandleTypeDef::MmcCard, and HAL_MMC_CardInfoTypeDef::RelCardAdd.

Referenced by HAL_MMC_ConfigSpeedBusOperation().

static uint32_t MMC_HighSpeed ( MMC_HandleTypeDef hmmc,
FunctionalState  state 
) [static]

Switches the MMC card to high speed mode.

Parameters:
hmmc,:MMC handle
state,:State of high speed mode
Return values:
MMCCard error state

Definition at line 3902 of file stm32h7xx_hal_mmc.c.

References HAL_MMC_ERROR_NONE, HAL_RCCEx_GetPeriphCLKFreq(), __MMC_HandleTypeDef::Init, __MDMA_HandleTypeDef::Init, __MMC_HandleTypeDef::Instance, MMC_HIGH_SPEED_FREQ, MMC_PwrClassUpdate(), __MMC_HandleTypeDef::MmcCard, RCC_PERIPHCLK_SDMMC, and HAL_MMC_CardInfoTypeDef::RelCardAdd.

Referenced by HAL_MMC_ConfigSpeedBusOperation().

static uint32_t MMC_InitCard ( MMC_HandleTypeDef hmmc) [static]
static void MMC_PowerOFF ( MMC_HandleTypeDef hmmc) [static]

Turns the SDMMC output signals off.

Parameters:
hmmc,:Pointer to MMC handle
Return values:
None

Definition at line 3673 of file stm32h7xx_hal_mmc.c.

References __MMC_HandleTypeDef::Instance.

Referenced by HAL_MMC_DeInit().

static uint32_t MMC_PowerON ( MMC_HandleTypeDef hmmc) [static]

Enquires cards about their operating voltage and configures clock controls and stores MMC information that will be needed in future in the MMC handle.

Parameters:
hmmc,:Pointer to MMC handle
Return values:
errorstate

Definition at line 3620 of file stm32h7xx_hal_mmc.c.

References HAL_MMC_CardInfoTypeDef::CardType, HAL_MMC_ERROR_INVALID_VOLTRANGE, HAL_MMC_ERROR_NONE, HAL_MMC_ERROR_UNSUPPORTED_FEATURE, __MMC_HandleTypeDef::Instance, MMC_HIGH_CAPACITY_CARD, MMC_LOW_CAPACITY_CARD, MMC_VOLTAGE_RANGE, and __MMC_HandleTypeDef::MmcCard.

Referenced by HAL_MMC_InitCard().

static uint32_t MMC_PwrClassUpdate ( MMC_HandleTypeDef hmmc,
uint32_t  Wide,
uint32_t  Speed 
) [static]
static void MMC_Read_IT ( MMC_HandleTypeDef hmmc) [static]

Wrap up reading in non-blocking mode.

Parameters:
hmmc,:pointer to a MMC_HandleTypeDef structure that contains the configuration information.
Return values:
None

Definition at line 3832 of file stm32h7xx_hal_mmc.c.

References __MMC_HandleTypeDef::Instance, __MMC_HandleTypeDef::pRxBuffPtr, and __MMC_HandleTypeDef::RxXferSize.

Referenced by HAL_MMC_IRQHandler().

static HAL_StatusTypeDef MMC_ReadExtCSD ( MMC_HandleTypeDef hmmc,
uint32_t *  pFieldData,
uint16_t  FieldIndex,
uint32_t  Timeout 
) [static]

Reads extended CSD register to get the sectors number of the device.

Parameters:
hmmc,:Pointer to MMC handle
pFieldData,:Pointer to the read buffer
FieldIndex,:Index of the field to be read
Timeout,:Specify timeout value
Return values:
HALstatus

Definition at line 3716 of file stm32h7xx_hal_mmc.c.

References __HAL_MMC_CLEAR_FLAG, __HAL_MMC_GET_FLAG, __MMC_HandleTypeDef::ErrorCode, HAL_GetTick(), HAL_MMC_ERROR_DATA_CRC_FAIL, HAL_MMC_ERROR_DATA_TIMEOUT, HAL_MMC_ERROR_NONE, HAL_MMC_ERROR_RX_OVERRUN, HAL_MMC_ERROR_TIMEOUT, HAL_MMC_STATE_READY, __MMC_HandleTypeDef::Instance, __MMC_HandleTypeDef::MmcCard, HAL_MMC_CardInfoTypeDef::RelCardAdd, and __MMC_HandleTypeDef::State.

Referenced by HAL_MMC_GetCardCSD(), and MMC_PwrClassUpdate().

static uint32_t MMC_SendStatus ( MMC_HandleTypeDef hmmc,
uint32_t *  pCardStatus 
) [static]

Returns the current card's status.

Parameters:
hmmc,:Pointer to MMC handle
pCardStatus,:pointer to the buffer that will contain the MMC card status (Card Status register)
Return values:
errorstate

Definition at line 3686 of file stm32h7xx_hal_mmc.c.

References HAL_MMC_ERROR_NONE, HAL_MMC_ERROR_PARAM, __MMC_HandleTypeDef::Instance, __MMC_HandleTypeDef::MmcCard, and HAL_MMC_CardInfoTypeDef::RelCardAdd.

Referenced by HAL_MMC_GetCardState().

static void MMC_Write_IT ( MMC_HandleTypeDef hmmc) [static]

Wrap up writing in non-blocking mode.

Parameters:
hmmc,:pointer to a MMC_HandleTypeDef structure that contains the configuration information.
Return values:
None

Definition at line 3867 of file stm32h7xx_hal_mmc.c.

References __MMC_HandleTypeDef::Instance, __MMC_HandleTypeDef::pTxBuffPtr, and __MMC_HandleTypeDef::TxXferSize.

Referenced by HAL_MMC_IRQHandler().