STM32F4 Standard Peripheral bibliotheek  1.0
ST Microelectronics bibliotheek documentatie voor de STM32F4 Standard Peripheral Library
 All Data Structures Files Functions Variables Enumerations Enumerator Groups
Command path state machine (CPSM) management functions

Command path state machine (CPSM) management functions. More...

Functions

void SDIO_SendCommand (SDIO_CmdInitTypeDef *SDIO_CmdInitStruct)
 Initializes the SDIO Command according to the specified parameters in the SDIO_CmdInitStruct and send the command. More...
 
void SDIO_CmdStructInit (SDIO_CmdInitTypeDef *SDIO_CmdInitStruct)
 Fills each SDIO_CmdInitStruct member with its default value. More...
 
uint8_t SDIO_GetCommandResponse (void)
 Returns command index of last command for which response received. More...
 
uint32_t SDIO_GetResponse (uint32_t SDIO_RESP)
 Returns response received from the card for the last command. More...
 

Detailed Description

Command path state machine (CPSM) management functions.

 ===============================================================================
              Command path state machine (CPSM) management functions
 ===============================================================================  

  This section provide functions allowing to program and read the Command path 
  state machine (CPSM).

Function Documentation

void SDIO_CmdStructInit ( SDIO_CmdInitTypeDef SDIO_CmdInitStruct)

Fills each SDIO_CmdInitStruct member with its default value.

Parameters
SDIO_CmdInitStruct,:pointer to an SDIO_CmdInitTypeDef structure which will be initialized.
Return values
None
uint8_t SDIO_GetCommandResponse ( void  )

Returns command index of last command for which response received.

Parameters
None
Return values
Returnsthe command index of the last command response received.
uint32_t SDIO_GetResponse ( uint32_t  SDIO_RESP)

Returns response received from the card for the last command.

Parameters
SDIO_RESP,:Specifies the SDIO 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.
void SDIO_SendCommand ( SDIO_CmdInitTypeDef SDIO_CmdInitStruct)

Initializes the SDIO Command according to the specified parameters in the SDIO_CmdInitStruct and send the command.

Parameters
SDIO_CmdInitStruct: pointer to a SDIO_CmdInitTypeDef structure that contains the configuration information for the SDIO command.
Return values
None