STM32F4xx_HAL_Driver  1.8.3

Data transfers functions. More...

+ Collaboration diagram for Command management functions:

Functions

uint32_t SDMMC_CmdBlockLength (SDIO_TypeDef *SDIOx, uint32_t BlockSize)
 Send the Data Block Length command and check the response. More...
 
uint32_t SDMMC_CmdReadSingleBlock (SDIO_TypeDef *SDIOx, uint32_t ReadAdd)
 Send the Read Single Block command and check the response. More...
 
uint32_t SDMMC_CmdReadMultiBlock (SDIO_TypeDef *SDIOx, uint32_t ReadAdd)
 Send the Read Multi Block command and check the response. More...
 
uint32_t SDMMC_CmdWriteSingleBlock (SDIO_TypeDef *SDIOx, uint32_t WriteAdd)
 Send the Write Single Block command and check the response. More...
 
uint32_t SDMMC_CmdWriteMultiBlock (SDIO_TypeDef *SDIOx, uint32_t WriteAdd)
 Send the Write Multi Block command and check the response. More...
 
uint32_t SDMMC_CmdEraseStartAdd (SDIO_TypeDef *SDIOx, uint32_t StartAdd)
 Send the Start Address Erase command and check the response. More...
 
uint32_t SDMMC_CmdSDEraseStartAdd (SDIO_TypeDef *SDIOx, uint32_t StartAdd)
 Send the Start Address Erase command for SD and check the response. More...
 
uint32_t SDMMC_CmdEraseEndAdd (SDIO_TypeDef *SDIOx, uint32_t EndAdd)
 Send the End Address Erase command and check the response. More...
 
uint32_t SDMMC_CmdSDEraseEndAdd (SDIO_TypeDef *SDIOx, uint32_t EndAdd)
 Send the End Address Erase command for SD and check the response. More...
 
uint32_t SDMMC_CmdErase (SDIO_TypeDef *SDIOx)
 Send the Erase command and check the response. More...
 
uint32_t SDMMC_CmdStopTransfer (SDIO_TypeDef *SDIOx)
 Send the Stop Transfer command and check the response. More...
 
uint32_t SDMMC_CmdSelDesel (SDIO_TypeDef *SDIOx, uint64_t Addr)
 Send the Select Deselect command and check the response. More...
 
uint32_t SDMMC_CmdGoIdleState (SDIO_TypeDef *SDIOx)
 Send the Go Idle State command and check the response. More...
 
uint32_t SDMMC_CmdOperCond (SDIO_TypeDef *SDIOx)
 Send the Operating Condition command and check the response. More...
 
