STM32F4xx_HAL_Driver  1.8.3

management functions More...

+ Collaboration diagram for Peripheral Control functions:

Functions

HAL_StatusTypeDef SDIO_PowerState_ON (SDIO_TypeDef *SDIOx)
 Set SDMMC Power state to ON. More...
 
HAL_StatusTypeDef SDIO_PowerState_OFF (SDIO_TypeDef *SDIOx)
 Set SDMMC Power state to OFF. More...
 
uint32_t SDIO_GetPowerState (SDIO_TypeDef *SDIOx)
 Get SDMMC Power state. More...
 
HAL_StatusTypeDef SDIO_SendCommand (SDIO_TypeDef *SDIOx, SDIO_CmdInitTypeDef *Command)
 Configure the SDMMC command path according to the specified parameters in SDIO_CmdInitTypeDef structure and send the command. More...
 
uint8_t SDIO_GetCommandResponse (SDIO_TypeDef *SDIOx)
 Return the command index of last command for which response received. More...
 
uint32_t SDIO_GetResponse (SDIO_TypeDef *SDIOx, uint32_t Response)
 Return the response received from the card for the last command. More...
 
HAL_StatusTypeDef SDIO_ConfigData (SDIO_TypeDef *SDIOx, SDIO_DataInitTypeDef *Data)
 Configure the SDMMC data path according to the specified parameters in the SDIO_DataInitTypeDef. More...
 
uint32_t SDIO_GetDataCounter (SDIO_TypeDef *SDIOx)
 Returns number of remaining data bytes to be transferred. More...
 
uint32_t SDIO_GetFIFOCount (SDIO_TypeDef *SDIOx)
 Get the FIFO data. More...
 
HAL_StatusTypeDef SDIO_SetSDMMCReadWaitMode (SDIO_TypeDef *SDIOx, uint32_t SDIO_ReadWaitMode)
 Sets one of the two options of inserting read wait interval. More...
 

Detailed Description

management functions

 ===============================================================================
                      ##### Peripheral Control functions #####
 ===============================================================================  
    [..]
    This subsection provides a set of functions allowing to control the SDMMC data 
    transfers.


Function Documentation

◆ SDIO_ConfigData()

HAL_StatusTypeDef SDIO_ConfigData ( SDIO_TypeDef *  SDIOx,
SDIO_DataInitTypeDef Data 
)

Configure the SDMMC data path according to the specified parameters in the SDIO_DataInitTypeDef.

Parameters
SDIOxPointer to SDIO register base
Data: pointer to a SDIO_DataInitTypeDef structure that contains the configuration information for the SDMMC data.
Return values
HALstatus

Definition at line 415 of file stm32f4xx_ll_sdmmc.c.

◆ SDIO_GetCommandResponse()

uint8_t SDIO_GetCommandResponse ( SDIO_TypeDef *  SDIOx)

Return the command index of last command for which response received.

Parameters
SDIOxPointer to SDMMC register base
Return values
Commandindex of the last command response received

Definition at line 377 of file stm32f4xx_ll_sdmmc.c.

◆ SDIO_GetDataCounter()

uint32_t SDIO_GetDataCounter ( SDIO_TypeDef *  SDIOx)

Returns number of remaining data bytes to be transferred.

Parameters
SDIOxPointer to SDIO register base
Return values
Numberof remaining data bytes to be transferred

Definition at line 450 of file stm32f4xx_ll_sdmmc.c.

◆ SDIO_GetFIFOCount()

uint32_t SDIO_GetFIFOCount ( SDIO_TypeDef *  SDIOx)

Get the FIFO data.

Parameters
SDIOxPointer to SDIO register base
Return values
Datareceived

Definition at line 460 of file stm32f4xx_ll_sdmmc.c.

◆ SDIO_GetPowerState()

uint32_t SDIO_GetPowerState ( SDIO_TypeDef *  SDIOx)

Get SDMMC Power state.

Parameters
SDIOxPointer to SDMMC register base
Return values
Powerstatus of the controller. The returned value can be one of the following values:
  • 0x00: Power OFF
  • 0x02: Power UP
  • 0x03: Power ON

Definition at line 334 of file stm32f4xx_ll_sdmmc.c.

◆ SDIO_GetResponse()

uint32_t SDIO_GetResponse ( SDIO_TypeDef *  SDIOx,
uint32_t  Response 
)

Return the response received from the card for the last command.

Parameters
SDIOxPointer to SDMMC register base
ResponseSpecifies the SDMMC response register. This parameter can be one of the following values:
  • SDIO_RESP1: Response Register 1
  • SDIO_RESP2: Response Register 2
  • SDIO_RESP3: Response Register 3
  • SDIO_RESP4: Response Register 4
Return values
TheCorresponding response register value

Definition at line 394 of file stm32f4xx_ll_sdmmc.c.

◆ SDIO_PowerState_OFF()

HAL_StatusTypeDef SDIO_PowerState_OFF ( SDIO_TypeDef *  SDIOx)

Set SDMMC Power state to OFF.

Parameters
SDIOxPointer to SDMMC register base
Return values
HALstatus

Definition at line 317 of file stm32f4xx_ll_sdmmc.c.

◆ SDIO_PowerState_ON()

HAL_StatusTypeDef SDIO_PowerState_ON ( SDIO_TypeDef *  SDIOx)

Set SDMMC Power state to ON.

Parameters
SDIOxPointer to SDMMC register base
Return values
HALstatus

Definition at line 304 of file stm32f4xx_ll_sdmmc.c.

◆ SDIO_SendCommand()

HAL_StatusTypeDef SDIO_SendCommand ( SDIO_TypeDef *  SDIOx,
SDIO_CmdInitTypeDef Command 
)

Configure the SDMMC command path according to the specified parameters in SDIO_CmdInitTypeDef structure and send the command.

Parameters
SDIOxPointer to SDMMC register base
Commandpointer to a SDIO_CmdInitTypeDef structure that contains the configuration information for the SDMMC command
Return values
HALstatus

Definition at line 347 of file stm32f4xx_ll_sdmmc.c.

◆ SDIO_SetSDMMCReadWaitMode()

HAL_StatusTypeDef SDIO_SetSDMMCReadWaitMode ( SDIO_TypeDef *  SDIOx,
uint32_t  SDIO_ReadWaitMode 
)

Sets one of the two options of inserting read wait interval.

Parameters
SDIOxPointer to SDIO register base
SDIO_ReadWaitModeSDMMC Read Wait operation mode. This parameter can be:
  • SDIO_READ_WAIT_MODE_CLK: Read Wait control by stopping SDMMCCLK
  • SDIO_READ_WAIT_MODE_DATA2: Read Wait control using SDMMC_DATA2
Return values
None

Definition at line 474 of file stm32f4xx_ll_sdmmc.c.