nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
force_power_down_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 _FORCE_POWER_DOWN_EVENT_H_
8#define _FORCE_POWER_DOWN_EVENT_H_
9
17#include <app_event_manager.h>
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
35 struct app_event_header header;
36};
37
39
43static inline void force_power_down(void)
44{
45 struct force_power_down_event *event = new_force_power_down_event();
46
47 APP_EVENT_SUBMIT(event);
48}
49
50
51#ifdef __cplusplus
52}
53#endif
54
59#endif /* _FORCE_POWER_DOWN_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 force_power_down(void)
Force power down now.
Definition force_power_down_event.h:43
struct app_event_header header
Definition force_power_down_event.h:35
Simple event to force a quick power down.
Definition force_power_down_event.h:33