Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. This function will be called even if no response is expected from the command.
  2. This function will not be called if FSDev_SD_Card_BSP_CmdStart() returned an error.
  3. The data stored in the response buffer should include only the response data, i.e., should not include the start bit, transmission bit, command index, CRC and end bit.
    1. For a command with a normal (48-bit) response, a 4-byte response should be stored in p_resp.
    2. For a command with a long (136-bit) response, a 16-byte response should be returned in p_resp:

      The first 4-byte word should hold bits 127..96 of the response.

      The second 4-byte word should hold bits 95..64 of the response.

      The third 4-byte word should hold bits 63..32 of the response.

      The four 4-byte word should hold bits 31.. 0 of the response.

Example

The implementation of FSDev_SD_Card_BSP_CmdWaitEnd() in is targeted for the same host controller as the other listings in this chapter; for more information, see FSDev_SD_Card_BSP_CmdStart().