ESP3D  3.0
Firmware for ESP boards connected to 3D Printer
ESP_SDFile Class Reference

#include <esp_sd.h>

Public Member Functions

 ESP_SDFile (void *handle=nullptr, bool isdir=false, bool iswritemode=false, const char *path=nullptr)
 
 ESP_SDFile (const char *name, const char *filename, bool isdir=true, size_t size=0)
 
 ~ESP_SDFile ()
 
 operator bool () const
 
bool isDirectory ()
 
const char * name () const
 
const char * shortname () const
 
const char * filename () const
 
void close ()
 
bool isOpen ()
 
ESP_SDFileoperator= (const ESP_SDFile &other)
 
size_t size ()
 
time_t getLastWrite ()
 
int available ()
 
size_t write (uint8_t i)
 
size_t write (const uint8_t *buf, size_t size)
 
int read ()
 
size_t read (uint8_t *buf, size_t size)
 
void flush ()
 
ESP_SDFile openNextFile ()
 

Detailed Description

Definition at line 31 of file esp_sd.h.

Constructor & Destructor Documentation

◆ ESP_SDFile() [1/2]

ESP_SDFile::ESP_SDFile ( void *  handle = nullptr,
bool  isdir = false,
bool  iswritemode = false,
const char *  path = nullptr 
)

◆ ESP_SDFile() [2/2]

ESP_SDFile::ESP_SDFile ( const char *  name,
const char *  filename,
bool  isdir = true,
size_t  size = 0 
)

Definition at line 83 of file esp_sd.cpp.

Here is the call graph for this function:

◆ ~ESP_SDFile()

ESP_SDFile::~ESP_SDFile ( )

Definition at line 95 of file esp_sd.cpp.

Member Function Documentation

◆ available()

int ESP_SDFile::available ( )

Definition at line 140 of file esp_sd.cpp.

Here is the caller graph for this function:

◆ close()

void ESP_SDFile::close ( )
Here is the caller graph for this function:

◆ filename()

const char * ESP_SDFile::filename ( ) const

Definition at line 120 of file esp_sd.cpp.

Here is the caller graph for this function:

◆ flush()

void ESP_SDFile::flush ( )

Definition at line 180 of file esp_sd.cpp.

Here is the caller graph for this function:

◆ getLastWrite()

time_t ESP_SDFile::getLastWrite ( )

Definition at line 135 of file esp_sd.cpp.

Here is the caller graph for this function:

◆ isDirectory()

bool ESP_SDFile::isDirectory ( )

Definition at line 125 of file esp_sd.cpp.

Here is the caller graph for this function:

◆ isOpen()

bool ESP_SDFile::isOpen ( )

Definition at line 110 of file esp_sd.cpp.

Here is the caller graph for this function:

◆ name()

const char * ESP_SDFile::name ( ) const

Definition at line 115 of file esp_sd.cpp.

Here is the caller graph for this function:

◆ openNextFile()

ESP_SDFile ESP_SDFile::openNextFile ( )
Here is the caller graph for this function:

◆ operator bool()

ESP_SDFile::operator bool ( ) const

Definition at line 100 of file esp_sd.cpp.

◆ operator=()

ESP_SDFile & ESP_SDFile::operator= ( const ESP_SDFile other)

Definition at line 188 of file esp_sd.cpp.

◆ read() [1/2]

int ESP_SDFile::read ( )

Definition at line 164 of file esp_sd.cpp.

Here is the caller graph for this function:

◆ read() [2/2]

size_t ESP_SDFile::read ( uint8_t *  buf,
size_t  size 
)

Definition at line 172 of file esp_sd.cpp.

Here is the call graph for this function:

◆ shortname()

const char* ESP_SDFile::shortname ( ) const

◆ size()

size_t ESP_SDFile::size ( )

Definition at line 130 of file esp_sd.cpp.

Here is the caller graph for this function:

◆ write() [1/2]

size_t ESP_SDFile::write ( const uint8_t *  buf,
size_t  size 
)

Definition at line 156 of file esp_sd.cpp.

Here is the call graph for this function:

◆ write() [2/2]

size_t ESP_SDFile::write ( uint8_t  i)

Definition at line 148 of file esp_sd.cpp.

Here is the caller graph for this function:

The documentation for this class was generated from the following files: