nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
ble_discovery_def.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7/* This configuration file defines discovery parameters for BLE central.
8 * Used only by ble_discovery module.
9 */
10
11/* This structure enforces the header file is included only once in the build.
12 * Violating this requirement triggers a multiple definition error at link time.
13 */
15
16#include "ble_event.h"
17
18struct bt_peripheral {
19 uint16_t pid;
21};
22
23static const uint16_t vendor_vid = 0x1915;
24
25/* Peripherals parameters. */
26static const struct bt_peripheral bt_peripherals[] = {
27 {
28 .pid = 0x52da,
29 .peer_type = PEER_TYPE_MOUSE,
30 },
31 {
32 .pid = 0x52db,
33 .peer_type = PEER_TYPE_MOUSE,
34 },
35 {
36 .pid = 0x52de,
37 .peer_type = PEER_TYPE_MOUSE,
38 },
39 {
40 .pid = 0x52dd,
41 .peer_type = PEER_TYPE_KEYBOARD,
42 },
43};
peer_type
Peer types (position in bitmask).
Definition ble_event.h:32
@ PEER_TYPE_KEYBOARD
Definition ble_event.h:34
@ PEER_TYPE_MOUSE
Definition ble_event.h:33
const struct @4 ble_discovery_include_once
static const uint16_t vendor_vid
Definition ble_discovery_def.h:23
static const struct bt_peripheral bt_peripherals[]
Definition ble_discovery_def.h:26
uint16_t pid
Definition ble_discovery_def.h:19
enum peer_type peer_type
Definition ble_discovery_def.h:20
Definition ble_discovery_def.h:18