nRF Connect SDK API
0.1.0
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
>
18
#include <
app_event_manager_profiler_tracer.h
>
19
20
#ifdef __cplusplus
21
extern
"C"
{
22
#endif
23
28
struct
button_event
{
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
48
extern
"C"
{
49
#endif
50
51
APP_EVENT_TYPE_DECLARE
(
button_event
);
52
53
#ifdef __cplusplus
54
}
55
#endif
56
57
#endif
/* _BUTTON_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
button_event::pressed
bool pressed
Definition:
button_event.h:36
button_event::header
struct app_event_header header
Definition:
button_event.h:30
button_event::key_id
uint16_t key_id
Definition:
button_event.h:33
button_event
Button event.
Definition:
button_event.h:28
include
caf
events
button_event.h
Generated on Thu Sep 26 2024 10:53:16 for nRF Connect SDK API by
1.9.6