Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Storage/MassStorage.h')
-rw-r--r--src/Storage/MassStorage.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/Storage/MassStorage.h b/src/Storage/MassStorage.h
index 551bbe6a..2d351569 100644
--- a/src/Storage/MassStorage.h
+++ b/src/Storage/MassStorage.h
@@ -102,7 +102,16 @@ namespace MassStorage
ok = 2
};
- InfoResult GetCardInfo(size_t slot, uint64_t& capacity, uint64_t& freeSpace, uint32_t& speed, uint32_t& clSize) noexcept;
+ struct SdCardReturnedInfo
+ {
+ uint64_t cardCapacity;
+ uint64_t partitionSize;
+ uint64_t freeSpace;
+ uint32_t clSize;
+ uint32_t speed;
+ };
+
+ InfoResult GetCardInfo(size_t slot, SdCardReturnedInfo& returnedInfo) noexcept;
# ifdef DUET3_MB6HC
GCodeResult ConfigureSdCard(GCodeBuffer& gb, const StringRef& reply) THROWS(GCodeException); // Configure additional SD card slots