configularor/include/cfglr_nvs.h

16 lines
646 B
C
Raw Permalink Normal View History

2024-07-31 15:51:12 -04:00
#ifndef __CFGLR_NVS_H__
#define __CFGLR_NVS_H__
#if ESP_PLATFORM
#include "nvs_flash.h"
#include "configulator.h"
void cfglr_backend_nvs_open(cfglr_backend_t *backend, cfglr_handle_t *handle);
void cfglr_backend_nvs_close(cfglr_backend_t *backend, cfglr_handle_t *handle);
uint16_t cfglr_backend_nvs_get(cfglr_backend_t *backend, cfglr_element_t *element, cfglr_handle_t *handle);
uint16_t cfglr_backend_nvs_set(cfglr_backend_t *backend, cfglr_element_t *element, cfglr_handle_t *handle);
2024-07-31 15:51:12 -04:00
#define CFGLR_BACKEND_NVS() CFGLR_BACKEND(&cfglr_backend_nvs_open, &cfglr_backend_nvs_close, &cfglr_backend_nvs_get, cfglr_backend_nvs_set)
2024-07-31 15:51:12 -04:00
#endif
#endif