Fork of Smoothie to port to mbed non-LPC targets.

Dependencies:   mbed

Fork of Smoothie by Stéphane Cachat

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers SDFAT.h Source File

SDFAT.h

00001 #ifndef _SDFAT_H
00002 #define _SDFAT_H
00003 
00004 #include "disk.h"
00005 #include "FATFileSystem.h"
00006 
00007 class SDFAT : public mbed::FATFileSystem {
00008 public:
00009     SDFAT(const char *n, MSD_Disk *disk);
00010 
00011     virtual int disk_initialize();
00012     virtual int disk_status();
00013     virtual int disk_read(char *buffer, int sector);
00014     virtual int disk_write(const char *buffer, int sector);
00015     virtual int disk_sync();
00016     virtual int disk_sectors();
00017 
00018 protected:
00019     MSD_Disk *d;
00020 };
00021 
00022 #endif /* _SDFAT_H */