SD Card Interface class. Log raw data bytes to memory addresses of your choice, or format the card and use the FAT file system to write files.
Diff: SDCard.h
- Revision:
- 4:9a5878d316d5
- Parent:
- 3:210eb67b260c
- Child:
- 5:d85e20b6b904
--- a/SDCard.h Mon Aug 23 07:12:13 2010 +0000 +++ b/SDCard.h Fri Aug 27 00:59:28 2010 +0000 @@ -21,7 +21,7 @@ unsigned char DataCRCTable[512]; //CRC CCITT lookup table unsigned char OCR[4]; - //operating condition register + //operating conditions register unsigned char CSD[16]; //card-specific data register unsigned char FSR[64]; @@ -74,8 +74,8 @@ // 0 synchronizes card and resets internal counter to finalize I/O operations // 1 successively write input to a raw data byte in order starting at address 0 // 2 successively read and return a raw data byte in order starting at address 0 - //return data from sync or write operations, and input data of sync or read operations - //are "don't care" bits + //return data from sync or write operations, and input + //data of sync or read operations are "don't care" bits unsigned char Write(unsigned int Address, unsigned char* Data); unsigned char Write(unsigned int Address, unsigned char SectorCount, unsigned char* Data); //write data sectors to the card @@ -85,8 +85,8 @@ unsigned char SelectCRCMode(bool Mode); //turn CRC mode on or off, default is off void SetTimeout(unsigned int Retries); - //change the number of retries for interface functions; increase if lines are - //unreliable; default is 1024 + //change the number of retries for interface functions; + //increase if lines are unreliable; default is 1024 }; #endif \ No newline at end of file