NHAL Interface
v0.5.0
Hardware Abstraction Layer Interface for Embedded Systems
Loading...
Searching...
No Matches
include
nhal_wdt.h
Go to the documentation of this file.
1
13
#ifndef NHAL_WDT_H
14
#define NHAL_WDT_H
15
16
#include <stdint.h>
17
#include <stddef.h>
18
19
#include "
nhal_common.h
"
20
#include "
nhal_wdt_types.h
"
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
31
nhal_result_t
nhal_wdt_init
(
struct
nhal_wdt_context
* ctx);
32
38
nhal_result_t
nhal_wdt_deinit
(
struct
nhal_wdt_context
* ctx);
39
46
nhal_result_t
nhal_wdt_set_config
(
struct
nhal_wdt_context
* ctx,
struct
nhal_wdt_config
* config);
47
54
nhal_result_t
nhal_wdt_get_config
(
struct
nhal_wdt_context
* ctx,
struct
nhal_wdt_config
* config);
55
61
nhal_result_t
nhal_wdt_enable
(
struct
nhal_wdt_context
* ctx);
62
68
nhal_result_t
nhal_wdt_disable
(
struct
nhal_wdt_context
* ctx);
69
75
nhal_result_t
nhal_wdt_feed
(
struct
nhal_wdt_context
* ctx);
76
77
#ifdef __cplusplus
78
}
79
#endif
80
81
#endif
/* NHAL_WDT_H */
nhal_common.h
nhal_result_t
nhal_result_t
Unified HAL result type for all peripheral operations.
Definition
nhal_common.h:22
nhal_wdt_get_config
nhal_result_t nhal_wdt_get_config(struct nhal_wdt_context *ctx, struct nhal_wdt_config *config)
Get current watchdog configuration.
nhal_wdt_deinit
nhal_result_t nhal_wdt_deinit(struct nhal_wdt_context *ctx)
Deinitialize watchdog context.
nhal_wdt_enable
nhal_result_t nhal_wdt_enable(struct nhal_wdt_context *ctx)
Start/Enable the watchdog timer.
nhal_wdt_init
nhal_result_t nhal_wdt_init(struct nhal_wdt_context *ctx)
Initialize watchdog context.
nhal_wdt_feed
nhal_result_t nhal_wdt_feed(struct nhal_wdt_context *ctx)
Feed/Reset the watchdog timer.
nhal_wdt_disable
nhal_result_t nhal_wdt_disable(struct nhal_wdt_context *ctx)
Stop/Disable the watchdog timer (if supported)
nhal_wdt_set_config
nhal_result_t nhal_wdt_set_config(struct nhal_wdt_context *ctx, struct nhal_wdt_config *config)
Set watchdog configuration.
nhal_wdt_types.h
Defines common types and structures for the Watchdog Timer Hardware Abstraction Layer (HAL).
nhal_wdt_config
Definition
nhal_wdt_types.h:26
nhal_wdt_context
Base watchdog context - always present, minimal footprint.
Definition
nhal_wdt_types.h:34
Generated by
1.9.8