STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches
Collaboration diagram for MMC Private 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 uint32_t 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 void MMC_PowerOFF (MMC_HandleTypeDef *hmmc)
 Turns the SDIO 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 void MMC_DMATransmitCplt (DMA_HandleTypeDef *hdma)
 DMA MMC transmit process complete callback.
 
static void MMC_DMAReceiveCplt (DMA_HandleTypeDef *hdma)
 DMA MMC receive process complete callback.
 
static void MMC_DMAError (DMA_HandleTypeDef *hdma)
 DMA MMC communication error callback.
 
static void MMC_DMATxAbort (DMA_HandleTypeDef *hdma)
 DMA MMC Tx Abort callback.
 
static void MMC_DMARxAbort (DMA_HandleTypeDef *hdma)
 DMA MMC Rx Abort callback.
 
static uint32_t MMC_PwrClassUpdate (MMC_HandleTypeDef *hmmc, uint32_t Wide)
 Update the power class of the device.
 

Detailed Description

Function Documentation

◆ MMC_InitCard()

◆ MMC_PowerON()

static uint32_t MMC_PowerON ( MMC_HandleTypeDef * hmmc)
static

#include <stm32f4xx_hal_mmc.c>

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
hmmcPointer to MMC handle
Return values
errorstate

Definition at line 2848 of file stm32f4xx_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().

◆ MMC_SendStatus()

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

#include <stm32f4xx_hal_mmc.c>

Returns the current card's status.

Parameters
hmmcPointer to MMC handle
pCardStatuspointer to the buffer that will contain the MMC card status (Card Status register)
Return values
errorstate

Definition at line 2913 of file stm32f4xx_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().

◆ MMC_ReadExtCSD()

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

#include <stm32f4xx_hal_mmc.c>

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

Parameters
hmmcPointer to MMC handle
pFieldDataPointer to the read buffer
FieldIndexIndex of the field to be read
TimeoutSpecify timeout value
Return values
HALstatus

Definition at line 2943 of file stm32f4xx_hal_mmc.c.

References __HAL_MMC_CLEAR_FLAG, __HAL_MMC_GET_FLAG, MMC_HandleTypeDef::ErrorCode, HAL_ERROR, HAL_GetTick(), HAL_MMC_ERROR_NONE, HAL_MMC_ERROR_TIMEOUT, HAL_MMC_STATE_READY, HAL_OK, HAL_TIMEOUT, MMC_HandleTypeDef::Instance, MMC_HandleTypeDef::MmcCard, HAL_MMC_CardInfoTypeDef::RelCardAdd, and MMC_HandleTypeDef::State.

Referenced by HAL_MMC_GetCardCSD(), and MMC_PwrClassUpdate().

◆ MMC_PowerOFF()

static void MMC_PowerOFF ( MMC_HandleTypeDef * hmmc)
static

#include <stm32f4xx_hal_mmc.c>

Turns the SDIO output signals off.

Parameters
hmmcPointer to MMC handle
Return values
None

Definition at line 2900 of file stm32f4xx_hal_mmc.c.

References MMC_HandleTypeDef::Instance.

Referenced by HAL_MMC_DeInit().

◆ MMC_Write_IT()

static void MMC_Write_IT ( MMC_HandleTypeDef * hmmc)
static

#include <stm32f4xx_hal_mmc.c>

Wrap up writing in non-blocking mode.

Parameters
hmmcpointer to a MMC_HandleTypeDef structure that contains the configuration information.
Return values
None

Definition at line 3067 of file stm32f4xx_hal_mmc.c.

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

Referenced by HAL_MMC_IRQHandler().

◆ MMC_Read_IT()

static void MMC_Read_IT ( MMC_HandleTypeDef * hmmc)
static

#include <stm32f4xx_hal_mmc.c>

Wrap up reading in non-blocking mode.

Parameters
hmmcpointer to a MMC_HandleTypeDef structure that contains the configuration information.
Return values
None

Definition at line 3028 of file stm32f4xx_hal_mmc.c.

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

Referenced by HAL_MMC_IRQHandler().

◆ MMC_DMATransmitCplt()

static void MMC_DMATransmitCplt ( DMA_HandleTypeDef * hdma)
static

#include <stm32f4xx_hal_mmc.c>

DMA MMC transmit process complete callback.

Parameters
hdmaDMA handle
Return values
None

Definition at line 2554 of file stm32f4xx_hal_mmc.c.

References __HAL_MMC_ENABLE_IT, and __DMA_HandleTypeDef::Parent.

Referenced by HAL_MMC_WriteBlocks_DMA().

◆ MMC_DMAReceiveCplt()

◆ MMC_DMAError()

◆ MMC_DMATxAbort()

◆ MMC_DMARxAbort()

◆ MMC_PwrClassUpdate()

static uint32_t MMC_PwrClassUpdate ( MMC_HandleTypeDef * hmmc,
uint32_t Wide )
static

#include <stm32f4xx_hal_mmc.c>

Update the power class of the device.

Parameters
hmmcMMC handle
WideWide of MMC bus
SpeedSpeed of the MMC bus
Return values
MMCCard error state

Definition at line 3107 of file stm32f4xx_hal_mmc.c.

References MMC_HandleTypeDef::Ext_CSD, HAL_MMC_ERROR_NONE, HAL_OK, MMC_HandleTypeDef::Instance, MMC_EXT_CSD_PWR_CL_26_INDEX, MMC_EXT_CSD_PWR_CL_26_POS, MMC_ReadExtCSD(), MMC_HandleTypeDef::MmcCard, and HAL_MMC_CardInfoTypeDef::RelCardAdd.

Referenced by HAL_MMC_ConfigWideBusOperation().