Home
last modified time | relevance | path

Searched refs:nsIndex (Results 1 – 10 of 10) sorted by relevance

/hal_espressif-3.6.0/components/nvs_flash/src/
Dnvs_storage.hpp54 uint8_t nsIndex; member
74 esp_err_t createOrOpenNamespace(const char* nsName, bool canCreate, uint8_t& nsIndex);
76 …esp_err_t writeItem(uint8_t nsIndex, ItemType datatype, const char* key, const void* data, size_t …
78 …esp_err_t readItem(uint8_t nsIndex, ItemType datatype, const char* key, void* data, size_t dataSiz…
80 … esp_err_t getItemDataSize(uint8_t nsIndex, ItemType datatype, const char* key, size_t& dataSize);
82 esp_err_t eraseItem(uint8_t nsIndex, ItemType datatype, const char* key);
85 esp_err_t writeItem(uint8_t nsIndex, const char* key, const T& value) in writeItem() argument
87 return writeItem(nsIndex, itemTypeOf(value), key, &value, sizeof(value)); in writeItem()
91 esp_err_t readItem(uint8_t nsIndex, const char* key, T& value) in readItem() argument
93 return readItem(nsIndex, itemTypeOf(value), key, &value, sizeof(value)); in readItem()
[all …]
Dnvs_storage.cpp49 entry->nsIndex = item.nsIndex; in populateBlobIndices()
78 && (item.nsIndex == e.nsIndex) in eraseOrphanDataBlobs()
82 p.eraseItem(item.nsIndex, item.datatype, item.key, item.chunkIndex); in eraseOrphanDataBlobs()
148 esp_err_t Storage::findItem(uint8_t nsIndex, ItemType datatype, const char* key, Page* &page, Item&… in findItem() argument
152 auto err = it->findItem(nsIndex, datatype, key, itemIndex, item, chunkIdx, chunkStart); in findItem()
161 esp_err_t Storage::writeMultiPageBlob(uint8_t nsIndex, const char* key, const void* data, size_t da… in writeMultiPageBlob() argument
211 err = page.writeItem(nsIndex, ItemType::BLOB_DATA, key, in writeMultiPageBlob()
247 … err = getCurrentPage().writeItem(nsIndex, ItemType::BLOB_IDX, key, item.data, sizeof(item.data)); in writeMultiPageBlob()
257 it->mPage->eraseItem(nsIndex, ItemType::BLOB_DATA, key, ii++); in writeMultiPageBlob()
264 esp_err_t Storage::writeItem(uint8_t nsIndex, ItemType datatype, const char* key, const void* data,… in writeItem() argument
[all …]
Dnvs_page.hpp96 …esp_err_t writeItem(uint8_t nsIndex, ItemType datatype, const char* key, const void* data, size_t …
98 …esp_err_t readItem(uint8_t nsIndex, ItemType datatype, const char* key, void* data, size_t dataSiz…
100 …esp_err_t cmpItem(uint8_t nsIndex, ItemType datatype, const char* key, const void* data, size_t da…
102 …esp_err_t eraseItem(uint8_t nsIndex, ItemType datatype, const char* key, uint8_t chunkIdx = CHUNK_…
104 …esp_err_t findItem(uint8_t nsIndex, ItemType datatype, const char* key, uint8_t chunkIdx = CHUNK_A…
106 …esp_err_t findItem(uint8_t nsIndex, ItemType datatype, const char* key, size_t &itemIndex, Item& i…
109 esp_err_t writeItem(uint8_t nsIndex, const char* key, const T& value) in writeItem() argument
111 return writeItem(nsIndex, itemTypeOf(value), key, &value, sizeof(value)); in writeItem()
115 esp_err_t readItem(uint8_t nsIndex, const char* key, T& value) in readItem() argument
117 return readItem(nsIndex, itemTypeOf(value), key, &value, sizeof(value)); in readItem()
[all …]
Dnvs_types.cpp24 result = esp_rom_crc32_le(result, p + offsetof(Item, nsIndex), in calculateCrc32()
25 offsetof(Item, crc32) - offsetof(Item, nsIndex)); in calculateCrc32()
35 result = esp_rom_crc32_le(result, p + offsetof(Item, nsIndex), in calculateCrc32WithoutValue()
36 offsetof(Item, datatype) - offsetof(Item, nsIndex)); in calculateCrc32WithoutValue()
Dnvs_types.hpp55 uint8_t nsIndex; member
85 …Item(uint8_t nsIndex, ItemType datatype, uint8_t span, const char* key_, uint8_t chunkIdx = CHUNK_… in Item() argument
86 : nsIndex(nsIndex), datatype(datatype), span(span), chunkIndex(chunkIdx) in Item()
Dnvs_page.cpp166 esp_err_t Page::writeItem(uint8_t nsIndex, ItemType datatype, const char* key, const void* data, si… in writeItem() argument
218 item = Item(nsIndex, datatype, span, key, chunkIdx); in writeItem()
266 esp_err_t Page::readItem(uint8_t nsIndex, ItemType datatype, const char* key, void* data, size_t da… in readItem() argument
275 esp_err_t rc = findItem(nsIndex, datatype, key, index, item, chunkIdx, chunkStart); in readItem()
317 esp_err_t Page::cmpItem(uint8_t nsIndex, ItemType datatype, const char* key, const void* data, size… in cmpItem() argument
326 esp_err_t rc = findItem(nsIndex, datatype, key, index, item, chunkIdx, chunkStart); in cmpItem()
369 esp_err_t Page::eraseItem(uint8_t nsIndex, ItemType datatype, const char* key, uint8_t chunkIdx, Ve… in eraseItem() argument
373 esp_err_t rc = findItem(nsIndex, datatype, key, index, item, chunkIdx, chunkStart); in eraseItem()
380 esp_err_t Page::findItem(uint8_t nsIndex, ItemType datatype, const char* key, uint8_t chunkIdx, Ver… in findItem() argument
384 return findItem(nsIndex, datatype, key, index, item, chunkIdx, chunkStart); in findItem()
[all …]
Dnvs_partition_manager.cpp180 uint8_t nsIndex; in open_handle() local
196 esp_err_t err = sHandle->createOrOpenNamespace(ns_name, open_mode == NVS_READWRITE, nsIndex); in open_handle()
201 …Simple* new_handle = new (std::nothrow) NVSHandleSimple(open_mode==NVS_READONLY, nsIndex, sHandle); in open_handle()
Dnvs_handle_simple.hpp36 NVSHandleSimple(bool readOnly, uint8_t nsIndex, Storage *StoragePtr) : in NVSHandleSimple() argument
38 mNsIndex(nsIndex), in NVSHandleSimple()
Dnvs_pagemanager.cpp80 … (it->eraseItem(item.nsIndex, item.datatype, item.key, item.chunkIndex) == ESP_OK)) { in load()
90 … (it->eraseItem(item.nsIndex, ItemType::BLOB, item.key, item.chunkIndex) == ESP_OK)) { in load()
/hal_espressif-3.6.0/components/nvs_flash/test_nvs_host/
Dtest_nvs.cpp58 item1.nsIndex = 1;
72 item2.nsIndex = 2;