Prusa MINI Firmware overview
SdFile Class Reference

SdBaseFile with Print. More...

#include <SdFile.h>

Inheritance diagram for SdFile:
Collaboration diagram for SdFile:

Public Member Functions

 SdFile ()
 
 SdFile (const char *name, uint8_t oflag)
 
void write (uint8_t b)
 
int16_t write (const void *buf, uint16_t nbyte)
 
void write (const char *str)
 
void write_P (PGM_P str)
 
void writeln_P (PGM_P str)
 
- Public Member Functions inherited from SdBaseFile
 SdBaseFile ()
 
 SdBaseFile (const char *path, uint8_t oflag)
 
 ~SdBaseFile ()
 
void getpos (filepos_t *pos)
 
void setpos (filepos_t *pos)
 
bool close ()
 
bool contiguousRange (uint32_t *bgnBlock, uint32_t *endBlock)
 
bool createContiguous (SdBaseFile *dirFile, const char *path, uint32_t size)
 
uint32_t curCluster () const
 
uint32_t curPosition () const
 
bool dirEntry (dir_t *dir)
 
bool exists (const char *name)
 
int16_t fgets (char *str, int16_t num, char *delim=0)
 
uint32_t fileSize () const
 
uint32_t firstCluster () const
 
bool isDir () const
 
bool isFile () const
 
bool isOpen () const
 
bool isSubDir () const
 
bool isRoot () const
 
bool getDosName (char *const name)
 
void ls (uint8_t flags=0, uint8_t indent=0)
 
bool mkdir (SdBaseFile *dir, const char *path, bool pFlag=true)
 
bool open (SdBaseFile *dirFile, uint16_t index, uint8_t oflag)
 
bool open (SdBaseFile *dirFile, const char *path, uint8_t oflag)
 
bool open (const char *path, uint8_t oflag=O_READ)
 
bool openNext (SdBaseFile *dirFile, uint8_t oflag)
 
bool openRoot (SdVolume *vol)
 
int peek ()
 
bool printName ()
 
int16_t read ()
 
int16_t read (void *buf, uint16_t nbyte)
 
int8_t readDir (dir_t *dir, char *longFilename)
 
bool remove ()
 
void rewind ()
 
bool rename (SdBaseFile *dirFile, const char *newPath)
 
bool rmdir ()
 
bool rmRfStar ()
 
bool seekCur (const int32_t offset)
 
bool seekEnd (const int32_t offset=0)
 
bool seekSet (const uint32_t pos)
 
bool sync ()
 
bool timestamp (SdBaseFile *file)
 
bool timestamp (uint8_t flag, uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second)
 
uint8_t type () const
 
bool truncate (uint32_t size)
 
SdVolumevolume () const
 
int16_t write (const void *buf, uint16_t nbyte)
 

Additional Inherited Members

- Static Public Member Functions inherited from SdBaseFile
static SdBaseFilecwd ()
 
static void dateTimeCallback (void(*dateTime)(uint16_t *date, uint16_t *time))
 
static void dateTimeCallbackCancel ()
 
static void dirName (const dir_t &dir, char *name)
 
static void printFatDate (uint16_t fatDate)
 
static void printFatTime (uint16_t fatTime)
 
static bool remove (SdBaseFile *dirFile, const char *path)
 
- Public Attributes inherited from SdBaseFile
bool writeError
 

Detailed Description

SdBaseFile with Print.

Arduino SdFat Library Copyright (c) 2009 by William Greiman

This file is part of the Arduino Sd2Card Library

Constructor & Destructor Documentation

◆ SdFile() [1/2]

SdFile::SdFile ( )
47 {}

◆ SdFile() [2/2]

SdFile::SdFile ( const char *  name,
uint8_t  oflag 
)

Member Function Documentation

◆ write() [1/3]

void SdFile::write ( uint8_t  b)

◆ write() [2/3]

int16_t SdFile::write ( const void buf,
uint16_t  nbyte 
)

◆ write() [3/3]

void SdFile::write ( const char *  str)

◆ write_P()

void SdFile::write_P ( PGM_P  str)

◆ writeln_P()

void SdFile::writeln_P ( PGM_P  str)