 |
ESP3D
3.0
Firmware for ESP boards connected to 3D Printer
|
Go to the documentation of this file.
23 #include "../../include/esp3d_config.h"
24 #include "../../core/esp3doutput.h"
27 #define ESP_SD_FS_HEADER "/SD"
29 #define ESP_MAX_SD_OPENHANDLE 4
34 ESP_SDFile(
void * handle =
nullptr,
bool isdir =
false,
bool iswritemode =
false,
const char * path =
nullptr);
37 operator bool()
const;
39 const char*
name()
const;
48 size_t write(uint8_t i);
49 size_t write(
const uint8_t *buf,
size_t size);
51 size_t read(uint8_t* buf,
size_t size);
74 static uint8_t
getState(
bool refresh);
75 static uint8_t
setState(uint8_t state);
82 static bool exists(
const char* path);
83 static bool remove(
const char *path);
84 static bool mkdir(
const char *path);
85 static bool rmdir(
const char *path);
86 static bool rename(
const char *oldpath,
const char *newpath);
90 return _spi_speed_divider;
95 static uint8_t _state;
96 static uint8_t _spi_speed_divider;
97 static bool _sizechanged;
static ESP_SDFile open(const char *path, uint8_t mode=ESP_FILE_READ)
const char * name() const
static uint64_t totalBytes()
static uint64_t freeBytes()
static bool remove(const char *path)
static uint8_t setState(uint8_t state)
static bool rmdir(const char *path)
static bool mkdir(const char *path)
ESP_SDFile & operator=(const ESP_SDFile &other)
static String & formatBytes(uint64_t bytes)
ESP_SDFile openNextFile()
static uint8_t getState(bool refresh)
ESP_SDFile(void *handle=nullptr, bool isdir=false, bool iswritemode=false, const char *path=nullptr)
static const char * FilesystemName()
static bool format(ESP3DOutput *output=nullptr)
const char * shortname() const
static bool rename(const char *oldpath, const char *newpath)
static bool exists(const char *path)
const char * filename() const
static uint8_t getSPISpeedDivider()
static uint64_t usedBytes()
static bool setSPISpeedDivider(uint8_t speeddivider)