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.
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.
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_STORAGE_ACCESS_FAILED
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_put(NvdsTag_t tag, uint16_t len, const uint8_t *p_buf)
Write data to NVDS. If the tag does not exist, create one.
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.
uint32_t local_hal_flash_write_r(const uint32_t addr, const uint8_t *buf, const uint32_t size)
Write flash Memory reliably.
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
uint16_t NvdsTag_t
NVDS Item tag.