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

Dependencies:   mbed

Fork of Smoothie by Stéphane Cachat

libs/SDFAT.h

Committer:
Michael J. Spencer
Date:
2014-02-28
Revision:
2:1df0b61d3b5a

File content as of revision 2:1df0b61d3b5a:

#ifndef _SDFAT_H
#define _SDFAT_H

#include "disk.h"
#include "FATFileSystem.h"

class SDFAT : public mbed::FATFileSystem {
public:
    SDFAT(const char *n, MSD_Disk *disk);

    virtual int disk_initialize();
    virtual int disk_status();
    virtual int disk_read(char *buffer, int sector);
    virtual int disk_write(const char *buffer, int sector);
    virtual int disk_sync();
    virtual int disk_sectors();

protected:
    MSD_Disk *d;
};

#endif /* _SDFAT_H */