Home
last modified time | relevance | path

Searched refs:handle_2 (Results 1 – 3 of 3) sorted by relevance

/hal_espressif-3.6.0/components/nvs_flash/test/
Dtest_nvs.c89 nvs_handle_t handle_2; variable
90 TEST_ESP_OK(nvs_open("test_namespace3", NVS_READWRITE, &handle_2));
91 TEST_ESP_OK(nvs_erase_all(handle_2));
92 TEST_ESP_OK(nvs_set_i32(handle_2, "foo", 0x3456789a));
94 TEST_ESP_OK(nvs_set_str(handle_2, "key", str));
101 TEST_ESP_OK(nvs_get_i32(handle_2, "foo", &v2));
107 TEST_ESP_OK(nvs_get_str(handle_2, "key", buf, &buf_len));
116 nvs_close(handle_2);
199 nvs_handle_t handle_2; variable
201 TEST_ESP_OK(nvs_open("test_k2", NVS_READWRITE, &handle_2));
[all …]
/hal_espressif-3.6.0/components/nvs_flash/test_nvs_host/
Dtest_nvs.cpp591 nvs_handle_t handle_2; variable
605 CHECK(nvs_open("just_kidding", NVS_READONLY, &handle_2) == ESP_ERR_NVS_NOT_FOUND);
608 nvs_close(handle_2);
671 nvs_handle_t handle_2; variable
672 TEST_ESP_OK(nvs_open("namespace2", NVS_READWRITE, &handle_2));
673 TEST_ESP_OK(nvs_set_i32(handle_2, "foo", 0x3456789a));
675 TEST_ESP_OK(nvs_set_str(handle_2, "key", str));
682 TEST_ESP_OK(nvs_get_i32(handle_2, "foo", &v2));
689 TEST_ESP_OK(nvs_get_str(handle_2, "key", NULL, &buf_len_needed));
693 TEST_ESP_ERR(ESP_ERR_NVS_INVALID_LENGTH, nvs_get_str(handle_2, "key", buf, &buf_len_short));
[all …]
Dtest_nvs_handle.cpp94 NVSHandleSimple *handle_2; variable
109 …er::get_instance()->open_handle(NVS_DEFAULT_PART_NAME, "ns_1", NVS_READONLY, &handle_2) == ESP_OK);
110 CHECK(handle_2->set_item("key", 47) == ESP_ERR_NVS_READ_ONLY);
113 delete handle_2;