NHAL Interface
v0.5.0
Hardware Abstraction Layer Interface for Embedded Systems
Loading...
Searching...
No Matches
include
nhal_wdt_types.h
Go to the documentation of this file.
1
8
#ifndef NHAL_WDT_TYPES_H
9
#define NHAL_WDT_TYPES_H
10
11
#include <stddef.h>
12
#include <stdint.h>
13
#include <stdbool.h>
14
15
#include "
nhal_common.h
"
16
17
typedef
uint8_t
nhal_wdt_id
;
18
19
24
typedef
void (*
nhal_wdt_callback_t
)(
void
*context);
25
26
struct
nhal_wdt_config
{
27
uint32_t
timeout_ms
;
28
struct
nhal_wdt_impl_config *
impl_config
;
29
};
30
34
struct
nhal_wdt_context
{
35
nhal_wdt_id
wdt_id
;
36
uint32_t
timeout_ms
;
37
bool
is_started
;
38
39
struct
nhal_wdt_impl_ctx *
impl_ctx
;
40
};
41
42
#endif
/* NHAL_WDT_TYPES_H */
nhal_common.h
nhal_wdt_id
uint8_t nhal_wdt_id
Definition
nhal_wdt_types.h:17
nhal_wdt_callback_t
void(* nhal_wdt_callback_t)(void *context)
Callback function type for watchdog events.
Definition
nhal_wdt_types.h:24
nhal_wdt_config
Definition
nhal_wdt_types.h:26
nhal_wdt_config::impl_config
struct nhal_wdt_impl_config * impl_config
Platform-specific configuration.
Definition
nhal_wdt_types.h:28
nhal_wdt_config::timeout_ms
uint32_t timeout_ms
Timeout period in milliseconds.
Definition
nhal_wdt_types.h:27
nhal_wdt_context
Base watchdog context - always present, minimal footprint.
Definition
nhal_wdt_types.h:34
nhal_wdt_context::is_started
bool is_started
Definition
nhal_wdt_types.h:37
nhal_wdt_context::wdt_id
nhal_wdt_id wdt_id
Definition
nhal_wdt_types.h:35
nhal_wdt_context::timeout_ms
uint32_t timeout_ms
Cached timeout from last set_config call.
Definition
nhal_wdt_types.h:36
nhal_wdt_context::impl_ctx
struct nhal_wdt_impl_ctx * impl_ctx
Definition
nhal_wdt_types.h:39
Generated by
1.9.8