Loading...
Searching...
No Matches
20#ifndef H_NIMBLE_OPT_AUTO_
21#define H_NIMBLE_OPT_AUTO_
23#include "nimble/porting/nimble/include/syscfg/syscfg.h"
36#undef NIMBLE_BLE_ADVERTISE
37#define NIMBLE_BLE_ADVERTISE \
38 (MYNEWT_VAL(BLE_ROLE_BROADCASTER) || MYNEWT_VAL(BLE_ROLE_PERIPHERAL))
41#define NIMBLE_BLE_SCAN \
42 (MYNEWT_VAL(BLE_ROLE_CENTRAL) || MYNEWT_VAL(BLE_ROLE_OBSERVER))
44#undef NIMBLE_BLE_CONNECT
45#define NIMBLE_BLE_CONNECT \
46 (MYNEWT_VAL(BLE_ROLE_CENTRAL) || MYNEWT_VAL(BLE_ROLE_PERIPHERAL))
51#undef NIMBLE_BLE_ATT_CLT_FIND_INFO
52#define NIMBLE_BLE_ATT_CLT_FIND_INFO \
53 (MYNEWT_VAL(BLE_GATT_DISC_ALL_DSCS))
55#undef NIMBLE_BLE_ATT_CLT_FIND_TYPE
56#define NIMBLE_BLE_ATT_CLT_FIND_TYPE \
57 (MYNEWT_VAL(BLE_GATT_DISC_SVC_UUID))
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))
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))
72#undef NIMBLE_BLE_ATT_CLT_READ_BLOB
73#define NIMBLE_BLE_ATT_CLT_READ_BLOB \
74 (MYNEWT_VAL(BLE_GATT_READ_LONG))
76#undef NIMBLE_BLE_ATT_CLT_READ_MULT
77#define NIMBLE_BLE_ATT_CLT_READ_MULT \
78 (MYNEWT_VAL(BLE_GATT_READ_MULT))
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))
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))
88#undef NIMBLE_BLE_ATT_CLT_SIGNED_WRITE
89#define NIMBLE_BLE_ATT_CLT_SIGNED_WRITE \
90 (MYNEWT_VAL(BLE_GATT_SIGNED_WRITE))
92#undef NIMBLE_BLE_ATT_CLT_WRITE
93#define NIMBLE_BLE_ATT_CLT_WRITE \
94 (MYNEWT_VAL(BLE_GATT_WRITE))
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))
100#undef NIMBLE_BLE_ATT_CLT_PREP_WRITE
101#define NIMBLE_BLE_ATT_CLT_PREP_WRITE \
102 (MYNEWT_VAL(BLE_GATT_WRITE_LONG))
104#undef NIMBLE_BLE_ATT_CLT_EXEC_WRITE
105#define NIMBLE_BLE_ATT_CLT_EXEC_WRITE \
106 (MYNEWT_VAL(BLE_GATT_WRITE_LONG))
108#undef NIMBLE_BLE_ATT_CLT_NOTIFY
109#define NIMBLE_BLE_ATT_CLT_NOTIFY \
110 (MYNEWT_VAL(BLE_GATT_NOTIFY))
112#undef NIMBLE_BLE_ATT_CLT_INDICATE
113#define NIMBLE_BLE_ATT_CLT_INDICATE \
114 (MYNEWT_VAL(BLE_GATT_INDICATE))
119#define NIMBLE_BLE_SM (MYNEWT_VAL(BLE_SM_LEGACY) || MYNEWT_VAL(BLE_SM_SC))