We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f9c578 commit 50a0912Copy full SHA for 50a0912
1 file changed
lib/storage/storage.hpp
@@ -0,0 +1,23 @@
1
+#pragma once
2
+#include <FFat.h>
3
+#include <USBMSC.h>
4
+#include <cstddef>
5
+#include <esp_partition.h>
6
+
7
+class Storage
8
+{
9
+ public:
10
+ void begin(const char *partitionLabel = FFAT_PARTITION_LABEL);
11
+ void end();
12
+ bool isFileSystemReady() const;
13
+ void setCallbackFsReady();
14
+ void setCallbackFsBusy();
15
16
+ private:
17
+ const esp_partition_t *partition;
18
+ /**
19
+ * Interface to USB mass storage class.
20
+ */
21
+ USBMSC usbMsc;
22
+ const std::size_t blockSize;
23
+};
0 commit comments