zephyr/doc/hardware/peripherals/bbram.rst
Yuval Peress d162bdb202 bbram: Add documentation
- Add doxygen group and improve documentation for bbram.h
- Add a bbram section under peripherals in the main doc/ directory

Fixes #55257

Signed-off-by: Yuval Peress <peress@google.com>
2023-05-05 10:57:01 -05:00

22 lines
844 B
ReStructuredText

.. _bbram_api:
Battery Backed RAM (BBRAM)
##########################
The BBRAM APIs allow interfacing with the unique properties of this memory region. The following
common types of BBRAM properties are easily accessed via this API:
- IBBR (invalid) state - check that the BBRAM is not corrupt.
- VSBY (voltage standby) state - check if the BBRAM is using standby voltage.
- VCC (active power) state - check if the BBRAM is on normal power.
- Size - get the size (in bytes) of the BBRAM region.
Along with these, the API provides a means for reading and writing to the memory region via
:c:func:`bbram_read` and :c:func:`bbram_write` respectively. Both functions are expected to only
succeed if the BBRAM is in a valid state and the operation is bounded to the memory region.
API Reference
*************
.. doxygengroup:: bbram_interface