My Project
 All Classes Functions Variables Pages
FATFS_VFS.h
1 /*
2  * FATFS.h
3  *
4  * Created on: May 20, 2017
5  * Author: kolban
6  */
7 
8 #ifndef COMPONENTS_CPP_UTILS_FATFS_VFS_H_
9 #define COMPONENTS_CPP_UTILS_FATFS_VFS_H_
10 #include <string>
11 extern "C" {
12 #include <esp_vfs_fat.h>
13 #include <wear_levelling.h>
14 }
42 class FATFS_VFS {
43 public:
44  FATFS_VFS(std::string mountPath, std::string partitionName);
45  virtual ~FATFS_VFS();
46 
47  void mount();
48  void setMaxFiles(int maxFiles);
49  void unmount();
50 private:
51  wl_handle_t m_wl_handle;
52  std::string m_mountPath;
53  std::string m_partitionName;
54  int m_maxFiles;
55 };
56 
57 #endif /* COMPONENTS_CPP_UTILS_FATFS_VFS_H_ */
void mount()
Mount the FAT file system into VFS. The FAT file system found in the partition is mounted into the VF...
Definition: FATFS_VFS.cpp:45
void unmount()
Unmount a previously mounted file system.
Definition: FATFS_VFS.cpp:67
FATFS_VFS(std::string mountPath, std::string partitionName)
Constructor.
Definition: FATFS_VFS.cpp:28
Provide access to the FAT file system on SPI flash. The FATFS_VFS file system needs a partition defin...
Definition: FATFS_VFS.h:42
void setMaxFiles(int maxFiles)
Set the allowable number of concurrently open files.
Definition: FATFS_VFS.cpp:58