Lines Matching refs:key
307 extern "C" esp_err_t nvs_erase_key(nvs_handle_t c_handle, const char* key) in nvs_erase_key() argument
310 ESP_LOGD(TAG, "%s %s\r\n", __func__, key); in nvs_erase_key()
317 return handle->erase_item(key); in nvs_erase_key()
334 static esp_err_t nvs_set(nvs_handle_t c_handle, const char* key, T value) in nvs_set() argument
337 ESP_LOGD(TAG, "%s %s %d %d", __func__, key, sizeof(T), (uint32_t) value); in nvs_set()
344 return handle->set_item(key, value); in nvs_set()
347 extern "C" esp_err_t nvs_set_i8 (nvs_handle_t handle, const char* key, int8_t value) in nvs_set_i8() argument
349 return nvs_set(handle, key, value); in nvs_set_i8()
352 extern "C" esp_err_t nvs_set_u8 (nvs_handle_t handle, const char* key, uint8_t value) in nvs_set_u8() argument
354 return nvs_set(handle, key, value); in nvs_set_u8()
357 extern "C" esp_err_t nvs_set_i16 (nvs_handle_t handle, const char* key, int16_t value) in nvs_set_i16() argument
359 return nvs_set(handle, key, value); in nvs_set_i16()
362 extern "C" esp_err_t nvs_set_u16 (nvs_handle_t handle, const char* key, uint16_t value) in nvs_set_u16() argument
364 return nvs_set(handle, key, value); in nvs_set_u16()
367 extern "C" esp_err_t nvs_set_i32 (nvs_handle_t handle, const char* key, int32_t value) in nvs_set_i32() argument
369 return nvs_set(handle, key, value); in nvs_set_i32()
372 extern "C" esp_err_t nvs_set_u32 (nvs_handle_t handle, const char* key, uint32_t value) in nvs_set_u32() argument
374 return nvs_set(handle, key, value); in nvs_set_u32()
377 extern "C" esp_err_t nvs_set_i64 (nvs_handle_t handle, const char* key, int64_t value) in nvs_set_i64() argument
379 return nvs_set(handle, key, value); in nvs_set_i64()
382 extern "C" esp_err_t nvs_set_u64 (nvs_handle_t handle, const char* key, uint64_t value) in nvs_set_u64() argument
384 return nvs_set(handle, key, value); in nvs_set_u64()
399 extern "C" esp_err_t nvs_set_str(nvs_handle_t c_handle, const char* key, const char* value) in nvs_set_str() argument
402 ESP_LOGD(TAG, "%s %s %s", __func__, key, value); in nvs_set_str()
408 return handle->set_string(key, value); in nvs_set_str()
411 extern "C" esp_err_t nvs_set_blob(nvs_handle_t c_handle, const char* key, const void* value, size_t… in nvs_set_blob() argument
414 ESP_LOGD(TAG, "%s %s %d", __func__, key, length); in nvs_set_blob()
420 return handle->set_blob(key, value, length); in nvs_set_blob()
425 static esp_err_t nvs_get(nvs_handle_t c_handle, const char* key, T* out_value) in nvs_get() argument
428 ESP_LOGD(TAG, "%s %s %d", __func__, key, sizeof(T)); in nvs_get()
434 return handle->get_item(key, *out_value); in nvs_get()
437 extern "C" esp_err_t nvs_get_i8 (nvs_handle_t c_handle, const char* key, int8_t* out_value) in nvs_get_i8() argument
439 return nvs_get(c_handle, key, out_value); in nvs_get_i8()
442 extern "C" esp_err_t nvs_get_u8 (nvs_handle_t c_handle, const char* key, uint8_t* out_value) in nvs_get_u8() argument
444 return nvs_get(c_handle, key, out_value); in nvs_get_u8()
447 extern "C" esp_err_t nvs_get_i16 (nvs_handle_t c_handle, const char* key, int16_t* out_value) in nvs_get_i16() argument
449 return nvs_get(c_handle, key, out_value); in nvs_get_i16()
452 extern "C" esp_err_t nvs_get_u16 (nvs_handle_t c_handle, const char* key, uint16_t* out_value) in nvs_get_u16() argument
454 return nvs_get(c_handle, key, out_value); in nvs_get_u16()
457 extern "C" esp_err_t nvs_get_i32 (nvs_handle_t c_handle, const char* key, int32_t* out_value) in nvs_get_i32() argument
459 return nvs_get(c_handle, key, out_value); in nvs_get_i32()
462 extern "C" esp_err_t nvs_get_u32 (nvs_handle_t c_handle, const char* key, uint32_t* out_value) in nvs_get_u32() argument
464 return nvs_get(c_handle, key, out_value); in nvs_get_u32()
467 extern "C" esp_err_t nvs_get_i64 (nvs_handle_t c_handle, const char* key, int64_t* out_value) in nvs_get_i64() argument
469 return nvs_get(c_handle, key, out_value); in nvs_get_i64()
472 extern "C" esp_err_t nvs_get_u64 (nvs_handle_t c_handle, const char* key, uint64_t* out_value) in nvs_get_u64() argument
474 return nvs_get(c_handle, key, out_value); in nvs_get_u64()
477 static esp_err_t nvs_get_str_or_blob(nvs_handle_t c_handle, nvs::ItemType type, const char* key, vo… in nvs_get_str_or_blob() argument
480 ESP_LOGD(TAG, "%s %s", __func__, key); in nvs_get_str_or_blob()
488 err = handle->get_item_size(type, key, dataSize); in nvs_get_str_or_blob()
504 return handle->get_typed_item(type, key, out_value, dataSize); in nvs_get_str_or_blob()
507 extern "C" esp_err_t nvs_get_str(nvs_handle_t c_handle, const char* key, char* out_value, size_t* l… in nvs_get_str() argument
509 return nvs_get_str_or_blob(c_handle, nvs::ItemType::SZ, key, out_value, length); in nvs_get_str()
512 extern "C" esp_err_t nvs_get_blob(nvs_handle_t c_handle, const char* key, void* out_value, size_t* … in nvs_get_blob() argument
514 return nvs_get_str_or_blob(c_handle, nvs::ItemType::BLOB, key, out_value, length); in nvs_get_blob()