1.27.19.2 SDMMCx_ResponseRead Function

C

/* x = SDMMC instance number */

void SDMMCx_ResponseRead ( SDMMC_READ_RESPONSE_REG respReg, uint32_t* response )

Summary

Reads the response to a given command.

Description

If the command requires a response, it can be read using this API.

Precondition

A command having a response must have been submitted using the SDMMCx_CommandSend() function.

Parameters

Param Description
respReg Enumeration of SDMMC_READ_RESPONSE_REG type describing the resonse register to read
response Pointer to the buffer to read the response into

Returns

None.

Example

uint32_t cmd_response;
SDMMC1_ResponseRead(SDMMC_READ_RESP_REG_0, &cmd_response);

Remarks

None.