WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
nv_async_store.c 文件参考
#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"
nv_async_store.c 的引用(Include)关系图:

宏定义

#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
 
CstlHashg_hash_table = NULL
 

宏定义说明

◆ MAX_BINARY_VAL

#define MAX_BINARY_VAL   1

◆ NV_MSG_MAX_SIZE

#define NV_MSG_MAX_SIZE   sizeof(nv_queue_msg_handle_t)

◆ NV_QUEUE_ID

#define NV_QUEUE_ID   0XFFFFFF

函数说明

◆ nv_async_flush()

errcode_t nv_async_flush ( void  )

◆ nv_async_init()

errcode_t nv_async_init ( kv_store_t  store,
uint8_t  num_pages 
)

◆ nv_async_read_with_attr()

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 
)

◆ nv_async_write_with_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 
)

◆ nv_key_map_init()

errcode_t nv_key_map_init ( kv_store_t  store,
uint8_t  num_pages 
)

变量说明

◆ g_hash_table

CstlHash* g_hash_table = NULL

◆ nv_async_sem

osal_semaphore nv_async_sem