![]() |
CI13LC SDK API手册
2.1.1
本手册用于描述CI13LC SDK各个组件和驱动API
|
宏定义 | |
| #define | NVDATA_ID_VOLUME 0x50000001 /*'VOLU'*/ |
| #define | NVDATA_ID_CWSL_START 0x50001000 /*CWSL*/ |
| #define | NVDATA_ID_VP_MOULD_INFO 0xA0000001 /*VP mould info*/ |
| #define | NVDATA_ID_USER_START 0x60000001 /*Start ID for user define. The ID user defined mast greater than this.*/ |
| #define | NVDATA_ID_USER_END 0xF0000000 /*End ID for user define. The ID user defined mast smaller than this.*/ |
| #define | CINV_FLASH_ERASE_BLOCK_SIZE (4096)/*4KB,32KB,64KB,4KB suggest,64KB max,so some used uint16_t for save code size*/ |
| #define | CINV_FEB_HEADER_MAGIC_VALID (0xABCDEF03) |
枚举 | |
| enum | cinv_item_ret_t { CINV_ITEM_UNINIT, CINV_OPER_FAILED, CINV_OPER_SUCCESS, CINV_ITEM_LEN_ERR } |
| nvdata function return value 更多... | |
函数 | |
| void | cinv_init (uint32_t flash_addr, uint32_t size) |
| initialize the nvdata management information and nvdata region 更多... | |
| cinv_item_ret_t | cinv_item_init (uint32_t id, uint16_t len, void *buf) |
| If the nvdata item does not already exist, it is created and initialized with the data passed to the function, if any. This function must be called before calling cinv_item_read() or cinv_item_write(). 更多... | |
| cinv_item_ret_t | cinv_item_read (uint32_t id, uint16_t len, void *buf, uint16_t *real_len) |
| Read data from nvdata. This function can be used to read an entire item or short. Read data is copied into *buf. If input length longer than item real length, read item real length data to *buf. 更多... | |
| cinv_item_ret_t | cinv_item_write (uint32_t id, uint16_t len, void *buf) |
| Write a data item to nvdata. 更多... | |
| cinv_item_ret_t | cinv_item_delete (uint32_t id) |
| Delete data item from nvdata. 更多... | |
| cinv_item_ret_t | cinv_register_hotid (uint32_t hot_id) |
| register hotid. 更多... | |
| void | nvdata_test (void *p_arg) |
| #define CINV_FEB_HEADER_MAGIC_VALID (0xABCDEF03) |
| #define CINV_FLASH_ERASE_BLOCK_SIZE (4096)/*4KB,32KB,64KB,4KB suggest,64KB max,so some used uint16_t for save code size*/ |
| #define NVDATA_ID_CWSL_START 0x50001000 /*CWSL*/ |
| #define NVDATA_ID_USER_END 0xF0000000 /*End ID for user define. The ID user defined mast smaller than this.*/ |
| #define NVDATA_ID_USER_START 0x60000001 /*Start ID for user define. The ID user defined mast greater than this.*/ |
| #define NVDATA_ID_VOLUME 0x50000001 /*'VOLU'*/ |
| #define NVDATA_ID_VP_MOULD_INFO 0xA0000001 /*VP mould info*/ |
| void nvdata_test | ( | void * | p_arg | ) |
1.8.14