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 ESP32 && defined ARDUINO)
4
5#include "soc/soc_caps.h"
6
7#if SOC_SDMMC_HOST_SUPPORTED
8
9#include <Arduino.h>
10#include <SD_MMC.h>
11
12#include <functional>
13#include <string>
14
18
19namespace roo_io {
20
21// Exposes the roo_io::Filesystem interface over the native ESP32 Arduino SD
22// implementation, using the VFS API and Posix interface to the file system.
23// Internally uses the SD_MMC object. If you don't care to use the SD_MMC object
24// directly, you might as well use the esp-idf/sdmmc.h version.
26 public:
28
31
32 MediaPresence checkMediaPresence() override;
33
34 protected:
35 MountImpl::MountResult mountImpl(std::function<void()> unmount_fn) override;
36
37 void unmountImpl() override;
38
39 private:
41
43
44 bool mode_1bit_;
45
46 std::string mount_base_path_;
47};
48
50
51} // namespace roo_io
52
53#endif // SOC_SDMMC_HOST_SUPPORTED
54#endif // (defined ESP32 && defined ARDUINO)
Definition byte.h:6
roo::basic_string_view< CharT, Traits > basic_string_view
Definition string_view.h:8