|
STM32L4xx_HAL_Driver
1.14.0
|
Header file of SDMMC HAL module. More...
Go to the source code of this file.
Data Structures | |
| struct | SDMMC_CmdInitTypeDef |
| SDMMC Command Control structure. More... | |
| struct | SDMMC_DataInitTypeDef |
| SDMMC Data Control structure. More... | |
Functions | |
| HAL_StatusTypeDef | SDMMC_Init (SDMMC_TypeDef *SDMMCx, SDMMC_InitTypeDef Init) |
| Initializes the SDMMC according to the specified parameters in the SDMMC_InitTypeDef and create the associated handle. More... | |
| uint32_t | SDMMC_ReadFIFO (SDMMC_TypeDef *SDMMCx) |
| Read data (word) from Rx FIFO in blocking mode (polling) More... | |
| HAL_StatusTypeDef | SDMMC_WriteFIFO (SDMMC_TypeDef *SDMMCx, uint32_t *pWriteData) |
| Write data (word) to Tx FIFO in blocking mode (polling) More... | |
| HAL_StatusTypeDef | SDMMC_PowerState_ON (SDMMC_TypeDef *SDMMCx) |
| Set SDMMC Power state to ON. More... | |
| HAL_StatusTypeDef | SDMMC_PowerState_Cycle (SDMMC_TypeDef *SDMMCx) |
| Set SDMMC Power state to Power-Cycle. More... | |
| HAL_StatusTypeDef | SDMMC_PowerState_OFF (SDMMC_TypeDef *SDMMCx) |
| Set SDMMC Power state to OFF. More... | |
| uint32_t | SDMMC_GetPowerState (SDMMC_TypeDef *SDMMCx) |
| Get SDMMC Power state. More... | |
| HAL_StatusTypeDef | SDMMC_SendCommand (SDMMC_TypeDef *SDMMCx, SDMMC_CmdInitTypeDef *Command) |
| Configure the SDMMC command path according to the specified parameters in SDMMC_CmdInitTypeDef structure and send the command. More... | |
| uint8_t | SDMMC_GetCommandResponse (SDMMC_TypeDef *SDMMCx) |
| Return the command index of last command for which response received. More... | |
| uint32_t | SDMMC_GetResponse (SDMMC_TypeDef *SDMMCx, uint32_t Response) |
| Return the response received from the card for the last command. More... | |
| HAL_StatusTypeDef | SDMMC_ConfigData (SDMMC_TypeDef *SDMMCx, SDMMC_DataInitTypeDef *Data) |
| Configure the SDMMC data path according to the specified parameters in the SDMMC_DataInitTypeDef. More... | |
| uint32_t | SDMMC_GetDataCounter (SDMMC_TypeDef *SDMMCx) |
| Returns number of remaining data bytes to be transferred. More... | |
| uint32_t | SDMMC_GetFIFOCount (SDMMC_TypeDef *SDMMCx) |
| Get the FIFO data. More... | |
| HAL_StatusTypeDef | SDMMC_SetSDMMCReadWaitMode (SDMMC_TypeDef *SDMMCx, uint32_t SDMMC_ReadWaitMode) |
| Sets one of the two options of inserting read wait interval. More... | |
| uint32_t | SDMMC_CmdBlockLength (SDMMC_TypeDef *SDMMCx, uint32_t BlockSize) |
| Send the Data Block Lenght command and check the response. More... | |
| uint32_t | SDMMC_CmdReadSingleBlock (SDMMC_TypeDef *SDMMCx, uint32_t ReadAdd) |
| Send the Read Single Block command and check the response. More... | |
| uint32_t | SDMMC_CmdReadMultiBlock (SDMMC_TypeDef *SDMMCx, uint32_t ReadAdd) |
| Send the Read Multi Block command and check the response. More... | |
| uint32_t | SDMMC_CmdWriteSingleBlock (SDMMC_TypeDef *SDMMCx, uint32_t WriteAdd) |
| Send the Write Single Block command and check the response. More... | |
| uint32_t | SDMMC_CmdWriteMultiBlock (SDMMC_TypeDef *SDMMCx, uint32_t WriteAdd) |
| Send the Write Multi Block command and check the response. More... | |
| uint32_t | SDMMC_CmdEraseStartAdd (SDMMC_TypeDef *SDMMCx, uint32_t StartAdd) |
| Send the Start Address Erase command and check the response. More... | |
| uint32_t | SDMMC_CmdSDEraseStartAdd (SDMMC_TypeDef *SDMMCx, uint32_t StartAdd) |
| Send the Start Address Erase command for SD and check the response. More... | |
| uint32_t | SDMMC_CmdEraseEndAdd (SDMMC_TypeDef *SDMMCx, uint32_t EndAdd) |
| Send the End Address Erase command and check the response. More... | |
| uint32_t | SDMMC_CmdSDEraseEndAdd (SDMMC_TypeDef *SDMMCx, uint32_t EndAdd) |
| Send the End Address Erase command for SD and check the response. More... | |
| uint32_t | SDMMC_CmdErase (SDMMC_TypeDef *SDMMCx) |
| Send the Erase command and check the response. More... | |
| uint32_t | SDMMC_CmdStopTransfer (SDMMC_TypeDef *SDMMCx) |
| Send the Stop Transfer command and check the response. More... | |
| uint32_t | SDMMC_CmdSelDesel (SDMMC_TypeDef *SDMMCx, uint64_t Addr) |
| Send the Select Deselect command and check the response. More... | |
| uint32_t | SDMMC_CmdGoIdleState (SDMMC_TypeDef *SDMMCx) |
| Send the Go Idle State command and check the response. More... | |
| uint32_t | SDMMC_CmdOperCond (SDMMC_TypeDef *SDMMCx) |
| Send the Operating Condition command and check the response. More... | |
| uint32_t | SDMMC_CmdAppCommand (SDMMC_TypeDef *SDMMCx, uint32_t Argument) |
| Send the Application command to verify that that the next command is an application specific com-mand rather than a standard command and check the response. More... | |
| uint32_t | SDMMC_CmdAppOperCommand (SDMMC_TypeDef *SDMMCx, uint32_t Argument) |
| Send the command asking the accessed card to send its operating condition register (OCR) More... | |
| uint32_t | SDMMC_CmdBusWidth (SDMMC_TypeDef *SDMMCx, uint32_t BusWidth) |
| Send the Bus Width command and check the response. More... | |
| uint32_t | SDMMC_CmdSendSCR (SDMMC_TypeDef *SDMMCx) |
| Send the Send SCR command and check the response. More... | |
| uint32_t | SDMMC_CmdSendCID (SDMMC_TypeDef *SDMMCx) |
| Send the Send CID command and check the response. More... | |
| uint32_t | SDMMC_CmdSendCSD (SDMMC_TypeDef *SDMMCx, uint32_t Argument) |
| Send the Send CSD command and check the response. More... | |
| uint32_t | SDMMC_CmdSetRelAdd (SDMMC_TypeDef *SDMMCx, uint16_t *pRCA) |
| Send the Send CSD command and check the response. More... | |
| uint32_t | SDMMC_CmdSendStatus (SDMMC_TypeDef *SDMMCx, uint32_t Argument) |
| Send the Status command and check the response. More... | |
| uint32_t | SDMMC_CmdStatusRegister (SDMMC_TypeDef *SDMMCx) |
| Send the Status register command and check the response. More... | |
| uint32_t | SDMMC_CmdVoltageSwitch (SDMMC_TypeDef *SDMMCx) |
| Send the command asking the accessed card to send its operating condition register (OCR) More... | |
| uint32_t | SDMMC_CmdOpCondition (SDMMC_TypeDef *SDMMCx, uint32_t Argument) |
| Sends host capacity support information and activates the card's initialization process. Send SDMMC_CMD_SEND_OP_COND command. More... | |
| uint32_t | SDMMC_CmdSwitch (SDMMC_TypeDef *SDMMCx, uint32_t Argument) |
| Checks switchable function and switch card function. SDMMC_CMD_HS_SWITCH comand. More... | |
| uint32_t | SDMMC_CmdSendEXTCSD (SDMMC_TypeDef *SDMMCx, uint32_t Argument) |
| Send the Send EXT_CSD command and check the response. More... | |
Variables | |
| C | |
Header file of SDMMC HAL module.
This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause
Definition in file stm32l4xx_ll_sdmmc.h.
| struct SDMMC_CmdInitTypeDef |
SDMMC Command Control structure.
Definition at line 84 of file stm32l4xx_ll_sdmmc.h.
| Data Fields | ||
|---|---|---|
| uint32_t | Argument |
Specifies the SDMMC command argument which is sent to a card as part of a command message. If a command contains an argument, it must be loaded into this register before writing the command to the command register. |
| uint32_t | CmdIndex |
Specifies the SDMMC command index. It must be Min_Data = 0 and Max_Data = 64 |
| uint32_t | CPSM |
Specifies whether SDMMC Command path state machine (CPSM) is enabled or disabled. This parameter can be a value of CPSM State |
| uint32_t | Response |
Specifies the SDMMC response type. This parameter can be a value of Response Type |
| uint32_t | WaitForInterrupt |
Specifies whether SDMMC wait for interrupt request is enabled or disabled. This parameter can be a value of Wait Interrupt |
| struct SDMMC_DataInitTypeDef |
SDMMC Data Control structure.
Definition at line 110 of file stm32l4xx_ll_sdmmc.h.
| Data Fields | ||
|---|---|---|
| uint32_t | DataBlockSize |
Specifies the data block size for block transfer. This parameter can be a value of Data Block Size |
| uint32_t | DataLength |
Specifies the number of data bytes to be transferred. |
| uint32_t | DataTimeOut |
Specifies the data timeout period in card bus clock periods. |
| uint32_t | DPSM |
Specifies whether SDMMC Data path state machine (DPSM) is enabled or disabled. This parameter can be a value of DPSM State |
| uint32_t | TransferDir |
Specifies the data transfer direction, whether the transfer is a read or write. This parameter can be a value of Transfer Direction |
| uint32_t | TransferMode |
Specifies whether data transfer is in stream or block mode. This parameter can be a value of Transfer Type |
| C |