|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
#include "nv_porting.h"#include "nv_config.h"#include "nv_storage_handle.h"#include "common_def.h"#include "osal_task.h"#include "osal_msgqueue.h"#include "osal_semaphore.h"#include "cstl_hash.h"#include "nv_async_store.h"
宏定义 | |
| #define | MAX_BINARY_VAL 1 |
| #define | NV_QUEUE_ID 0XFFFFFF |
| #define | NV_MSG_MAX_SIZE sizeof(nv_queue_msg_handle_t) |
函数 | |
| errcode_t | nv_async_read_with_attr (uint16_t key, uint16_t kvalue_max_length, uint16_t *kvalue_length, uint8_t *kvalue, nv_key_attr_t *attr) |
| errcode_t | nv_async_write_with_attr (uint16_t key, const uint8_t *kvalue, uint16_t kvalue_length, nv_key_attr_t *attr, nv_storage_completed_callback func) |
| errcode_t | nv_async_flush (void) |
| errcode_t | nv_key_map_init (kv_store_t store, uint8_t num_pages) |
| errcode_t | nv_async_init (kv_store_t store, uint8_t num_pages) |
变量 | |
| osal_semaphore | nv_async_sem |
| CstlHash * | g_hash_table = NULL |
| #define MAX_BINARY_VAL 1 |
| #define NV_MSG_MAX_SIZE sizeof(nv_queue_msg_handle_t) |
| #define NV_QUEUE_ID 0XFFFFFF |
| errcode_t nv_async_flush | ( | void | ) |
| errcode_t nv_async_init | ( | kv_store_t | store, |
| uint8_t | num_pages | ||
| ) |
| errcode_t nv_async_read_with_attr | ( | uint16_t | key, |
| uint16_t | kvalue_max_length, | ||
| uint16_t * | kvalue_length, | ||
| uint8_t * | kvalue, | ||
| nv_key_attr_t * | attr | ||
| ) |
| errcode_t nv_async_write_with_attr | ( | uint16_t | key, |
| const uint8_t * | kvalue, | ||
| uint16_t | kvalue_length, | ||
| nv_key_attr_t * | attr, | ||
| nv_storage_completed_callback | func | ||
| ) |
| errcode_t nv_key_map_init | ( | kv_store_t | store, |
| uint8_t | num_pages | ||
| ) |
| osal_semaphore nv_async_sem |