MDD_SDSPI_ReadMedia Function

Microchip MDD File System Interface

MDDFS Interface Library Help
MDD_SDSPI_ReadMedia Function
C
BYTE MDD_SDSPI_ReadMedia();
Description

The MDD_SDSPI_ReadMedia function will read one byte from the SPI port.

Preconditions

None.

Returns

The byte read.

Side Effects

None.

Remarks

This function replaces ReadSPI, since some implementations of that function will initialize SSPBUF/SPIBUF to 0x00 when reading. The card expects 0xFF.

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