SdFat
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Public Member Functions | List of all members
SdVolume Class Reference

SdVolume used in Quick start. Soon to be removed. More...

#include <SdVolume.h>

Inheritance diagram for SdVolume:
Inheritance graph
[legend]
Collaboration diagram for SdVolume:
Collaboration graph
[legend]

Public Member Functions

uint8_t blocksPerCluster () const
 
uint32_t blocksPerFat () const
 
cache_tcacheClear ()
 
uint32_t clusterCount () const
 
uint8_t clusterSizeShift () const
 
uint32_t dataStartBlock () const
 
bool dbgFat (uint32_t n, uint32_t *v)
 
uint8_t fatCount ()
 
uint32_t fatStartBlock () const
 
uint8_t fatType () const
 
int32_t freeClusterCount ()
 
bool init (Sd2Card *dev)
 
bool init (Sd2Card *dev, uint8_t part)
 
bool init ()
 
bool init (uint8_t part)
 
uint32_t rootDirEntryCount () const
 
uint32_t rootDirStart () const
 

Detailed Description

SdVolume used in Quick start. Soon to be removed.

Member Function Documentation

uint8_t FatVolume::blocksPerCluster ( ) const
inlineinherited
Returns
The volume's cluster size in blocks.
uint32_t FatVolume::blocksPerFat ( ) const
inlineinherited
Returns
The number of blocks in one FAT.
cache_t* FatVolume::cacheClear ( )
inlineinherited

Clear the cache and returns a pointer to the cache. Not for normal apps.

Returns
A pointer to the cache buffer or zero if an error occurs.
uint32_t FatVolume::clusterCount ( ) const
inlineinherited
Returns
The total number of clusters in the volume.
uint8_t FatVolume::clusterSizeShift ( ) const
inlineinherited
Returns
The shift count required to multiply by blocksPerCluster.
uint32_t FatVolume::dataStartBlock ( ) const
inlineinherited
Returns
The logical block number for the start of file data.
bool FatVolume::dbgFat ( uint32_t  n,
uint32_t *  v 
)
inlineinherited

Debug access to FAT table

Parameters
[in]ncluster number.
[out]vvalue of entry
Returns
true for success or false for failure
uint8_t FatVolume::fatCount ( )
inlineinherited
Returns
The number of File Allocation Tables.
uint32_t FatVolume::fatStartBlock ( ) const
inlineinherited
Returns
The logical block number for the start of the first FAT.
uint8_t FatVolume::fatType ( ) const
inlineinherited
Returns
The FAT type of the volume. Values are 12, 16 or 32.
int32_t FatVolume::freeClusterCount ( )
inherited

Volume free space in clusters.

Returns
Count of free clusters for success or -1 if an error occurs.
bool SdVolume::init ( Sd2Card dev)
inline

Initialize a FAT volume. Try partition one first then try super floppy format.

Parameters
[in]devThe Sd2Card where the volume is located.
Returns
true for success else false.
bool SdVolume::init ( Sd2Card dev,
uint8_t  part 
)
inline

Initialize a FAT volume.

Parameters
[in]devThe Sd2Card where the volume is located.
[in]partthe partition to use. Zero for super floppy or 1-4.
Returns
true for success else false.
bool FatVolume::init ( )
inlineinherited

Initialize a FAT volume. Try partition one first then try super floppy format.

Returns
The value one, true, is returned for success and the value zero, false, is returned for failure. Reasons for failure include not finding a valid partition, not finding a valid FAT file system or an I/O error.
bool FatVolume::init ( uint8_t  part)
inherited

Initialize a FAT volume.

Parameters
[in]partThe partition to be used. Legal values for part are 1-4 to use the corresponding partition on a device formatted with a MBR, Master Boot Record, or zero if the device is formatted as a super floppy with the FAT boot sector in block zero.
Returns
The value one, true, is returned for success and the value zero, false, is returned for failure. Reasons for failure include not finding a valid partition, not finding a valid FAT file system in the specified partition or an I/O error.
uint32_t FatVolume::rootDirEntryCount ( ) const
inlineinherited
Returns
The number of entries in the root directory for FAT16 volumes.
uint32_t FatVolume::rootDirStart ( ) const
inlineinherited
Returns
The logical block number for the start of the root directory on FAT16 volumes or the first cluster number on FAT32 volumes.

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