nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
button_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 _BUTTON_EVENT_H_
8#define _BUTTON_EVENT_H_
9
17#include <app_event_manager.h>
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
30 struct app_event_header header;
31
33 uint16_t key_id;
34
36 bool pressed;
37};
38
39#ifdef __cplusplus
40}
41#endif
42
47#ifdef __cplusplus
48extern "C" {
49#endif
50
52
53#ifdef __cplusplus
54}
55#endif
56
57#endif /* _BUTTON_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
bool pressed
Definition button_event.h:36
struct app_event_header header
Definition button_event.h:30
uint16_t key_id
Definition button_event.h:33
Button event.
Definition button_event.h:28