Go to the documentation of this file.
48 #ifndef __GR55XX_NVDS_H__
49 #define __GR55XX_NVDS_H__
56 #define NV_TAGCAT_APP 0x4000
62 #define NV_TAG_APP(idx) (NV_TAGCAT_APP | ((idx) & 0x3FFF))
110 uint8_t
nvds_init(uint32_t start_addr, uint8_t sectors);
uint8_t nvds_del(NvdsTag_t tag)
Delete a tag in NVDS.
@ NVDS_SPACE_NOT_ENOUGH
NVDS space is not enough.
uint32_t local_hal_flash_write(const uint32_t addr, const uint8_t *buf, const uint32_t size)
Write flash Memory.
uint32_t local_hal_flash_read(const uint32_t addr, uint8_t *buf, const uint32_t size)
Read flash Memory.
@ NVDS_POINTER_NULL
NVDS or driver function repalce error: NULL.
@ NVDS_COMPACT_FAILED
NVDS failed to compact sectors.
@ NVDS_NOT_INIT
NVDS not initialize.
void local_hal_flash_set_security(bool enable)
Enable encrypted and decrypted in write-read operations.
bool local_hal_flash_get_security(void)
Get encrypted and decrypted status in write-read operations.
@ NVDS_LENGTH_OUT_OF_RANGE
NVDS length out of range.
@ NVDS_GC_COMPLETE
NVDS garbage collection complete.
@ NVDS_INVALID_PARA
NVDS invalid params.
@ NVDS_STORAGE_ACCESS_FAILED
NVDS failed to access storage.
bool local_hal_flash_erase(const uint32_t addr, const uint32_t size)
Erase flash region.
void local_hal_flash_get_info(uint32_t *id, uint32_t *size)
Get Flash information.
uint8_t nvds_deinit(uint32_t start_addr, uint8_t sectors)
De-initialize the sectors for NVDS.
@ NVDS_INVALID_SECTORS
NVDS invalid sector.
uint8_t nvds_put(NvdsTag_t tag, uint16_t len, const uint8_t *p_buf)
Write data to NVDS.
uint16_t nvds_tag_length(NvdsTag_t tag)
Get the length of a tag in NVDS.
bool local_hal_flash_erase_chip(void)
Flash operation API based on hal flash.
NVDS_STATUS
NVDS Returned Status.
@ NVDS_SUCCESS
NVDS succeeds.
uint32_t local_hal_flash_write_r(const uint32_t addr, const uint8_t *buf, const uint32_t size)
Write flash Memory reliably.
@ NVDS_TAG_NOT_EXISTED
NVDS tag does not exist.
uint8_t nvds_init(uint32_t start_addr, uint8_t sectors)
Initialize the sectors for NVDS.
uint8_t nvds_get(NvdsTag_t tag, uint16_t *p_len, uint8_t *p_buf)
Read data from NVDS.
@ NVDS_INVALID_START_ADDR
NVDS invalid start address.
uint16_t NvdsTag_t
NVDS Item tag.