Skip to content

Commit 50a0912

Browse files
committed
Begin to declare interface to storage
1 parent 1f9c578 commit 50a0912

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

lib/storage/storage.hpp

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)