nRF Connect SDK API 2.8.99
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
16#include <zephyr/bluetooth/bluetooth.h>
17#include <zephyr/bluetooth/conn.h>
18
19#include <app_event_manager.h>
21#include "hwid.h"
22
23#if CONFIG_DESKTOP_BLE_QOS_ENABLE
24#include "chmap_filter.h"
25#endif
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
38
41 struct app_event_header header;
42
43 struct bt_gatt_dm *dm;
44 uint16_t pid;
45 uint8_t hwid[HWID_LEN];
48};
50
51#if CONFIG_DESKTOP_BLE_QOS_ENABLE
53struct ble_qos_event {
54 struct app_event_header header;
55
56 uint8_t chmap[CHMAP_BLE_BITMASK_SIZE];
57};
58APP_EVENT_TYPE_DECLARE(ble_qos_event);
59#endif
60
61#ifdef __cplusplus
62}
63#endif
64
69#endif /* _BLE_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
peer_type
Peer types (position in bitmask).
Definition ble_event.h:32
@ PEER_TYPE_COUNT
Definition ble_event.h:36
@ PEER_TYPE_KEYBOARD
Definition ble_event.h:34
@ PEER_TYPE_MOUSE
Definition ble_event.h:33
#define CHMAP_BLE_BITMASK_SIZE
Definition chmap_filter.h:45
#define HWID_LEN
Definition hwid.h:10
bool peer_llpm_support
Definition ble_event.h:46
struct app_event_header header
Definition ble_event.h:41
enum peer_type peer_type
Definition ble_event.h:47
uint8_t hwid[HWID_LEN]
Definition ble_event.h:45
uint16_t pid
Definition ble_event.h:44
struct bt_gatt_dm * dm
Definition ble_event.h:43
BLE discovery complete event.
Definition ble_event.h:40