|
Nexus Embedded Platform 0.1.0
Statically assembled reusable embedded mechanisms
|
Irreversible IWDG effects and neutral hardware reset causes. More...
#include "nexus/core/status.h"Go to the source code of this file.
Data Structures | |
| struct | nx_watchdog_state_t |
| Hardware-selected timeout bounds, including declared LSI uncertainty. More... | |
| struct | nx_watchdog_ops_t |
| Shared read-only methods using one provider state. More... | |
| struct | nx_watchdog_port |
| Immutable interface pointing to caller-owned state. More... | |
Macros | |
| #define | NX_RESET_POWER_ON 1u |
| #define | NX_RESET_PIN 2u |
| #define | NX_RESET_SOFTWARE 4u |
| #define | NX_RESET_IWDG 8u |
| #define | NX_RESET_WWDG 16u |
| #define | NX_RESET_LOW_POWER 32u |
| #define | NX_RESET_BROWNOUT 64u |
Typedefs | |
| typedef struct nx_watchdog_port | nx_watchdog_port_t |
Functions | |
| nx_result_t | nx_watchdog_port_enable (const nx_watchdog_port_t *port, uint32_t timeout_us, bool debug_freeze, nx_watchdog_state_t *state) |
| Enable IWDG with reviewed bounds; activation is irreversible. | |
| nx_result_t | nx_watchdog_port_feed (const nx_watchdog_port_t *port) |
| Feed an enabled IWDG without changing product health policy. | |
| nx_result_t | nx_watchdog_port_state (const nx_watchdog_port_t *port, nx_watchdog_state_t *state) |
| Query current watchdog effect and timeout uncertainty. | |
| uint32_t | nx_reset_cause (void) |
| Read latched boot reset causes captured before clearing flags. | |
Irreversible IWDG effects and neutral hardware reset causes.
Definition in file watchdog.h.
| #define NX_RESET_BROWNOUT 64u |
Definition at line 23 of file watchdog.h.
| #define NX_RESET_IWDG 8u |
Definition at line 20 of file watchdog.h.
| #define NX_RESET_LOW_POWER 32u |
Definition at line 22 of file watchdog.h.
| #define NX_RESET_PIN 2u |
Definition at line 18 of file watchdog.h.
| #define NX_RESET_POWER_ON 1u |
Definition at line 17 of file watchdog.h.
| #define NX_RESET_SOFTWARE 4u |
Definition at line 19 of file watchdog.h.
| #define NX_RESET_WWDG 16u |
Definition at line 21 of file watchdog.h.
| typedef struct nx_watchdog_port nx_watchdog_port_t |
Definition at line 16 of file watchdog.h.
| uint32_t nx_reset_cause | ( | void | ) |
Read latched boot reset causes captured before clearing flags.
| nx_result_t nx_watchdog_port_enable | ( | const nx_watchdog_port_t * | port, |
| uint32_t | timeout_us, | ||
| bool | debug_freeze, | ||
| nx_watchdog_state_t * | state ) |
Enable IWDG with reviewed bounds; activation is irreversible.
| [in,out] | port | Fixed provider; product owns feed/recovery policy. |
| [in] | timeout_us | Requested nominal timeout in maintained range. |
| [in] | debug_freeze | Whether debug halting freezes counting. |
| [out] | state | Actual timeout bounds and remaining effect, including enabled=true when later setup reports failure after enabling. |
| nx_result_t nx_watchdog_port_feed | ( | const nx_watchdog_port_t * | port | ) |
Feed an enabled IWDG without changing product health policy.
| [in,out] | port | Fixed enabled provider with one serialized feed owner. |
| nx_result_t nx_watchdog_port_state | ( | const nx_watchdog_port_t * | port, |
| nx_watchdog_state_t * | state ) |
Query current watchdog effect and timeout uncertainty.
| [in] | port | Fixed provider. |
| [out] | state | Current hardware/remembered initialization state. |