This repository has been archived on 2025-02-01. You can view files and clone it, but cannot push or open issues or pull requests.
reprapfirmware-dc42/MassStorage.h
David Crocker efe13ef2f1 Version 1.09k
Added F (probing speed) and T (travel speed) parameters to M558 command
Removed M210 command because home feed rates are defined in the homing
files
Increased UART interrupt priority to avoid dropping characters sent by
PanelDue
Bug fix: M558 P3 did not leave the Z probe control pin high
Bug fix: in version 1.09j only, the move following a G92 E0 command was
sometimes executed from an incorrect start point
Fixed bugs with reads/writes from/to the SD card that spanned one or
more whole sectors
Updated to latest Atmel HSMCI driver
2015-09-20 15:14:00 +01:00

39 lines
922 B
C++

#ifndef MASSSTORAGE_H
#define MASSSTORAGE_H
class Platform;
class FileInfo;
class MassStorage
{
public:
bool FindFirst(const char *directory, FileInfo &file_info);
bool FindNext(FileInfo &file_info);
const char* GetMonthName(const uint8_t month);
const char* CombineName(const char* directory, const char* fileName);
bool Delete(const char* directory, const char* fileName);
bool MakeDirectory(const char *parentDir, const char *dirName);
bool MakeDirectory(const char *directory);
bool Rename(const char *oldFilename, const char *newFilename);
bool FileExists(const char *file) const;
bool PathExists(const char *path) const;
bool PathExists(const char* directory, const char* subDirectory);
friend class Platform;
protected:
MassStorage(Platform* p);
void Init();
private:
Platform* platform;
FATFS fileSystem;
DIR findDir;
char combinedName[MaxFilenameLength + 1];
};
#endif