Hal Drivers for L4

Dependents:   BSP OneHopeOnePrayer FINAL_AUDIO_RECORD AudioDemo

Fork of STM32L4xx_HAL_Driver by Senior Design: Sound Monitor

Embed: (wiki syntax)

« Back to documentation index

Peripheral Control functions

Peripheral Control functions
[SDMMC Low Layer Exported Functions]

management functions More...

Functions

HAL_StatusTypeDef SDMMC_PowerState_ON (SDMMC_TypeDef *SDMMCx)
 Set SDMMC Power state to ON.
HAL_StatusTypeDef SDMMC_PowerState_OFF (SDMMC_TypeDef *SDMMCx)
 Set SDMMC Power state to OFF.
uint32_t SDMMC_GetPowerState (SDMMC_TypeDef *SDMMCx)
 Get SDMMC Power state.
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.
uint8_t SDMMC_GetCommandResponse (SDMMC_TypeDef *SDMMCx)
 Return the command index of last command for which response received.
uint32_t SDMMC_GetResponse (SDMMC_TypeDef *SDMMCx, uint32_t Response)
 Return the response received from the card for the last command.
HAL_StatusTypeDef SDMMC_DataConfig (SDMMC_TypeDef *SDMMCx, SDMMC_DataInitTypeDef *Data)
 Configure the SDMMC data path according to the specified parameters in the SDMMC_DataInitTypeDef.
uint32_t SDMMC_GetDataCounter (SDMMC_TypeDef *SDMMCx)
 Returns number of remaining data bytes to be transferred.
uint32_t SDMMC_GetFIFOCount (SDMMC_TypeDef *SDMMCx)
 Get the FIFO data.
HAL_StatusTypeDef SDMMC_SetSDMMCReadWaitMode (SDMMC_TypeDef *SDMMCx, uint32_t SDMMC_ReadWaitMode)
 Sets one of the two options of inserting read wait interval.

Detailed Description

management functions

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


Function Documentation

HAL_StatusTypeDef SDMMC_DataConfig ( SDMMC_TypeDef *  SDMMCx,
SDMMC_DataInitTypeDef Data 
)

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

Parameters:
SDMMCx,:Pointer to SDMMC register base
Data: pointer to a SDMMC_DataInitTypeDef structure that contains the configuration information for the SDMMC data.
Return values:
HALstatus

Definition at line 412 of file stm32l4xx_ll_sdmmc.c.

uint8_t SDMMC_GetCommandResponse ( SDMMC_TypeDef *  SDMMCx )

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

Parameters:
SDMMCx,:Pointer to SDMMC register base
Return values:
Commandindex of the last command response received

Definition at line 374 of file stm32l4xx_ll_sdmmc.c.

uint32_t SDMMC_GetDataCounter ( SDMMC_TypeDef *  SDMMCx )

Returns number of remaining data bytes to be transferred.

Parameters:
SDMMCx,:Pointer to SDMMC register base
Return values:
Numberof remaining data bytes to be transferred

Definition at line 443 of file stm32l4xx_ll_sdmmc.c.

uint32_t SDMMC_GetFIFOCount ( SDMMC_TypeDef *  SDMMCx )

Get the FIFO data.

Parameters:
SDMMCx,:Pointer to SDMMC register base
Return values:
Datareceived

Definition at line 453 of file stm32l4xx_ll_sdmmc.c.

uint32_t SDMMC_GetPowerState ( SDMMC_TypeDef *  SDMMCx )

Get SDMMC Power state.

Parameters:
SDMMCx,:Pointer 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 335 of file stm32l4xx_ll_sdmmc.c.

uint32_t SDMMC_GetResponse ( SDMMC_TypeDef *  SDMMCx,
uint32_t  Response 
)

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

Parameters:
SDMMCx,:Pointer to SDMMC register base
Response,:Specifies the SDMMC response register. This parameter can be one of the following values:

  • SDMMC_RESP1: Response Register 1
  • SDMMC_RESP2: Response Register 2
  • SDMMC_RESP3: Response Register 3
  • SDMMC_RESP4: Response Register 4
Return values:
TheCorresponding response register value

Definition at line 391 of file stm32l4xx_ll_sdmmc.c.

HAL_StatusTypeDef SDMMC_PowerState_OFF ( SDMMC_TypeDef *  SDMMCx )

Set SDMMC Power state to OFF.

Parameters:
SDMMCx,:Pointer to SDMMC register base
Return values:
HALstatus

Definition at line 318 of file stm32l4xx_ll_sdmmc.c.

HAL_StatusTypeDef SDMMC_PowerState_ON ( SDMMC_TypeDef *  SDMMCx )

Set SDMMC Power state to ON.

Parameters:
SDMMCx,:Pointer to SDMMC register base
Return values:
HALstatus

Definition at line 305 of file stm32l4xx_ll_sdmmc.c.

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.

Parameters:
SDMMCx,:Pointer to SDMMC register base
Command,:pointer to a SDMMC_CmdInitTypeDef structure that contains the configuration information for the SDMMC command
Return values:
HALstatus

Definition at line 348 of file stm32l4xx_ll_sdmmc.c.

HAL_StatusTypeDef SDMMC_SetSDMMCReadWaitMode ( SDMMC_TypeDef *  SDMMCx,
uint32_t  SDMMC_ReadWaitMode 
)

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

Parameters:
SDMMCx,:Pointer to SDMMC register base
SDMMC_ReadWaitMode,:SDMMC Read Wait operation mode. This parameter can be:

  • SDMMC_READ_WAIT_MODE_CLK: Read Wait control by stopping SDMMCCLK
  • SDMMC_READ_WAIT_MODE_DATA2: Read Wait control using SDMMC_DATA2
Return values:
None

Definition at line 468 of file stm32l4xx_ll_sdmmc.c.