VSF Documented
esp_spiffs.h
Go to the documentation of this file.
1#ifndef __ESP_SPIFFS_H__
2#define __ESP_SPIFFS_H__
3
4#include <stddef.h>
5#include "esp_err.h"
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
11typedef struct {
12 const char *base_path;
13 const char *partition_label;
14 size_t max_files;
17
18static inline esp_err_t esp_vfs_spiffs_register(const esp_vfs_spiffs_conf_t *conf)
19{
20 (void)conf;
22}
23
24static inline esp_err_t esp_vfs_spiffs_unregister(const char *partition_label)
25{
26 (void)partition_label;
28}
29
30static inline esp_err_t esp_spiffs_format(const char *partition_label)
31{
32 (void)partition_label;
34}
35
36static inline esp_err_t esp_spiffs_info(const char *partition_label, size_t *total_bytes, size_t *used_bytes)
37{
38 (void)partition_label;
39 if (total_bytes) *total_bytes = 0;
40 if (used_bytes) *used_bytes = 0;
42}
43
44static inline esp_err_t esp_spiffs_check(const char *partition_label)
45{
46 (void)partition_label;
48}
49
50#ifdef __cplusplus
51}
52#endif
53
54#endif
#define ESP_ERR_NOT_SUPPORTED
Definition esp_err.h:54
int esp_err_t
Definition esp_err.h:41
Definition esp_spiffs.h:11
int format_if_mount_failed
Definition esp_spiffs.h:15
size_t max_files
Definition esp_spiffs.h:14
const char * base_path
Definition esp_spiffs.h:12
const char * partition_label
Definition esp_spiffs.h:13
Generated from commit: vsfteam/vsf@c3767bf