1.22.24.2 1.32.25.2 SDHCx_ResponseRead Function

C

/* x = SDHC instance number (x is applicable only on devices with more than one instances of SDHC) */

void SDHCx_ResponseRead ( SDHC_READ_RESPONSE_REG respReg, uint32_t* response )

Summary

Reads the specified response into the application response buffer

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 SDHCx_CommandSend() function.

Parameters

Param Description
respReg Enumeration identifying the response type to read
response Pointer to the buffer to read the response into

Returns

None.

Example

uint32_t cmd_response;

SDHC1_ResponseRead(SDHC_READ_RESP_REG_0, &cmd_response);

Remarks

None.