nRF Connect SDK API
3.4.99
Toggle main menu visibility
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
16
17
#include <
app_event_manager.h
>
18
#include <
app_event_manager_profiler_tracer.h
>
19
20
#ifdef __cplusplus
21
extern
"C"
{
22
#endif
23
31
struct
keep_alive_event
{
33
struct
app_event_header
header
;
34
};
35
36
APP_EVENT_TYPE_DECLARE
(
keep_alive_event
);
37
44
static
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
58
59
#endif
/* _KEEP_ALIVE_EVENT_H_ */
app_event_manager.h
Application Event Manager header.
app_event_manager_profiler_tracer.h
Application Event Manager profiler tracer header.
APP_EVENT_TYPE_DECLARE
#define APP_EVENT_TYPE_DECLARE(ename)
Declare an event type.
Definition
app_event_manager.h:143
APP_EVENT_SUBMIT
#define APP_EVENT_SUBMIT(event)
Submit an event.
Definition
app_event_manager.h:198
keep_alive
static void keep_alive(void)
Keep the device alive.
Definition
keep_alive_event.h:44
keep_alive_event::header
struct app_event_header header
Definition
keep_alive_event.h:33
keep_alive_event
Simple event to keep the power manager alive.
Definition
keep_alive_event.h:31
include
caf
events
keep_alive_event.h
Generated on
for nRF Connect SDK API by
1.17.0