esp-idf/docs/en/api-reference/storage/wear-levelling.rst

29 lines
1.1 KiB
ReStructuredText

.. include:: ../../../../components/wear_levelling/README.rst
See Also
--------
- :doc:`FAT Filesystem <./fatfs>`
- :doc:`Partition Table documentation <../../api-guides/partition-tables>`
Application Example
-------------------
An example which combines the wear levelling driver with the FATFS library is provided in the :example:`storage/wear_levelling` directory. This example initializes the wear levelling driver, mounts FATFS partition, as well as writes and reads data from it using POSIX and C library APIs. See the :example_file:`storage/wear_levelling/README.md` file for more information.
High-Level API Reference
------------------------
Header Files
^^^^^^^^^^^^
* :component_file:`fatfs/vfs/esp_vfs_fat.h`
High level wear-levelling functions :cpp:func:`esp_vfs_fat_spiflash_mount_rw_wl`, :cpp:func:`esp_vfs_fat_spiflash_unmount_rw_wl` and struct :cpp:class:`esp_vfs_fat_mount_config_t` are described in :doc:`FAT Filesystem </api-reference/storage/fatfs>` documentation page.
Mid-Level API Reference
-----------------------
.. include-build-file:: inc/wear_levelling.inc