nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
watchdog_app.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2021 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
12#ifndef WATCHDOG_APP_H__
13#define WATCHDOG_APP_H__
14
15#include <zephyr/kernel.h>
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
26
29 uint32_t timeout;
30};
31
36typedef void (*watchdog_evt_handler_t)(const struct watchdog_evt *evt);
37
43
53
54#ifdef __cplusplus
55}
56#endif
57
58#endif /* WATCHDOG_APP_H__ */
enum watchdog_evt_type type
Definition watchdog_app.h:28
uint32_t timeout
Definition watchdog_app.h:29
Definition watchdog_app.h:27
int watchdog_init_and_start(void)
Initialize and start application watchdog module.
void(* watchdog_evt_handler_t)(const struct watchdog_evt *evt)
Watchdog library event handler.
Definition watchdog_app.h:36
watchdog_evt_type
Definition watchdog_app.h:21
@ WATCHDOG_EVT_FEED
Definition watchdog_app.h:24
@ WATCHDOG_EVT_START
Definition watchdog_app.h:22
@ WATCHDOG_EVT_TIMEOUT_INSTALLED
Definition watchdog_app.h:23
void watchdog_register_handler(watchdog_evt_handler_t evt_handler)
Register handler to receive watchdog callback events.