uint32_t SDMMC_CmdAppCommand (SDIO_TypeDef *SDIOx, 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 (SDIO_TypeDef *SDIOx, uint32_t Argument)
 Send the command asking the accessed card to send its operating condition register (OCR) More...
 
uint32_t SDMMC_CmdBusWidth (SDIO_TypeDef *SDIOx, uint32_t BusWidth)
 Send the Bus Width command and check the response. More...
 
uint32_t SDMMC_CmdSendSCR (SDIO_TypeDef *SDIOx)
 Send the Send SCR command and check the response. More...
 
uint32_t SDMMC_CmdSendCID (SDIO_TypeDef *SDIOx)
 Send the Send CID command and check the response. More...
 
uint32_t SDMMC_CmdSendCSD (SDIO_TypeDef *SDIOx, uint32_t Argument)
 Send the Send CSD command and check the response. More...
 
uint32_t SDMMC_CmdSetRelAdd (SDIO_TypeDef *SDIOx, uint16_t *pRCA)
 Send the Send CSD command and check the response. More...
 
uint32_t SDMMC_CmdSetRelAddMmc (SDIO_TypeDef *SDIOx, uint16_t RCA)
 Send the Set Relative Address command to MMC card (not SD card). More...
 
uint32_t SDMMC_CmdSendStatus (SDIO_TypeDef *SDIOx, uint32_t Argument)
 Send the Status command and check the response. More...
 
uint32_t SDMMC_CmdStatusRegister (SDIO_TypeDef *SDIOx)
 Send the Status register command and check the response. More...
 
uint32_t SDMMC_CmdOpCondition (SDIO_TypeDef *SDIOx, 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 (SDIO_TypeDef *SDIOx, uint32_t Argument)
 Checks switchable function and switch card function. SDMMC_CMD_HS_SWITCH command. More...
 
uint32_t SDMMC_CmdSendEXTCSD (SDIO_TypeDef *SDIOx, uint32_t Argument)
 Send the Send EXT_CSD command and check the response. More...
 

Detailed Description

Data transfers functions.

 ===============================================================================
                   ##### Commands management functions #####
 ===============================================================================  
    [..]
    This subsection provides a set of functions allowing to manage the needed commands.


Function Documentation

◆ SDMMC_CmdAppCommand()

uint32_t SDMMC_CmdAppCommand ( SDIO_TypeDef *  SDIOx,
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.

Parameters
SDIOxPointer to SDIO register base
ArgumentCommand Argument
Return values
HALstatus

Definition at line 852 of file stm32f4xx_ll_sdmmc.c.

◆ SDMMC_CmdAppOperCommand()

uint32_t SDMMC_CmdAppOperCommand ( SDIO_TypeDef *  SDIOx,
uint32_t  Argument 
)

Send the command asking the accessed card to send its operating condition register (OCR)

Parameters
SDIOxPointer to SDIO register base
ArgumentCommand Argument
Return values
HALstatus

Definition at line 880 of file stm32f4xx_ll_sdmmc.c.

◆ SDMMC_CmdBlockLength()

uint32_t SDMMC_CmdBlockLength ( SDIO_TypeDef *  SDIOx,
uint32_t  BlockSize 
)

Send the Data Block Length command and check the response.

Parameters
SDIOxPointer to SDIO register base
Return values
HALstatus

Definition at line 509 of file stm32f4xx_ll_sdmmc.c.

◆ SDMMC_CmdBusWidth()

uint32_t SDMMC_CmdBusWidth ( SDIO_TypeDef *  SDIOx,
uint32_t  BusWidth 
)

Send the Bus Width command and check the response.

Parameters
SDIOxPointer to SDIO register base
BusWidthBusWidth
Return values
HALstatus

Definition at line 904 of file stm32f4xx_ll_sdmmc.c.

◆ SDMMC_CmdErase()

uint32_t SDMMC_CmdErase ( SDIO_TypeDef *  SDIOx)

Send the Erase command and check the response.

Parameters
SDIOxPointer to SDIO register base
Return values
HALstatus

Definition at line 725 of file stm32f4xx_ll_sdmmc.c.

◆ SDMMC_CmdEraseEndAdd()

uint32_t SDMMC_CmdEraseEndAdd ( SDIO_TypeDef *  SDIOx,
uint32_t  EndAdd 
)

Send the End Address Erase command and check the response.

Parameters
SDIOxPointer to SDIO register base
Return values
HALstatus

Definition at line 701 of file stm32f4xx_ll_sdmmc.c.

◆ SDMMC_CmdEraseStartAdd()

uint32_t SDMMC_CmdEraseStartAdd ( SDIO_TypeDef *  SDIOx,
uint32_t  StartAdd 
)

Send the Start Address Erase command and check the response.

Parameters
SDIOxPointer to SDIO register base
Return values
HALstatus

Definition at line 677 of file stm32f4xx_ll_sdmmc.c.

◆ SDMMC_CmdGoIdleState()

uint32_t SDMMC_CmdGoIdleState ( SDIO_TypeDef *  SDIOx)

Send the Go Idle State command and check the response.

Parameters
SDIOxPointer to SDIO register base
Return values
HALstatus

Definition at line 798 of file stm32f4xx_ll_sdmmc.c.

◆ SDMMC_CmdOpCondition()

uint32_t SDMMC_CmdOpCondition ( SDIO_TypeDef *  SDIOx,
uint32_t  Argument 
)

Sends host capacity support information and activates the card's initialization process. Send SDMMC_CMD_SEND_OP_COND command.

Parameters
SDIOxPointer to SDIO register base @parame Argument: Argument used for the command
Return values
HALstatus

Definition at line 1099 of file stm32f4xx_ll_sdmmc.c.

◆ SDMMC_CmdOperCond()

uint32_t SDMMC_CmdOperCond ( SDIO_TypeDef *  SDIOx)

Send the Operating Condition command and check the response.

Parameters
SDIOxPointer to SDIO register base
Return values
HALstatus

Definition at line 821 of file stm32f4xx_ll_sdmmc.c.

◆ SDMMC_CmdReadMultiBlock()

uint32_t SDMMC_CmdReadMultiBlock ( SDIO_TypeDef *  SDIOx,
uint32_t  ReadAdd 
)

Send the Read Multi Block command and check the response.

Parameters
SDIOxPointer to SDIO register base
Return values
HALstatus

Definition at line 557 of file stm32f4xx_ll_sdmmc.c.

◆ SDMMC_CmdReadSingleBlock()

uint32_t SDMMC_CmdReadSingleBlock ( SDIO_TypeDef *  SDIOx,
uint32_t  ReadAdd 
)

Send the Read Single Block command and check the response.

Parameters
SDIOxPointer to SDIO register base
Return values
HALstatus

Definition at line 533 of file stm32f4xx_ll_sdmmc.c.

◆ SDMMC_CmdSDEraseEndAdd()

uint32_t SDMMC_CmdSDEraseEndAdd ( SDIO_TypeDef *  SDIOx,
uint32_t  EndAdd 
)

Send the End Address Erase command for SD and check the response.

Parameters
SDIOxPointer to SDIO register base
Return values
HALstatus

Definition at line 653 of file stm32f4xx_ll_sdmmc.c.

◆ SDMMC_CmdSDEraseStartAdd()

uint32_t SDMMC_CmdSDEraseStartAdd ( SDIO_TypeDef *  SDIOx,
uint32_t  StartAdd 
)

Send the Start Address Erase command for SD and check the response.

Parameters
SDIOxPointer to SDIO register base
Return values
HALstatus

Definition at line 629 of file stm32f4xx_ll_sdmmc.c.

◆ SDMMC_CmdSelDesel()

uint32_t SDMMC_CmdSelDesel ( SDIO_TypeDef *  SDIOx,
uint64_t  Addr 
)

Send the Select Deselect command and check the response.

Parameters
SDIOxPointer to SDIO register base
addrAddress of the card to be selected
Return values
HALstatus

Definition at line 774 of file stm32f4xx_ll_sdmmc.c.

◆ SDMMC_CmdSendCID()

uint32_t SDMMC_CmdSendCID ( SDIO_TypeDef *  SDIOx)

Send the Send CID command and check the response.

Parameters
SDIOxPointer to SDIO register base
Return values
HALstatus

Definition at line 951 of file stm32f4xx_ll_sdmmc.c.

◆ SDMMC_CmdSendCSD()

uint32_t SDMMC_CmdSendCSD ( SDIO_TypeDef *  SDIOx,
uint32_t  Argument 
)

Send the Send CSD command and check the response.

Parameters
SDIOxPointer to SDIO register base
ArgumentCommand Argument
Return values
HALstatus

Definition at line 976 of file stm32f4xx_ll_sdmmc.c.

◆ SDMMC_CmdSendEXTCSD()

uint32_t SDMMC_CmdSendEXTCSD ( SDIO_TypeDef *  SDIOx,
uint32_t  Argument 
)

Send the Send EXT_CSD command and check the response.

Parameters
SDIOxPointer to SDMMC register base
ArgumentCommand Argument
Return values
HALstatus

Definition at line 1149 of file stm32f4xx_ll_sdmmc.c.

◆ SDMMC_CmdSendSCR()

uint32_t SDMMC_CmdSendSCR ( SDIO_TypeDef *  SDIOx)

Send the Send SCR command and check the response.

Parameters
SDIOxPointer to SDIO register base
Return values
HALstatus

Definition at line 927 of file stm32f4xx_ll_sdmmc.c.

◆ SDMMC_CmdSendStatus()

uint32_t SDMMC_CmdSendStatus ( SDIO_TypeDef *  SDIOx,
uint32_t  Argument 
)

Send the Status command and check the response.

Parameters
SDIOxPointer to SDIO register base
ArgumentCommand Argument
Return values
HALstatus

Definition at line 1051 of file stm32f4xx_ll_sdmmc.c.

◆ SDMMC_CmdSetRelAdd()

uint32_t SDMMC_CmdSetRelAdd ( SDIO_TypeDef *  SDIOx,
uint16_t *  pRCA 
)

Send the Send CSD command and check the response.

Parameters
SDIOxPointer to SDIO register base
pRCACard RCA
Return values
HALstatus

Definition at line 1001 of file stm32f4xx_ll_sdmmc.c.

◆ SDMMC_CmdSetRelAddMmc()

uint32_t SDMMC_CmdSetRelAddMmc ( SDIO_TypeDef *  SDIOx,
uint16_t  RCA 
)

Send the Set Relative Address command to MMC card (not SD card).

Parameters
SDIOxPointer to SDIO register base
RCACard RCA
Return values
HALstatus

Definition at line 1026 of file stm32f4xx_ll_sdmmc.c.

◆ SDMMC_CmdStatusRegister()

uint32_t SDMMC_CmdStatusRegister ( SDIO_TypeDef *  SDIOx)

Send the Status register command and check the response.

Parameters
SDIOxPointer to SDIO register base
Return values
HALstatus

Definition at line 1074 of file stm32f4xx_ll_sdmmc.c.

◆ SDMMC_CmdStopTransfer()

uint32_t SDMMC_CmdStopTransfer ( SDIO_TypeDef *  SDIOx)

Send the Stop Transfer command and check the response.

Parameters
SDIOxPointer to SDIO register base
Return values
HALstatus

Definition at line 749 of file stm32f4xx_ll_sdmmc.c.

◆ SDMMC_CmdSwitch()

uint32_t SDMMC_CmdSwitch ( SDIO_TypeDef *  SDIOx,
uint32_t  Argument 
)

Checks switchable function and switch card function. SDMMC_CMD_HS_SWITCH command.

Parameters
SDIOxPointer to SDIO register base @parame Argument: Argument used for the command
Return values
HALstatus

Definition at line 1123 of file stm32f4xx_ll_sdmmc.c.

◆ SDMMC_CmdWriteMultiBlock()

uint32_t SDMMC_CmdWriteMultiBlock ( SDIO_TypeDef *  SDIOx,
uint32_t  WriteAdd 
)

Send the Write Multi Block command and check the response.

Parameters
SDIOxPointer to SDIO register base
Return values
HALstatus

Definition at line 605 of file stm32f4xx_ll_sdmmc.c.

◆ SDMMC_CmdWriteSingleBlock()

uint32_t SDMMC_CmdWriteSingleBlock ( SDIO_TypeDef *  SDIOx,
uint32_t  WriteAdd 
)

Send the Write Single Block command and check the response.

Parameters
SDIOxPointer to SDIO register base
Return values
HALstatus

Definition at line 581 of file stm32f4xx_ll_sdmmc.c.