|
Zephyr Project API
3.2.0
A Scalable Open Source RTOS
|
Public APIs to get device Information. More...
#include <zephyr/types.h>#include <sys/types.h>#include <stddef.h>#include <errno.h>#include <zephyr/kernel.h>#include <syscalls/hwinfo.h>Go to the source code of this file.
Macros | |
| #define | RESET_PIN BIT(0) |
| #define | RESET_SOFTWARE BIT(1) |
| #define | RESET_BROWNOUT BIT(2) |
| #define | RESET_POR BIT(3) |
| #define | RESET_WATCHDOG BIT(4) |
| #define | RESET_DEBUG BIT(5) |
| #define | RESET_SECURITY BIT(6) |
| #define | RESET_LOW_POWER_WAKE BIT(7) |
| #define | RESET_CPU_LOCKUP BIT(8) |
| #define | RESET_PARITY BIT(9) |
| #define | RESET_PLL BIT(10) |
| #define | RESET_CLOCK BIT(11) |
| #define | RESET_HARDWARE BIT(12) |
| #define | RESET_USER BIT(13) |
| #define | RESET_TEMPERATURE BIT(14) |
Functions | |
| ssize_t | hwinfo_get_device_id (uint8_t *buffer, size_t length) |
| Copy the device id to a buffer. More... | |
| int | hwinfo_get_reset_cause (uint32_t *cause) |
| Retrieve cause of device reset. More... | |
| int | hwinfo_clear_reset_cause (void) |
| Clear cause of device reset. More... | |
| int | hwinfo_get_supported_reset_cause (uint32_t *supported) |
| Get supported reset cause flags. More... | |
Public APIs to get device Information.