roo_io
API Documentation for roo_io
Loading...
Searching...
No Matches
sdmmc.h
Go to the documentation of this file.
1#pragma once
2
3#if (defined ESP_PLATFORM)
4
5#include "soc/soc_caps.h"
6
7#if SOC_SDMMC_HOST_SUPPORTED
8
9#include "driver/sdmmc_types.h"
10#include "hal/gpio_types.h"
12
13namespace roo_io {
14
15class SdMmcFs : public BaseEsp32VfsFilesystem {
16 public:
18
21
22 MediaPresence checkMediaPresence() override;
23
24 protected:
25 MountImpl::MountResult mountImpl(std::function<void()> unmount_fn) override;
26
27 void unmountImpl() override;
28
29 private:
30 friend SdMmcFs CreateSdMmcFs();
31
32 SdMmcFs();
33
42
43 std::string mount_base_path_;
46};
47
48extern SdMmcFs SDMMC;
49
50} // namespace roo_io
51
52#endif // CONFIG_IDF_TARGET_ESP32S3
53#endif // defined(ESP_PLATFORM)
Definition byte.h:6
roo::basic_string_view< CharT, Traits > basic_string_view
Definition string_view.h:8