Repetier-Firmware  0.91
SdFat Class Reference

Integration class for the SdFat library. More...

#include <SdFat.h>

Public Member Functions

 SdFat ()
bool init () __attribute__((error("use sd.begin()")))
bool init (uint8_t sckRateID) __attribute__((error("use sd.begin(chipSelect
bool init (uint8_t sckRateID, uint8_t chipSelectPin) __attribute__((error("use sd.begin(chipSelect
Sd2Cardcard ()
bool chdir (bool set_cwd=false)
bool chdir (const char *path, bool set_cwd=false)
void chvol ()
void errorHalt ()
void errorHalt_P (FSTRINGPARAM(msg))
void errorHalt (char const *msg)
void errorPrint ()
void errorPrint_P (FSTRINGPARAM(msg))
void errorPrint (char const *msg)
bool exists (const char *name)
bool begin (uint8_t chipSelectPin=SD_CHIP_SELECT_PIN, uint8_t sckRateID=SPI_FULL_SPEED)
void initErrorHalt ()
void initErrorHalt (char const *msg)
void initErrorHalt_P (FSTRINGPARAM(msg))
void initErrorPrint ()
void initErrorPrint (char const *msg)
void initErrorPrint_P (FSTRINGPARAM(msg))
void ls (uint8_t flags=0)
bool mkdir (const char *path, bool pFlag=true)
bool remove (const char *path)
bool rename (const char *oldPath, const char *newPath)
bool rmdir (const char *path)
bool truncate (const char *path, uint32_t length)
SdVolumevol ()
SdBaseFilevwd ()

Data Fields

bool sckRate

Private Attributes

Sd2Card card_
SdVolume vol_
SdBaseFile vwd_

Detailed Description

Integration class for the SdFat library.


Constructor & Destructor Documentation

SdFat ( ) [inline]

Member Function Documentation

bool begin ( uint8_t  chipSelectPin = SD_CHIP_SELECT_PIN,
uint8_t  sckRateID = SPI_FULL_SPEED 
)
Sd2Card* card ( ) [inline]
Returns:
a pointer to the Sd2Card object.
bool chdir ( bool  set_cwd = false)
bool chdir ( const char *  path,
bool  set_cwd = false 
)
void chvol ( )
void errorHalt ( )
void errorHalt ( char const *  msg)
void errorHalt_P ( FSTRINGPARAM(msg)  )
void errorPrint ( )
void errorPrint ( char const *  msg)
void errorPrint_P ( FSTRINGPARAM(msg)  )
bool exists ( const char *  name)
bool init ( )
bool init ( uint8_t  sckRateID)
bool init ( uint8_t  sckRateID,
uint8_t  chipSelectPin 
)
void initErrorHalt ( )
void initErrorHalt ( char const *  msg)
void initErrorHalt_P ( FSTRINGPARAM(msg)  )
void initErrorPrint ( )
void initErrorPrint ( char const *  msg)
void initErrorPrint_P ( FSTRINGPARAM(msg)  )
void ls ( uint8_t  flags = 0)
bool mkdir ( const char *  path,
bool  pFlag = true 
)
bool remove ( const char *  path)
bool rename ( const char *  oldPath,
const char *  newPath 
)
bool rmdir ( const char *  path)
bool truncate ( const char *  path,
uint32_t  length 
)
SdVolume* vol ( ) [inline]
Returns:
a pointer to the SdVolume object.
SdBaseFile* vwd ( ) [inline]
Returns:
a pointer to the volume working directory.

Field Documentation

Sd2Card card_ [private]
bool sckRate
SdVolume vol_ [private]
SdBaseFile vwd_ [private]

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Friends Defines