nRF Connect SDK API
3.4.99
Toggle main menu visibility
Loading...
Searching...
No Matches
ble_event.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2018-2021 Nordic Semiconductor ASA
3
*
4
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5
*/
6
7
#ifndef _BLE_EVENT_H_
8
#define _BLE_EVENT_H_
9
15
16
#include <zephyr/bluetooth/bluetooth.h>
17
#include <zephyr/bluetooth/conn.h>
18
19
#include <
app_event_manager.h
>
20
#include <
app_event_manager_profiler_tracer.h
>
21
#include "
hwid.h
"
22
23
#if CONFIG_DESKTOP_BLE_QOS_ENABLE
24
#include "
chmap_filter.h
"
25
#endif
26
27
#ifdef __cplusplus
28
extern
"C"
{
29
#endif
30
32
enum
peer_type
{
33
PEER_TYPE_MOUSE
,
34
PEER_TYPE_KEYBOARD
,
35
36
PEER_TYPE_COUNT
37
};
38
40
struct
ble_discovery_complete_event
{
41
struct
app_event_header
header
;
42
43
struct
bt_gatt_dm *
dm
;
44
uint16_t
pid
;
45
uint8_t
hwid
[
HWID_LEN
];
46
bool
peer_llpm_support
;
47
bool
peer_sci_support
;
48
enum
peer_type
peer_type
;
49
};
50
APP_EVENT_TYPE_DECLARE
(
ble_discovery_complete_event
);
51
52
#if CONFIG_DESKTOP_BLE_QOS_ENABLE
54
struct
ble_qos_event {
55
struct
app_event_header header;
56
57
uint8_t chmap[
CHMAP_BLE_BITMASK_SIZE
];
58
};
59
APP_EVENT_TYPE_DECLARE
(ble_qos_event);
60
#endif
61
62
#ifdef __cplusplus
63
}
64
#endif
65
69
70
#endif
/* _BLE_EVENT_H_ */
app_event_manager.h
Application Event Manager header.
app_event_manager_profiler_tracer.h
Application Event Manager profiler tracer header.
chmap_filter.h
APP_EVENT_TYPE_DECLARE
#define APP_EVENT_TYPE_DECLARE(ename)
Declare an event type.
Definition
app_event_manager.h:143
peer_type
peer_type
Peer types (position in bitmask).
Definition
ble_event.h:32
PEER_TYPE_COUNT
@ PEER_TYPE_COUNT
Definition
ble_event.h:36
PEER_TYPE_KEYBOARD
@ PEER_TYPE_KEYBOARD
Definition
ble_event.h:34
PEER_TYPE_MOUSE
@ PEER_TYPE_MOUSE
Definition
ble_event.h:33
CHMAP_BLE_BITMASK_SIZE
#define CHMAP_BLE_BITMASK_SIZE
Definition
chmap_filter.h:45
HWID_LEN
#define HWID_LEN
Definition
hwid.h:14
hwid.h
ble_discovery_complete_event::peer_llpm_support
bool peer_llpm_support
Definition
ble_event.h:46
ble_discovery_complete_event::header
struct app_event_header header
Definition
ble_event.h:41
ble_discovery_complete_event::peer_type
enum peer_type peer_type
Definition
ble_event.h:48
ble_discovery_complete_event::hwid
uint8_t hwid[HWID_LEN]
Definition
ble_event.h:45
ble_discovery_complete_event::pid
uint16_t pid
Definition
ble_event.h:44
ble_discovery_complete_event::peer_sci_support
bool peer_sci_support
Definition
ble_event.h:47
ble_discovery_complete_event::dm
struct bt_gatt_dm * dm
Definition
ble_event.h:43
ble_discovery_complete_event
BLE discovery complete event.
Definition
ble_event.h:40
applications
nrf_desktop
src
events
ble_event.h
Generated on
for nRF Connect SDK API by
1.17.0