index.rst 1.7 KB

123456789101112131415161718192021222324252627282930313233343536
  1. Storage API
  2. ***********
  3. :link_to_translation:`zh_CN:[中文]`
  4. This section contains reference of the high-level storage APIs. They are based on low-level drivers such as SPI flash, SD/MMC.
  5. - :doc:`Partitions API <partition>` allow block based access to SPI flash according to the :doc:`/api-guides/partition-tables`.
  6. - :doc:`Non-Volatile Storage library (NVS) <nvs_flash>` implements a fault-tolerant wear-levelled key-value storage in SPI NOR flash.
  7. - :doc:`Virtual File System (VFS) <vfs>` library provides an interface for registration of file system drivers. SPIFFS, FAT and various other file system libraries are based on the VFS.
  8. - :doc:`SPIFFS <spiffs>` is a wear-levelled file system optimized for SPI NOR flash, well suited for small partition sizes and low throughput
  9. - :doc:`FAT <fatfs>` is a standard file system which can be used in SPI flash or on SD/MMC cards
  10. - :doc:`Wear Levelling <wear-levelling>` library implements a flash translation layer (FTL) suitable for SPI NOR flash. It is used as a container for FAT partitions in flash.
  11. .. note::
  12. It is suggested to use high-level APIs (``esp_partition`` or file system) instead of low-level driver APIs to access the SPI NOR flash.
  13. Due to the restriction of NOR flash and ESP hardware, accessing the main flash will affect the performance of the whole system. See :doc:`/api-reference/peripherals/spi_flash/index` to learn more about the limitations.
  14. .. toctree::
  15. :maxdepth: 1
  16. fatfs
  17. mass_mfg.rst
  18. nvs_flash
  19. nvs_encryption
  20. nvs_partition_gen.rst
  21. nvs_partition_parse.rst
  22. sdmmc
  23. partition
  24. spiffs
  25. vfs
  26. wear-levelling
  27. Code examples for this API section are provided in the :example:`storage` directory of ESP-IDF examples.