SdFs
Public Member Functions | Friends | List of all members
ExFatPartition Class Reference

Access exFat partitions on raw file devices. More...

#include <ExFatPartition.h>

Inheritance diagram for ExFatPartition:
Inheritance graph
[legend]

Public Member Functions

uint32_t bytesPerCluster ()
 
uint8_t bytesPerClusterShift ()
 
uint16_t bytesPerSector ()
 
uint8_t bytesPerSectorShift ()
 
uint8_t * cacheClear ()
 
uint32_t clusterCount ()
 
uint32_t clusterHeapStartSector ()
 
uint32_t fatLength ()
 
uint32_t fatStartSector ()
 
uint8_t fatType () const
 
uint32_t freeClusterCount ()
 
bool init (BlockDevice *dev, uint8_t part)
 
uint32_t rootDirectoryCluster ()
 
uint32_t rootLength ()
 
uint32_t sectorsPerCluster ()
 
uint8_t sectorsPerClusterShift ()
 

Friends

class ExFatFile
 

Detailed Description

Access exFat partitions on raw file devices.

Member Function Documentation

uint32_t ExFatPartition::bytesPerCluster ( )
inline
Returns
the number of bytes in a cluster.
uint8_t ExFatPartition::bytesPerClusterShift ( )
inline
Returns
the power of two for bytesPerCluster.
uint16_t ExFatPartition::bytesPerSector ( )
inline
Returns
the number of bytes in a sector.
uint8_t ExFatPartition::bytesPerSectorShift ( )
inline
Returns
the power of two for bytesPerSector.
uint8_t* ExFatPartition::cacheClear ( )
inline

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 ExFatPartition::clusterCount ( )
inline
Returns
the cluster count for the partition.
uint32_t ExFatPartition::clusterHeapStartSector ( )
inline
Returns
the cluster heap start sector.
uint32_t ExFatPartition::fatLength ( )
inline
Returns
the FAT length in sectors
uint32_t ExFatPartition::fatStartSector ( )
inline
Returns
the FAT start sector number.
uint8_t ExFatPartition::fatType ( ) const
inline
Returns
Type FAT_TYPE_EXFAT for exFAT partition or zero for error.
uint32_t ExFatPartition::freeClusterCount ( )
Returns
the free cluster count.
bool ExFatPartition::init ( BlockDevice dev,
uint8_t  part 
)

Initialize a exFAT partition.

Parameters
[in]devThe blockDevice for the partition.
[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 sector zero.
Returns
The value true is returned for success and the value false is returned for failure.
uint32_t ExFatPartition::rootDirectoryCluster ( )
inline
Returns
the root directory start cluster number.
uint32_t ExFatPartition::rootLength ( )
Returns
the root directory length.
uint32_t ExFatPartition::sectorsPerCluster ( )
inline
Returns
the number of sectors in a cluster.
uint8_t ExFatPartition::sectorsPerClusterShift ( )
inline
Returns
the power of two for sectors per cluster.

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