Arduino FatFS
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
fatfs::File Class Reference
Main » sd

File implementation for fatfs. More...

#include <fatfs.h>

Inheritance diagram for fatfs::File:
Inheritance graph
[legend]
Collaboration diagram for fatfs::File:
Collaboration graph
[legend]

Public Member Functions

 File (FatFs *fs)
 
virtual size_t write (uint8_t ch) override
 
virtual size_t write (const uint8_t *buf, size_t size) override
 
virtual int read () override
 Rather inefficient: to be avoided.
 
int peek () override
 Rather inefficient: to be avoided.
 
int available () override
 
int availableForWrite () override
 
void flush () override
 
virtual size_t readBytes (uint8_t *data, size_t len)
 
int read (void *buf, size_t nbyte)
 
bool seek (uint32_t pos)
 
uint32_t position ()
 
uint32_t size ()
 
void close ()
 
char * name ()
 
void getName (char *name, int len)
 Provides the name: getName() is supported by the SDFat Library.
 
bool isDirectory (void)
 
File openNextFile (uint8_t mode=FA_READ)
 
void rewindDirectory (void)
 
 operator bool ()
 
bool isEOF ()
 
uint8_t error ()
 
FILgetFIL ()
 Access to low level FatFS api.
 
DIRgetDIR ()
 Access to low level FatFS api.
 
FatFsgetFatFs ()
 Access to low level FatFS api to use functionality not exposed by this API.
 
IOgetDriver ()
 Access lo low level driver.
 

Protected Member Functions

bool update_stat (FatFs &fat_fs, const char *filepath)
 update fs, info and is_open
 
size_t get_free_space ()
 

Protected Attributes

FIL file = {0}
 
DIR dir = {0}
 
FILINFO info = {0}
 
FatFsfs = nullptr
 
bool is_open = false
 

Friends

class SDClass
 

Detailed Description

File implementation for fatfs.


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