NHAL Interface v0.5.0
Hardware Abstraction Layer Interface for Embedded Systems
|
Hardware Abstraction Layer for Watchdog Timer management. More...
Go to the source code of this file.
Functions | |
nhal_result_t | nhal_wdt_init (struct nhal_wdt_context *ctx) |
Initialize watchdog context. | |
nhal_result_t | nhal_wdt_deinit (struct nhal_wdt_context *ctx) |
Deinitialize watchdog context. | |
nhal_result_t | nhal_wdt_set_config (struct nhal_wdt_context *ctx, struct nhal_wdt_config *config) |
Set watchdog configuration. | |
nhal_result_t | nhal_wdt_get_config (struct nhal_wdt_context *ctx, struct nhal_wdt_config *config) |
Get current watchdog configuration. | |
nhal_result_t | nhal_wdt_enable (struct nhal_wdt_context *ctx) |
Start/Enable the watchdog timer. | |
nhal_result_t | nhal_wdt_disable (struct nhal_wdt_context *ctx) |
Stop/Disable the watchdog timer (if supported) | |
nhal_result_t | nhal_wdt_feed (struct nhal_wdt_context *ctx) |
Feed/Reset the watchdog timer. | |
Hardware Abstraction Layer for Watchdog Timer management.
This file defines the API for interacting with watchdog timers. It provides functions for initialization, configuration, feeding, and control operations.
The watchdog timer provides system reliability by automatically resetting the system if it is not periodically serviced within the configured timeout period.
Definition in file nhal_wdt.h.
nhal_result_t nhal_wdt_deinit | ( | struct nhal_wdt_context * | ctx | ) |
Deinitialize watchdog context.
ctx | Pointer to watchdog context structure |
nhal_result_t nhal_wdt_disable | ( | struct nhal_wdt_context * | ctx | ) |
Stop/Disable the watchdog timer (if supported)
ctx | Pointer to watchdog context structure |
nhal_result_t nhal_wdt_enable | ( | struct nhal_wdt_context * | ctx | ) |
Start/Enable the watchdog timer.
ctx | Pointer to watchdog context structure |
nhal_result_t nhal_wdt_feed | ( | struct nhal_wdt_context * | ctx | ) |
Feed/Reset the watchdog timer.
ctx | Pointer to watchdog context structure |
nhal_result_t nhal_wdt_get_config | ( | struct nhal_wdt_context * | ctx, |
struct nhal_wdt_config * | config | ||
) |
Get current watchdog configuration.
ctx | Pointer to watchdog context structure |
config | Pointer to configuration structure to fill |
nhal_result_t nhal_wdt_init | ( | struct nhal_wdt_context * | ctx | ) |
Initialize watchdog context.
ctx | Pointer to watchdog context structure |
nhal_result_t nhal_wdt_set_config | ( | struct nhal_wdt_context * | ctx, |
struct nhal_wdt_config * | config | ||
) |
Set watchdog configuration.
ctx | Pointer to watchdog context structure |
config | Pointer to configuration structure |