Pages: [1]   Go Down
Author Topic: undocumented classes Sd2Card, SdVolume and SdFile  (Read 2252 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 66
CJH Innovations
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Can someone point me to the documentation for the Sd2Card, SdVolume and SdFile classes?

The examples have these scattered about with no reference to where they come from or how to use them.

The only docs that I have found are at http://arduino.cc/en/Reference/SD

I mean to say that they look very useful, such as SdFile.ls() and SdFile.openRoot().
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 66
CJH Innovations
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

To answer my own question, and to give every NB a good background reference.

http://www.arconlab.com/lab/Arduino/Library/SD%20Reader%20-%20Fat32/SdFat.pdf

Logged

0
Offline Offline
Edison Member
*
Karma: 44
Posts: 1473
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The Arduino group doesn't really want you to use these classes.  That's why they developed the SD.h wrapper.

If you want to use these classes you should probably use SdFat directly.  There is Doxygen html documentation for these classes with the SdFat library here http://code.google.com/p/sdfatlib/downloads/list.
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 66
CJH Innovations
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hmmm.

If they don't want us to use these classes, then they should take them out of the example code that comes with the SD library.

CardInfo is the first example in the list and it uses the SdFat utility functions exclusively ...
Code:
// set up variables using the SD utility library functions:
Sd2Card card;
SdVolume volume;
SdFile root;

Does this mean that the SD classes cannot get the job done?

(Datalogger, Dumpfile, Files, and ReadWrite are using the SD classes)

Actually, it seems that using SdFat directly would be a better solution until the SD library improves.

« Last Edit: July 28, 2012, 04:00:58 pm by Checkers1811 » Logged

0
Offline Offline
Edison Member
*
Karma: 44
Posts: 1473
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am not part of the Arduino company so I can only guess about the company's policy.

I believe the reason for the success of Arduino is that the company has targeted beginners and to do this simplicity is key. 

SD.h provides beginners with adequate functionality so from the Arduino company's point of view it "gets the job done".

This appears to be an excellent business policy but can be frustrating for more advanced users.

There is plenty of third party software but don't expect the Arduino group to support advanced users.
Logged

Pages: [1]   Go Up
Jump to: