Arduino FatFS
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

virtual size_t write (uint8_t ch)
 
virtual size_t write (const uint8_t *buf, size_t size)
 
virtual int read ()
 Very inefficient: to be avoided.
 
virtual int peek ()
 Very inefficient: to be avoided.
 
virtual int available ()
 
virtual void flush ()
 
size_t readBytes (uint8_t *data, size_t len) override
 
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 ()
 
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
 

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: