Command path state machine (CPSM) management functions.
More...
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).
Fills each SDIO_CmdInitStruct member with its default value.
- Parameters
-
- Return values
-
uint8_t SDIO_GetCommandResponse |
( |
void |
| ) |
|
Returns command index of last command for which response received.
- Parameters
-
- Return values
-
Returns | the 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
-
The | Corresponding response register value. |
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
-