NimBLE-Arduino 2.1.3
Loading...
Searching...
No Matches
nimble_opt_auto.h
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
20#ifndef H_NIMBLE_OPT_AUTO_
21#define H_NIMBLE_OPT_AUTO_
22
23#include "nimble/porting/nimble/include/syscfg/syscfg.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29/***
30 * Automatic options.
31 *
32 * These settings are generated automatically from the user-specified syscfg
33 * settings.
34 */
35
36#undef NIMBLE_BLE_ADVERTISE
37#define NIMBLE_BLE_ADVERTISE \
38 (MYNEWT_VAL(BLE_ROLE_BROADCASTER) || MYNEWT_VAL(BLE_ROLE_PERIPHERAL))
39
40#undef NIMBLE_BLE_SCAN
41#define NIMBLE_BLE_SCAN \
42 (MYNEWT_VAL(BLE_ROLE_CENTRAL) || MYNEWT_VAL(BLE_ROLE_OBSERVER))
43
44#undef NIMBLE_BLE_CONNECT
45#define NIMBLE_BLE_CONNECT \
46 (MYNEWT_VAL(BLE_ROLE_CENTRAL) || MYNEWT_VAL(BLE_ROLE_PERIPHERAL))
47
48
51#undef NIMBLE_BLE_ATT_CLT_FIND_INFO
52#define NIMBLE_BLE_ATT_CLT_FIND_INFO \
53 (MYNEWT_VAL(BLE_GATT_DISC_ALL_DSCS))
54
55#undef NIMBLE_BLE_ATT_CLT_FIND_TYPE
56#define NIMBLE_BLE_ATT_CLT_FIND_TYPE \
57 (MYNEWT_VAL(BLE_GATT_DISC_SVC_UUID))
58
59#undef NIMBLE_BLE_ATT_CLT_READ_TYPE
60#define NIMBLE_BLE_ATT_CLT_READ_TYPE \
61 (MYNEWT_VAL(BLE_GATT_FIND_INC_SVCS) || \
62 MYNEWT_VAL(BLE_GATT_DISC_ALL_CHRS) || \
63 MYNEWT_VAL(BLE_GATT_DISC_CHRS_UUID) || \
64 MYNEWT_VAL(BLE_GATT_READ_UUID))
65
66#undef NIMBLE_BLE_ATT_CLT_READ
67#define NIMBLE_BLE_ATT_CLT_READ \
68 (MYNEWT_VAL(BLE_GATT_READ) || \
69 MYNEWT_VAL(BLE_GATT_READ_LONG) || \
70 MYNEWT_VAL(BLE_GATT_FIND_INC_SVCS))
71
72#undef NIMBLE_BLE_ATT_CLT_READ_BLOB
73#define NIMBLE_BLE_ATT_CLT_READ_BLOB \
74 (MYNEWT_VAL(BLE_GATT_READ_LONG))
75
76#undef NIMBLE_BLE_ATT_CLT_READ_MULT
77#define NIMBLE_BLE_ATT_CLT_READ_MULT \
78 (MYNEWT_VAL(BLE_GATT_READ_MULT))
79
80#undef NIMBLE_BLE_ATT_CLT_READ_MULT_VAR
81#define NIMBLE_BLE_ATT_CLT_READ_MULT_VAR \
82 (MYNEWT_VAL(BLE_GATT_READ_MULT_VAR))
83
84#undef NIMBLE_BLE_ATT_CLT_READ_GROUP_TYPE
85#define NIMBLE_BLE_ATT_CLT_READ_GROUP_TYPE \
86 (MYNEWT_VAL(BLE_GATT_DISC_ALL_SVCS))
87
88#undef NIMBLE_BLE_ATT_CLT_SIGNED_WRITE
89#define NIMBLE_BLE_ATT_CLT_SIGNED_WRITE \
90 (MYNEWT_VAL(BLE_GATT_SIGNED_WRITE))
91
92#undef NIMBLE_BLE_ATT_CLT_WRITE
93#define NIMBLE_BLE_ATT_CLT_WRITE \
94 (MYNEWT_VAL(BLE_GATT_WRITE))
95
96#undef NIMBLE_BLE_ATT_CLT_WRITE_NO_RSP
97#define NIMBLE_BLE_ATT_CLT_WRITE_NO_RSP \
98 (MYNEWT_VAL(BLE_GATT_WRITE_NO_RSP))
99
100#undef NIMBLE_BLE_ATT_CLT_PREP_WRITE
101#define NIMBLE_BLE_ATT_CLT_PREP_WRITE \
102 (MYNEWT_VAL(BLE_GATT_WRITE_LONG))
103
104#undef NIMBLE_BLE_ATT_CLT_EXEC_WRITE
105#define NIMBLE_BLE_ATT_CLT_EXEC_WRITE \
106 (MYNEWT_VAL(BLE_GATT_WRITE_LONG))
107
108#undef NIMBLE_BLE_ATT_CLT_NOTIFY
109#define NIMBLE_BLE_ATT_CLT_NOTIFY \
110 (MYNEWT_VAL(BLE_GATT_NOTIFY))
111
112#undef NIMBLE_BLE_ATT_CLT_INDICATE
113#define NIMBLE_BLE_ATT_CLT_INDICATE \
114 (MYNEWT_VAL(BLE_GATT_INDICATE))
115
118#undef NIMBLE_BLE_SM
119#define NIMBLE_BLE_SM (MYNEWT_VAL(BLE_SM_LEGACY) || MYNEWT_VAL(BLE_SM_SC))
120
121#ifdef __cplusplus
122}
123#endif
124
125#endif