1 parent b5b783e commit 5529188Copy full SHA for 5529188
1 file changed
libraries/SD/src/SD.h
@@ -106,6 +106,14 @@ class SDClass {
106
107
boolean rmdir(char *filepath);
108
109
+ size_t type(){ return card.type(); }
110
+ size_t fatType(){ return volume.fatType(); }
111
+ size_t blocksPerCluster(){ return volume.blocksPerCluster(); }
112
+ size_t totalClusters(){ return volume.clusterCount(); }
113
+ size_t blockSize(){ return (size_t)0x200; }
114
+ size_t totalBlocks(){ return (totalClusters() / blocksPerCluster()); }
115
+ size_t clusterSize(){ return blocksPerCluster() * blockSize(); }
116
+ size_t size(){ return (clusterSize() * totalClusters()); }
117
private:
118
119
// This is used to determine the mode used to open a file
0 commit comments