Data Logger BLE Cellular Board
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
7/**@file
8 *
9 * @brief Watchdog module for Asset Tracker v2
10 */
11
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
22
25 uint32_t timeout;
26};
27
28/** @brief Watchdog library event handler.
29 *
30 * @param[in] evt The event and any associated parameters.
31 */
32typedef void (*watchdog_evt_handler_t)(const struct watchdog_evt *evt);
33
34/** @brief Initialize and start application watchdog module.
35 *
36 * @return Zero on success, otherwise a negative error code is returned.
37 */
39
41
42#ifdef __cplusplus
43}
44#endif
45
46#endif /* WATCHDOG_APP_H__ */
enum watchdog_evt_type type
uint32_t timeout
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.
watchdog_evt_type
@ WATCHDOG_EVT_FEED
@ WATCHDOG_EVT_START
@ WATCHDOG_EVT_TIMEOUT_INSTALLED
void watchdog_register_handler(watchdog_evt_handler_t evt_handler)
Register handler to receive watchdog callback events.