STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
|
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. | |
|
static |
#include <stm32f4xx_hal_mmc.c>
Initializes the mmc card.
hmmc | Pointer to MMC handle |
MMC | Card error state |
Definition at line 2741 of file stm32f4xx_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(), HAL_OK, MMC_HandleTypeDef::Init, MMC_HandleTypeDef::Instance, MMC_InitTypeDef, MMC_HandleTypeDef::MmcCard, and HAL_MMC_CardInfoTypeDef::RelCardAdd.
Referenced by HAL_MMC_InitCard().
|
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.
hmmc | Pointer to MMC handle |
error | state |
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().
|
static |
#include <stm32f4xx_hal_mmc.c>
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 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().
|
static |
#include <stm32f4xx_hal_mmc.c>
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 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().
|
static |
#include <stm32f4xx_hal_mmc.c>
Turns the SDIO output signals off.
hmmc | Pointer to MMC handle |
None |
Definition at line 2900 of file stm32f4xx_hal_mmc.c.
References MMC_HandleTypeDef::Instance.
Referenced by HAL_MMC_DeInit().
|
static |
#include <stm32f4xx_hal_mmc.c>
Wrap up writing in non-blocking mode.
hmmc | pointer to a MMC_HandleTypeDef structure that contains the configuration information. |
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().
|
static |
#include <stm32f4xx_hal_mmc.c>
Wrap up reading in non-blocking mode.
hmmc | pointer to a MMC_HandleTypeDef structure that contains the configuration information. |
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().
|
static |
#include <stm32f4xx_hal_mmc.c>
DMA MMC transmit process complete callback.
hdma | DMA handle |
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().
|
static |
#include <stm32f4xx_hal_mmc.c>
DMA MMC receive process complete callback.
hdma | DMA handle |
None |
Definition at line 2567 of file stm32f4xx_hal_mmc.c.
References __HAL_MMC_CLEAR_FLAG, MMC_HandleTypeDef::Context, MMC_HandleTypeDef::ErrorCode, HAL_MMC_ERROR_NONE, HAL_MMC_ErrorCallback(), HAL_MMC_RxCpltCallback(), HAL_MMC_STATE_READY, MMC_HandleTypeDef::Instance, MMC_CONTEXT_DMA, MMC_CONTEXT_READ_MULTIPLE_BLOCK, __DMA_HandleTypeDef::Parent, and MMC_HandleTypeDef::State.
Referenced by HAL_MMC_ReadBlocks_DMA().
|
static |
#include <stm32f4xx_hal_mmc.c>
DMA MMC communication error callback.
hdma | DMA handle |
None |
Definition at line 2608 of file stm32f4xx_hal_mmc.c.
References __HAL_MMC_CLEAR_FLAG, __HAL_MMC_DISABLE_IT, __DMA_HandleTypeDef::ErrorCode, MMC_HandleTypeDef::ErrorCode, HAL_DMA_ERROR_FE, HAL_DMA_ERROR_TE, HAL_DMA_GetError(), HAL_MMC_CARD_RECEIVING, HAL_MMC_CARD_SENDING, HAL_MMC_ERROR_DMA, HAL_MMC_ErrorCallback(), HAL_MMC_GetCardState(), HAL_MMC_STATE_READY, MMC_HandleTypeDef::hdmarx, MMC_HandleTypeDef::hdmatx, MMC_HandleTypeDef::Instance, __DMA_HandleTypeDef::Parent, and MMC_HandleTypeDef::State.
Referenced by HAL_MMC_ReadBlocks_DMA(), and HAL_MMC_WriteBlocks_DMA().
|
static |
#include <stm32f4xx_hal_mmc.c>
DMA MMC Tx Abort callback.
hdma | DMA handle |
None |
Definition at line 2651 of file stm32f4xx_hal_mmc.c.
References MMC_HandleTypeDef::ErrorCode, HAL_MMC_AbortCallback(), HAL_MMC_CARD_RECEIVING, HAL_MMC_CARD_SENDING, HAL_MMC_ERROR_NONE, HAL_MMC_ErrorCallback(), HAL_MMC_GetCardState(), HAL_MMC_STATE_READY, MMC_HandleTypeDef::hdmarx, MMC_HandleTypeDef::hdmatx, MMC_HandleTypeDef::Instance, __DMA_HandleTypeDef::Parent, and MMC_HandleTypeDef::State.
Referenced by HAL_MMC_Abort_IT(), and HAL_MMC_IRQHandler().
|
static |
#include <stm32f4xx_hal_mmc.c>
DMA MMC Rx Abort callback.
hdma | DMA handle |
None |
Definition at line 2696 of file stm32f4xx_hal_mmc.c.
References MMC_HandleTypeDef::ErrorCode, HAL_MMC_AbortCallback(), HAL_MMC_CARD_RECEIVING, HAL_MMC_CARD_SENDING, HAL_MMC_ERROR_NONE, HAL_MMC_ErrorCallback(), HAL_MMC_GetCardState(), HAL_MMC_STATE_READY, MMC_HandleTypeDef::hdmarx, MMC_HandleTypeDef::hdmatx, MMC_HandleTypeDef::Instance, __DMA_HandleTypeDef::Parent, and MMC_HandleTypeDef::State.
Referenced by HAL_MMC_Abort_IT(), and HAL_MMC_IRQHandler().
|
static |
#include <stm32f4xx_hal_mmc.c>
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 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().