Go to the source code of this file.
|
| struct | nvs_fs |
| | Non-volatile Storage File system structure. More...
|
| |
|
| int | nvs_mount (struct nvs_fs *fs) |
| | Mount an NVS file system onto the flash device specified in fs.
|
| |
| int | nvs_clear (struct nvs_fs *fs) |
| | Clear the NVS file system from flash.
|
| |
| ssize_t | nvs_write (struct nvs_fs *fs, uint16_t id, const void *data, size_t len) |
| | Write an entry to the file system.
|
| |
| int | nvs_delete (struct nvs_fs *fs, uint16_t id) |
| | Delete an entry from the file system.
|
| |
| ssize_t | nvs_read (struct nvs_fs *fs, uint16_t id, void *data, size_t len) |
| | Read an entry from the file system.
|
| |
| ssize_t | nvs_read_hist (struct nvs_fs *fs, uint16_t id, void *data, size_t len, uint16_t cnt) |
| | Read a history entry from the file system.
|
| |
| ssize_t | nvs_calc_free_space (struct nvs_fs *fs) |
| | Calculate the available free space in the file system.
|
| |
| size_t | nvs_sector_max_data_size (struct nvs_fs *fs) |
| | Tell how many contiguous free space remains in the currently active NVS sector.
|
| |
| int | nvs_sector_use_next (struct nvs_fs *fs) |
| | Close the currently active sector and switch to the next one.
|
| |