mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
add info methods to SD class
This commit is contained in:
parent
b5b783e508
commit
5529188dae
@ -106,6 +106,14 @@ public:
|
||||
|
||||
boolean rmdir(char *filepath);
|
||||
|
||||
size_t type(){ return card.type(); }
|
||||
size_t fatType(){ return volume.fatType(); }
|
||||
size_t blocksPerCluster(){ return volume.blocksPerCluster(); }
|
||||
size_t totalClusters(){ return volume.clusterCount(); }
|
||||
size_t blockSize(){ return (size_t)0x200; }
|
||||
size_t totalBlocks(){ return (totalClusters() / blocksPerCluster()); }
|
||||
size_t clusterSize(){ return blocksPerCluster() * blockSize(); }
|
||||
size_t size(){ return (clusterSize() * totalClusters()); }
|
||||
private:
|
||||
|
||||
// This is used to determine the mode used to open a file
|
||||
|
Loading…
x
Reference in New Issue
Block a user