NVDS API. More...
#include <stdint.h>
#include <stdbool.h>
Go to the source code of this file.
Classes | |
struct | nvds_drv_func_t |
NVDS drive function struct. More... | |
struct | nvds_func_t |
NVDS function struct. More... | |
struct | mesh_config_dev_num_t |
Macros | |
#define | NV_TAGCAT_APP 0x4000 |
#define | NV_TAG_APP(idx) (NV_TAGCAT_APP | ((idx) & 0x3FFF)) |
Typedefs | |
typedef uint16_t | NvdsTag_t |
NVDS Item tag. More... | |
Enumerations | |
enum | NVDS_STATUS { NVDS_SUCCESS, NVDS_GC_COMPLETE, NVDS_FAIL, NVDS_NOT_INIT, NVDS_TAG_NOT_EXISTED, NVDS_SPACE_NOT_ENOUGH, NVDS_LENGTH_OUT_OF_RANGE, NVDS_INVALID_PARA, NVDS_INVALID_START_ADDR, NVDS_INVALID_SECTORS, NVDS_COMPACT_FAILED, NVDS_STORAGE_ACCESS_FAILED, NVDS_POINTER_NULL } |
NVDS Returned Status. More... | |
enum | NVDS_INIT_ERR_CODE { NVDS_INIT_SUCCESS, NVDS_INIT_MULT_SECTOR_NUM_ERR, NVDS_INIT_SING_SECTOR_NUM_ERR, NVDS_INIT_START_ADDR_NO_ALIGN, NVDS_INIT_AREA_SLOP_OVER, NVDS_INIT_CHECKSUM_FAIL, NVDS_INIT_TAG_LEN_ERR, NVDS_INIT_READ_TAG_NOT_COMPLETE, NVDS_INIT_MGR_ERR } |
NVDS initialization Return error code. More... | |
Functions | |
uint8_t | nvds_init (uint32_t start_addr, uint8_t sectors) |
Initialize the sectors for NVDS. More... | |
uint8_t | nvds_get (NvdsTag_t tag, uint16_t *p_len, uint8_t *p_buf) |
Read data from NVDS. More... | |
uint8_t | nvds_put (NvdsTag_t tag, uint16_t len, const uint8_t *p_buf) |
Write data to NVDS. If the tag does not exist, create one. More... | |
uint8_t | nvds_del (NvdsTag_t tag) |
Delete a tag in NVDS. More... | |
uint16_t | nvds_tag_length (NvdsTag_t tag) |
Get the length of a tag in NVDS. More... | |
uint8_t | nvds_drv_func_replace (nvds_drv_func_t *p_nvds_drv_func) |
Replace the drive function. More... | |
uint8_t | nvds_func_replace (nvds_func_t *p_nvds_func) |
Replace the function in NVDS. More... | |
void | nvds_retention_size (uint8_t bond_dev_num, mesh_config_dev_num_t mesh_config_dev_num) |
Calculate the space reserved for system. More... | |
NVDS API.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of GOODIX nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file gr533x_nvds.h.