SendMMCCmd Function

Microchip MDD File System Interface

MDDFS Interface Library Help
SendMMCCmd Function
C
MMC_RESPONSE SendMMCCmd(
    BYTE cmd, 
    DWORD address
);
Description

SendMMCCmd prepares a command packet and sends it out over the SPI interface. Response data of type 'R1' (as indicated by the SD/MMC product manual is returned.

Preconditions

None.

Return Values
Return Values 
Description 
The response from the card
  • Bit 0 - Idle state
  • Bit 1 - Erase Reset
  • Bit 2 - Illegal Command
  • Bit 3 - Command CRC Error
  • Bit 4 - Erase Sequence Error
  • Bit 5 - Address Error
  • Bit 6 - Parameter Error
  • Bit 7 - Unused. Always 0.

 

Side Effects

None.

Remarks

None.

Microchip MDD File System Interface 1.2.0 - [Aug 18, 2008]
Copyright © 2008 Microchip Technology, Inc.  All rights reserved.