nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
hid_event.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef _HID_EVENT_H_
8#define _HID_EVENT_H_
9
10#include <app_event_manager.h>
12#include "nrf_profiler.h"
13#include "hid_report_desc.h"
14
15
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30
33 struct app_event_header header;
35 const void *source;
36 const void *subscriber;
37 struct event_dyndata dyndata;
38};
39
41
42
45 struct app_event_header header;
47 const void *subscriber;
48 struct {
49 uint8_t priority;
53 uint8_t pipeline_size;
54 uint8_t report_max;
57 } params;
60 bool connected;
61};
62
64
65
68 struct app_event_header header;
70 const void *subscriber;
71 uint8_t report_id;
72 bool error;
73};
74
76
77
80 struct app_event_header header;
82 const void *subscriber;
83 uint8_t report_id;
84 bool enabled;
85};
86
88
89
90#ifdef __cplusplus
91}
92#endif
93
98#endif /* _HID_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_TYPE_DYNDATA_DECLARE(ename)
Declare an event type with dynamic data size.
Definition: app_event_manager.h:154
Header file HID report identifiers.
const void * source
Definition: hid_event.h:35
struct event_dyndata dyndata
Definition: hid_event.h:37
struct app_event_header header
Definition: hid_event.h:33
const void * subscriber
Definition: hid_event.h:36
HID report event.
Definition: hid_event.h:32
struct app_event_header header
Definition: hid_event.h:68
uint8_t report_id
Definition: hid_event.h:71
const void * subscriber
Definition: hid_event.h:70
bool error
Definition: hid_event.h:72
Report sent event.
Definition: hid_event.h:67
struct app_event_header header
Definition: hid_event.h:45
bool connected
Definition: hid_event.h:60
uint8_t pipeline_size
Definition: hid_event.h:53
uint8_t priority
Definition: hid_event.h:49
const void * subscriber
Definition: hid_event.h:47
uint8_t report_max
Definition: hid_event.h:54
struct hid_report_subscriber_event::@143 params
Report subscriber event.
Definition: hid_event.h:44
const void * subscriber
Definition: hid_event.h:82
uint8_t report_id
Definition: hid_event.h:83
struct app_event_header header
Definition: hid_event.h:80
bool enabled
Definition: hid_event.h:84
Report subscription event.
Definition: hid_event.h:79