Functions | |
| uint8_t | nvds_init (uint32_t start_addr, uint8_t sectors) |
| Initialize the sectors for NVDS. More... | |
| uint8_t | nvds_deinit (uint32_t start_addr, uint8_t sectors) |
| De-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) |
| Calculate the space reserved for system. More... | |
| uint8_t nvds_deinit | ( | uint32_t | start_addr, |
| uint8_t | sectors | ||
| ) |
De-initialize the sectors for NVDS.
| [in] | start_addr | Start address of NVDS area. If the value does not equal zero, it must be sector-aligned. If the value equals zero, NVDS area will locate in the last two sector(s) in flash memory. |
| [in] | sectors | The number of sectors. |
| uint8_t nvds_del | ( | NvdsTag_t | tag | ) |
Delete a tag in NVDS.
| [in] | tag | The tag to be deleted. |
| uint8_t nvds_drv_func_replace | ( | nvds_drv_func_t * | p_nvds_drv_func | ) |
Replace the drive function.
| [in] | p_nvds_drv_func | Pointer to drive functions. |
| uint8_t nvds_func_replace | ( | nvds_func_t * | p_nvds_func | ) |
Replace the function in NVDS.
| [in] | p_nvds_func | Pointer to nvds functions. |
| uint8_t nvds_get | ( | NvdsTag_t | tag, |
| uint16_t * | p_len, | ||
| uint8_t * | p_buf | ||
| ) |
Read data from NVDS.
| [in] | tag | Valid NVDS item tag. |
| [in,out] | p_len | Pointer to the length of data. |
| [out] | p_buf | Data is read into the buffer. |
| uint8_t nvds_init | ( | uint32_t | start_addr, |
| uint8_t | sectors | ||
| ) |
Initialize the sectors for NVDS.
| [in] | start_addr | Start address of NVDS area. If the value does not equal zero, it must be sector-aligned. If the value equals zero, NVDS area will locate in the last two sector(s) in flash memory. |
| [in] | sectors | The number of sectors. |
| 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.
| [in] | tag | Valid NVDS item tag. |
| [in] | len | Length of data to be written. |
| [in] | p_buf | Data to be written. |
| void nvds_retention_size | ( | uint8_t | bond_dev_num | ) |
Calculate the space reserved for system.
| [in] | bond_dev_num | The number of bond device. |
| uint16_t nvds_tag_length | ( | NvdsTag_t | tag | ) |
Get the length of a tag in NVDS.
| [in] | tag | The tag to get the length. |