2020-03-17 22:00:25 +08:00
|
|
|
.. _hwinfo_api:
|
|
|
|
|
|
|
|
Hardware Information
|
|
|
|
####################
|
|
|
|
|
|
|
|
Overview
|
|
|
|
********
|
|
|
|
|
|
|
|
The HW Info API provides access to hardware information such as device
|
2020-05-01 10:32:52 +08:00
|
|
|
identifiers and reset cause flags.
|
|
|
|
|
2021-10-22 22:16:56 +08:00
|
|
|
Reset cause flags can be used to determine why the device was reset; for
|
|
|
|
example due to a watchdog timeout or due to power cycling. Different devices
|
|
|
|
support different subset of flags. Use
|
|
|
|
:c:func:`hwinfo_get_supported_reset_cause` to retrieve the flags that are
|
|
|
|
supported by that device.
|
2020-03-17 22:00:25 +08:00
|
|
|
|
|
|
|
Configuration Options
|
|
|
|
*********************
|
|
|
|
|
|
|
|
Related configuration options:
|
|
|
|
|
2022-02-08 00:27:43 +08:00
|
|
|
* :kconfig:option:`CONFIG_HWINFO`
|
2020-03-17 22:00:25 +08:00
|
|
|
|
|
|
|
API Reference
|
|
|
|
*************
|
|
|
|
|
|
|
|
.. doxygengroup:: hwinfo_interface
|