STM32F4xx_HAL_Driver  1.8.3
Peripheral Control functions

management functions More...

+ Collaboration diagram for Peripheral Control functions:

Functions

HAL_StatusTypeDef HAL_SD_ConfigWideBusOperation (SD_HandleTypeDef *hsd, uint32_t WideMode)
 Enables wide bus operation for the requested card if supported by card. More...
 
HAL_StatusTypeDef HAL_SD_GetCardCID (SD_HandleTypeDef *hsd, HAL_SD_CardCIDTypeDef *pCID)
 Returns information the information of the card which are stored on the CID register. More...
 
HAL_StatusTypeDef HAL_SD_GetCardCSD (SD_HandleTypeDef *hsd, HAL_SD_CardCSDTypeDef *pCSD)
 Returns information the information of the card which are stored on the CSD register. More...
 
HAL_StatusTypeDef HAL_SD_GetCardStatus (SD_HandleTypeDef *hsd, HAL_SD_CardStatusTypeDef *pStatus)
 Gets the SD status info. More...
 
HAL_StatusTypeDef HAL_SD_GetCardInfo (SD_HandleTypeDef *hsd, HAL_SD_CardInfoTypeDef *pCardInfo)
 Gets the SD card info. More...
 
HAL_SD_CardStateTypeDef HAL_SD_GetCardState (SD_HandleTypeDef *hsd)
 Gets the current sd card data state. More...
 
HAL_StatusTypeDef HAL_SD_Abort (SD_HandleTypeDef *hsd)
 Abort the current transfer and disable the SD. More...
 
HAL_StatusTypeDef HAL_SD_Abort_IT (SD_HandleTypeDef *hsd)
 Abort the current transfer and disable the SD (IT mode). More...
 

Detailed Description

management functions

  ==============================================================================
                      ##### Peripheral Control functions #####
  ==============================================================================
  [..]
    This subsection provides a set of functions allowing to control the SD card
    operations and get the related information

Function Documentation

◆ HAL_SD_Abort()

HAL_StatusTypeDef HAL_SD_Abort ( SD_HandleTypeDef hsd)

Abort the current transfer and disable the SD.

Parameters
hsdpointer to a SD_HandleTypeDef structure that contains the configuration information for SD module.
Return values
HALstatus

Definition at line 2350 of file stm32f4xx_hal_sd.c.

◆ HAL_SD_Abort_IT()

HAL_StatusTypeDef HAL_SD_Abort_IT ( SD_HandleTypeDef hsd)

Abort the current transfer and disable the SD (IT mode).

Parameters
hsdpointer to a SD_HandleTypeDef structure that contains the configuration information for SD module.
Return values
HALstatus

Definition at line 2414 of file stm32f4xx_hal_sd.c.

◆ HAL_SD_ConfigWideBusOperation()

HAL_StatusTypeDef HAL_SD_ConfigWideBusOperation ( SD_HandleTypeDef hsd,
uint32_t  WideMode 
)

Enables wide bus operation for the requested card if supported by card.

Parameters
hsdPointer to SD handle
WideModeSpecifies the SD card wide bus mode This parameter can be one of the following values:
  • SDIO_BUS_WIDE_8B: 8-bit data transfer
  • SDIO_BUS_WIDE_4B: 4-bit data transfer
  • SDIO_BUS_WIDE_1B: 1-bit data transfer
Return values
HALstatus

Definition at line 2245 of file stm32f4xx_hal_sd.c.

◆ HAL_SD_GetCardCID()

HAL_StatusTypeDef HAL_SD_GetCardCID ( SD_HandleTypeDef hsd,
HAL_SD_CardCIDTypeDef pCID 
)

Returns information the information of the card which are stored on the CID register.

Parameters
hsdPointer to SD handle
pCIDPointer to a HAL_SD_CardCIDTypeDef structure that
contains all CID register parameters
Return values
HALstatus

Definition at line 2013 of file stm32f4xx_hal_sd.c.

◆ HAL_SD_GetCardCSD()

HAL_StatusTypeDef HAL_SD_GetCardCSD ( SD_HandleTypeDef hsd,
HAL_SD_CardCSDTypeDef pCSD 
)

Returns information the information of the card which are stored on the CSD register.

Parameters
hsdPointer to SD handle
pCSDPointer to a HAL_SD_CardCSDTypeDef structure that
contains all CSD register parameters
Return values
HALstatus

< Reserved

Definition at line 2046 of file stm32f4xx_hal_sd.c.

◆ HAL_SD_GetCardInfo()

HAL_StatusTypeDef HAL_SD_GetCardInfo ( SD_HandleTypeDef hsd,
HAL_SD_CardInfoTypeDef pCardInfo 
)

Gets the SD card info.

Parameters
hsdPointer to SD handle
pCardInfoPointer to the HAL_SD_CardInfoTypeDef structure that will contain the SD card status information
Return values
HALstatus

Definition at line 2220 of file stm32f4xx_hal_sd.c.

◆ HAL_SD_GetCardState()

HAL_SD_CardStateTypeDef HAL_SD_GetCardState ( SD_HandleTypeDef hsd)

Gets the current sd card data state.

Parameters
hsdpointer to SD handle
Return values
Cardstate

Definition at line 2327 of file stm32f4xx_hal_sd.c.

◆ HAL_SD_GetCardStatus()

HAL_StatusTypeDef HAL_SD_GetCardStatus ( SD_HandleTypeDef hsd,
HAL_SD_CardStatusTypeDef pStatus 
)

Gets the SD status info.

Parameters
hsdPointer to SD handle
pStatusPointer to the HAL_SD_CardStatusTypeDef structure that will contain the SD card status information
Return values
HALstatus

Definition at line 2160 of file stm32f4xx_hal_sd.c.