STM32H735xx HAL User Manual
|
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. |
__weak void HAL_MMCEx_Read_DMADoubleBuf0CpltCallback | ( | MMC_HandleTypeDef * | hmmc | ) |
Read DMA Buffer 0 Transfer completed callbacks.
hmmc,: | MMC handle |
None |
Definition at line 4225 of file stm32h7xx_hal_mmc.c.
Referenced by HAL_MMC_Init(), HAL_MMC_IRQHandler(), and HAL_MMC_UnRegisterCallback().
__weak void HAL_MMCEx_Read_DMADoubleBuf1CpltCallback | ( | MMC_HandleTypeDef * | hmmc | ) |
Read DMA Buffer 1 Transfer completed callbacks.
hmmc,: | MMC handle |
None |
Definition at line 4240 of file stm32h7xx_hal_mmc.c.
Referenced by HAL_MMC_Init(), HAL_MMC_IRQHandler(), and HAL_MMC_UnRegisterCallback().
__weak void HAL_MMCEx_Write_DMADoubleBuf0CpltCallback | ( | MMC_HandleTypeDef * | hmmc | ) |
Write DMA Buffer 0 Transfer completed callbacks.
hmmc,: | MMC handle |
None |
Definition at line 4255 of file stm32h7xx_hal_mmc.c.
Referenced by HAL_MMC_Init(), HAL_MMC_IRQHandler(), and HAL_MMC_UnRegisterCallback().
__weak void HAL_MMCEx_Write_DMADoubleBuf1CpltCallback | ( | MMC_HandleTypeDef * | hmmc | ) |
Write DMA Buffer 1 Transfer completed callbacks.
hmmc,: | MMC handle |
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.
hmmc,: | MMC handle |
state,: | State of DDR mode |
MMC | Card 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.
hmmc,: | MMC handle |
state,: | State of high speed mode |
MMC | Card 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] |
Initializes the mmc card.
hmmc,: | Pointer to MMC handle |
MMC | Card error state |
Definition at line 3512 of file stm32h7xx_hal_mmc.c.
References __MMC_HandleTypeDef::CID, HAL_MMC_CardInfoTypeDef::Class, __MMC_HandleTypeDef::CSD, __MMC_HandleTypeDef::ErrorCode, __MMC_HandleTypeDef::Ext_CSD, HAL_MMC_ERROR_NONE, HAL_MMC_ERROR_REQUEST_NOT_APPLICABLE, HAL_MMC_GetCardCSD(), HAL_MMC_GetCardExtCSD(), __MMC_HandleTypeDef::Init, __MDMA_HandleTypeDef::Init, __MMC_HandleTypeDef::Instance, MMC_InitTypeDef, __MMC_HandleTypeDef::MmcCard, and HAL_MMC_CardInfoTypeDef::RelCardAdd.
Referenced by HAL_MMC_InitCard().
static void MMC_PowerOFF | ( | MMC_HandleTypeDef * | hmmc | ) | [static] |
Turns the SDMMC output signals off.
hmmc,: | Pointer to MMC handle |
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.
hmmc,: | Pointer to MMC handle |
error | state |
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] |
Update the power class of the device.
hmmc | MMC handle |
Wide | Wide of MMC bus |
Speed | Speed of the MMC bus |
MMC | Card error state |
Definition at line 4123 of file stm32h7xx_hal_mmc.c.
References __MMC_HandleTypeDef::Ext_CSD, HAL_MMC_ERROR_NONE, __MMC_HandleTypeDef::Instance, MMC_EXT_CSD_PWR_CL_26_INDEX, MMC_EXT_CSD_PWR_CL_26_POS, MMC_EXT_CSD_PWR_CL_52_INDEX, MMC_EXT_CSD_PWR_CL_52_POS, MMC_EXT_CSD_PWR_CL_DDR_52_INDEX, MMC_EXT_CSD_PWR_CL_DDR_52_POS, MMC_ReadExtCSD(), __MMC_HandleTypeDef::MmcCard, and HAL_MMC_CardInfoTypeDef::RelCardAdd.
Referenced by HAL_MMC_ConfigWideBusOperation(), MMC_DDR_Mode(), and MMC_HighSpeed().
static void MMC_Read_IT | ( | MMC_HandleTypeDef * | hmmc | ) | [static] |
Wrap up reading in non-blocking mode.
hmmc,: | pointer to a MMC_HandleTypeDef structure that contains the configuration information. |
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.
hmmc,: | Pointer to MMC handle |
pFieldData,: | Pointer to the read buffer |
FieldIndex,: | Index of the field to be read |
Timeout,: | Specify timeout value |
HAL | status |
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.
hmmc,: | Pointer to MMC handle |
pCardStatus,: | pointer to the buffer that will contain the MMC card status (Card Status register) |
error | state |
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.
hmmc,: | pointer to a MMC_HandleTypeDef structure that contains the configuration information. |
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().