1
6
7
8
9
10
11
12
13
14
15
16
20
21
24
28
29
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
/* ... */
#pragma once
#include <stdint.h>
#include "esp_err.h"
#include "nvs.h"
#ifdef __cplusplus
extern "C" {
#endif
/* ... */
/* ... */
typedef struct {
char* buff_ptr;
size_t buff_len;
}{ ... } nvs_bootloader_str_value_placeholder_t;
/* ... */
typedef union {
uint8_t u8_val;
int8_t i8_val;
uint16_t u16_val;
int16_t i16_val;
uint32_t u32_val;
int32_t i32_val;
uint64_t u64_val;
int64_t i64_val;
nvs_bootloader_str_value_placeholder_t str_val;
}{ ... } nvs_bootloader_value_placeholder_t;
/* ... */
typedef struct {
const char* namespace_name;
const char* key_name;
nvs_type_t value_type;
esp_err_t result_code;
nvs_bootloader_value_placeholder_t value;
uint8_t namespace_index;
}{ ... } nvs_bootloader_read_list_t;
/* ... */
esp_err_t nvs_bootloader_read(const char* partition_name,
const size_t read_list_count,
nvs_bootloader_read_list_t read_list[]);
#ifdef __cplusplus
}{...}
#endif