esp32_shock/components/nvs_storage/nvs_storage.h

16 lines
378 B
C
Raw Permalink Normal View History

2024-04-29 17:35:50 +08:00
#ifndef __NVS_STORAGE_H
#define __NVS_STORAGE_H
typedef enum
{
NVS_STORAGE_UINT8,
NVS_STORAGE_UINT16,
NVS_STORAGE_UINT32,
NVS_STORAGE_UINT64
} nvs_storage_type_t;
void nvs_storage_init(void);
int nvs_storage_read(const char *key, void *value, nvs_storage_type_t type);
int nvs_storage_write(const char *key, const void *value, nvs_storage_type_t type);
#endif