nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
keep_alive_event.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#ifndef _KEEP_ALIVE_EVENT_H_
8#define _KEEP_ALIVE_EVENT_H_
9
17#include <app_event_manager.h>
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
33 struct app_event_header header;
34};
35
37
44static inline void keep_alive(void)
45{
46 struct keep_alive_event *event = new_keep_alive_event();
47
48 APP_EVENT_SUBMIT(event);
49}
50
51#ifdef __cplusplus
52}
53#endif
54
59#endif /* _KEEP_ALIVE_EVENT_H_ */
Application Event Manager header.
Application Event Manager profiler tracer header.
#define APP_EVENT_TYPE_DECLARE(ename)
Declare an event type.
Definition app_event_manager.h:143
#define APP_EVENT_SUBMIT(event)
Submit an event.
Definition app_event_manager.h:198
static void keep_alive(void)
Keep the device alive.
Definition keep_alive_event.h:44
struct app_event_header header
Definition keep_alive_event.h:33
Simple event to keep the power manager alive.
Definition keep_alive_event.h:31