mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
NimBLE: Exposed macros used by GAP service to menuconfig
This commit is contained in:
@ -708,3 +708,161 @@ config BT_NIMBLE_HOST_ALLOW_CONNECT_WITH_SCAN
|
|||||||
depends on BT_NIMBLE_ENABLED && (IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3)
|
depends on BT_NIMBLE_ENABLED && (IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3)
|
||||||
help
|
help
|
||||||
This enables support for user to initiate a new connection with scan in progress
|
This enables support for user to initiate a new connection with scan in progress
|
||||||
|
|
||||||
|
menu "GAP Service"
|
||||||
|
menu "GAP Appearance write permissions"
|
||||||
|
config BT_NIMBLE_SVC_GAP_APPEAR_WRITE
|
||||||
|
bool "Write"
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
Enable write permission (BLE_GATT_CHR_F_WRITE)
|
||||||
|
|
||||||
|
config BT_NIMBLE_SVC_GAP_APPEAR_WRITE_ENC
|
||||||
|
depends on BT_NIMBLE_SVC_GAP_APPEAR_WRITE
|
||||||
|
bool "Write with encryption"
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
Enable write with encryption permission (BLE_GATT_CHR_F_WRITE_ENC)
|
||||||
|
|
||||||
|
config BT_NIMBLE_SVC_GAP_APPEAR_WRITE_AUTHEN
|
||||||
|
depends on BT_NIMBLE_SVC_GAP_APPEAR_WRITE
|
||||||
|
bool "Write with authentication"
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
Enable write with authentication permission (BLE_GATT_CHR_F_WRITE_AUTHEN)
|
||||||
|
|
||||||
|
config BT_NIMBLE_SVC_GAP_APPEAR_WRITE_AUTHOR
|
||||||
|
depends on BT_NIMBLE_SVC_GAP_APPEAR_WRITE
|
||||||
|
bool "Write with authorisation"
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
Enable write with authorisation permission (BLE_GATT_CHR_F_WRITE_AUTHOR)
|
||||||
|
endmenu
|
||||||
|
|
||||||
|
config BT_NIMBLE_SVC_GAP_APPEAR_WRITE_PERM
|
||||||
|
int
|
||||||
|
default 0 if !BT_NIMBLE_SVC_GAP_APPEAR_WRITE
|
||||||
|
default 8 if BT_NIMBLE_SVC_GAP_APPEAR_WRITE
|
||||||
|
|
||||||
|
config BT_NIMBLE_SVC_GAP_APPEAR_WRITE_PERM_ENC
|
||||||
|
int
|
||||||
|
default 0 if !BT_NIMBLE_SVC_GAP_APPEAR_WRITE_ENC
|
||||||
|
default 4096 if BT_NIMBLE_SVC_GAP_APPEAR_WRITE_ENC
|
||||||
|
|
||||||
|
config BT_NIMBLE_SVC_GAP_APPEAR_WRITE_PERM_ATHN
|
||||||
|
int
|
||||||
|
default 0 if !BT_NIMBLE_SVC_GAP_APPEAR_WRITE_AUTHEN
|
||||||
|
default 8192 if BT_NIMBLE_SVC_GAP_APPEAR_WRITE_AUTHEN
|
||||||
|
|
||||||
|
config BT_NIMBLE_SVC_GAP_APPEAR_WRITE_PERM_ATHR
|
||||||
|
int
|
||||||
|
default 0 if !BT_NIMBLE_SVC_GAP_APPEAR_WRITE_AUTHOR
|
||||||
|
default 16384 if BT_NIMBLE_SVC_GAP_APPEAR_WRITE_AUTHOR
|
||||||
|
|
||||||
|
choice BT_NIMBLE_SVC_GAP_CENT_ADDR_RESOLUTION
|
||||||
|
prompt "GAP Characteristic - Central Address Resolution"
|
||||||
|
default BT_NIMBLE_SVC_GAP_CAR_CHAR_NOT_SUPP
|
||||||
|
help
|
||||||
|
Weather or not Central Address Resolution characteristic is supported on
|
||||||
|
the device, and if supported, weather or not Central Address Resolution
|
||||||
|
is supported.
|
||||||
|
|
||||||
|
- Central Address Resolution characteristic not supported
|
||||||
|
- Central Address Resolution not supported
|
||||||
|
- Central Address Resolution supported
|
||||||
|
|
||||||
|
config BT_NIMBLE_SVC_GAP_CAR_CHAR_NOT_SUPP
|
||||||
|
bool "Characteristic not supported"
|
||||||
|
|
||||||
|
config BT_NIMBLE_SVC_GAP_CAR_NOT_SUPP
|
||||||
|
bool "Central Address Resolution not supported"
|
||||||
|
|
||||||
|
config BT_NIMBLE_SVC_GAP_CAR_SUPP
|
||||||
|
bool "Central Address Resolution supported"
|
||||||
|
endchoice
|
||||||
|
|
||||||
|
config BT_NIMBLE_SVC_GAP_CENT_ADDR_RESOLUTION
|
||||||
|
int
|
||||||
|
default -1 if BT_NIMBLE_SVC_GAP_CAR_CHAR_NOT_SUPP
|
||||||
|
default 0 if BT_NIMBLE_SVC_GAP_CAR_NOT_SUPP
|
||||||
|
default 1 if BT_NIMBLE_SVC_GAP_CAR_SUPP
|
||||||
|
|
||||||
|
menu "GAP device name write permissions"
|
||||||
|
config BT_NIMBLE_SVC_GAP_NAME_WRITE
|
||||||
|
bool "Write"
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
Enable write permission (BLE_GATT_CHR_F_WRITE)
|
||||||
|
|
||||||
|
config BT_NIMBLE_SVC_GAP_NAME_WRITE_ENC
|
||||||
|
depends on BT_NIMBLE_SVC_GAP_NAME_WRITE
|
||||||
|
bool "Write with encryption"
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
Enable write with encryption permission (BLE_GATT_CHR_F_WRITE_ENC)
|
||||||
|
|
||||||
|
config BT_NIMBLE_SVC_GAP_NAME_WRITE_AUTHEN
|
||||||
|
depends on BT_NIMBLE_SVC_GAP_NAME_WRITE
|
||||||
|
bool "Write with authentication"
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
Enable write with authentication permission (BLE_GATT_CHR_F_WRITE_AUTHEN)
|
||||||
|
|
||||||
|
config BT_NIMBLE_SVC_GAP_NAME_WRITE_AUTHOR
|
||||||
|
depends on BT_NIMBLE_SVC_GAP_NAME_WRITE
|
||||||
|
bool "Write with authorisation"
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
Enable write with authorisation permission (BLE_GATT_CHR_F_WRITE_AUTHOR)
|
||||||
|
endmenu
|
||||||
|
|
||||||
|
config BT_NIMBLE_SVC_GAP_NAME_WRITE_PERM
|
||||||
|
int
|
||||||
|
default 0 if !BT_NIMBLE_SVC_GAP_NAME_WRITE
|
||||||
|
default 8 if BT_NIMBLE_SVC_GAP_NAME_WRITE
|
||||||
|
|
||||||
|
config BT_NIMBLE_SVC_GAP_NAME_WRITE_PERM_ENC
|
||||||
|
int
|
||||||
|
default 0 if !BT_NIMBLE_SVC_GAP_NAME_WRITE_ENC
|
||||||
|
default 4096 if BT_NIMBLE_SVC_GAP_NAME_WRITE_ENC
|
||||||
|
|
||||||
|
config BT_NIMBLE_SVC_GAP_NAME_WRITE_PERM_AUTHEN
|
||||||
|
int
|
||||||
|
default 0 if !BT_NIMBLE_SVC_GAP_NAME_WRITE_AUTHEN
|
||||||
|
default 8192 if BT_NIMBLE_SVC_GAP_NAME_WRITE_AUTHEN
|
||||||
|
|
||||||
|
config BT_NIMBLE_SVC_GAP_NAME_WRITE_PERM_AUTHOR
|
||||||
|
int
|
||||||
|
default 0 if !BT_NIMBLE_SVC_GAP_NAME_WRITE_AUTHOR
|
||||||
|
default 16384 if BT_NIMBLE_SVC_GAP_NAME_WRITE_AUTHOR
|
||||||
|
|
||||||
|
config BT_NIMBLE_SVC_GAP_PPCP_MAX_CONN_INTERVAL
|
||||||
|
int "PPCP Connection Interval Max (Unit: 1.25 ms)"
|
||||||
|
depends on BT_NIMBLE_ROLE_PERIPHERAL
|
||||||
|
default 0
|
||||||
|
help
|
||||||
|
Peripheral Preferred Connection Parameter: Connection Interval maximum value
|
||||||
|
Interval Max = value * 1.25 ms
|
||||||
|
|
||||||
|
config BT_NIMBLE_SVC_GAP_PPCP_MIN_CONN_INTERVAL
|
||||||
|
int "PPCP Connection Interval Min (Unit: 1.25 ms)"
|
||||||
|
depends on BT_NIMBLE_ROLE_PERIPHERAL
|
||||||
|
default 0
|
||||||
|
help
|
||||||
|
Peripheral Preferred Connection Parameter: Connection Interval minimum value
|
||||||
|
Interval Min = value * 1.25 ms
|
||||||
|
|
||||||
|
config BT_NIMBLE_SVC_GAP_PPCP_SLAVE_LATENCY
|
||||||
|
int "PPCP Slave Latency"
|
||||||
|
default 0
|
||||||
|
help
|
||||||
|
Peripheral Preferred Connection Parameter: Slave Latency
|
||||||
|
|
||||||
|
config BT_NIMBLE_SVC_GAP_PPCP_SUPERVISION_TMO
|
||||||
|
int "PPCP Supervision Timeout (Uint: 10 ms)"
|
||||||
|
default 0
|
||||||
|
help
|
||||||
|
Peripheral Preferred Connection Parameter: Supervision Timeout
|
||||||
|
Timeout = Value * 10 ms
|
||||||
|
|
||||||
|
endmenu
|
||||||
|
@ -1503,11 +1503,19 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef MYNEWT_VAL_BLE_SVC_GAP_APPEARANCE_WRITE_PERM
|
#ifndef MYNEWT_VAL_BLE_SVC_GAP_APPEARANCE_WRITE_PERM
|
||||||
|
#if CONFIG_BT_NIMBLE_SVC_GAP_APPEAR_WRITE_PERM
|
||||||
|
#define MYNEWT_VAL_BLE_SVC_GAP_APPEARANCE_WRITE_PERM ( \
|
||||||
|
CONFIG_BT_NIMBLE_SVC_GAP_APPEAR_WRITE_PERM_ENC | \
|
||||||
|
CONFIG_BT_NIMBLE_SVC_GAP_APPEAR_WRITE_PERM_ATHN | \
|
||||||
|
CONFIG_BT_NIMBLE_SVC_GAP_APPEAR_WRITE_PERM_ATHR)
|
||||||
|
#else
|
||||||
#define MYNEWT_VAL_BLE_SVC_GAP_APPEARANCE_WRITE_PERM (-1)
|
#define MYNEWT_VAL_BLE_SVC_GAP_APPEARANCE_WRITE_PERM (-1)
|
||||||
#endif
|
#endif //CONFIG_BT_NIMBLE_SVC_GAP_APPEAR_WRITE_PERM
|
||||||
|
#endif //MYNEWT_VAL_BLE_SVC_GAP_APPEARANCE_WRITE_PERM
|
||||||
|
|
||||||
#ifndef MYNEWT_VAL_BLE_SVC_GAP_CENTRAL_ADDRESS_RESOLUTION
|
#ifndef MYNEWT_VAL_BLE_SVC_GAP_CENTRAL_ADDRESS_RESOLUTION
|
||||||
#define MYNEWT_VAL_BLE_SVC_GAP_CENTRAL_ADDRESS_RESOLUTION (-1)
|
#define MYNEWT_VAL_BLE_SVC_GAP_CENTRAL_ADDRESS_RESOLUTION \
|
||||||
|
CONFIG_BT_NIMBLE_SVC_GAP_CENT_ADDR_RESOLUTION
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef CONFIG_BT_NIMBLE_SVC_GAP_DEVICE_NAME
|
#ifndef CONFIG_BT_NIMBLE_SVC_GAP_DEVICE_NAME
|
||||||
@ -1521,23 +1529,34 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME_WRITE_PERM
|
#ifndef MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME_WRITE_PERM
|
||||||
|
#if CONFIG_BT_NIMBLE_SVC_GAP_NAME_WRITE_PERM
|
||||||
|
#define MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME_WRITE_PERM ( \
|
||||||
|
CONFIG_BT_NIMBLE_SVC_GAP_NAME_WRITE_PERM_ENC | \
|
||||||
|
CONFIG_BT_NIMBLE_SVC_GAP_NAME_WRITE_PERM_AUTHEN | \
|
||||||
|
CONFIG_BT_NIMBLE_SVC_GAP_NAME_WRITE_PERM_AUTHOR)
|
||||||
|
#else
|
||||||
#define MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME_WRITE_PERM (-1)
|
#define MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME_WRITE_PERM (-1)
|
||||||
#endif
|
#endif //CONFIG_BT_NIMBLE_SVC_GAP_NAME_WRITE_PERM
|
||||||
|
#endif //MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME_WRITE_PERM
|
||||||
|
|
||||||
#ifndef MYNEWT_VAL_BLE_SVC_GAP_PPCP_MAX_CONN_INTERVAL
|
#ifndef MYNEWT_VAL_BLE_SVC_GAP_PPCP_MAX_CONN_INTERVAL
|
||||||
#define MYNEWT_VAL_BLE_SVC_GAP_PPCP_MAX_CONN_INTERVAL (0)
|
#define MYNEWT_VAL_BLE_SVC_GAP_PPCP_MAX_CONN_INTERVAL \
|
||||||
|
CONFIG_BT_NIMBLE_SVC_GAP_PPCP_MAX_CONN_INTERVAL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef MYNEWT_VAL_BLE_SVC_GAP_PPCP_MIN_CONN_INTERVAL
|
#ifndef MYNEWT_VAL_BLE_SVC_GAP_PPCP_MIN_CONN_INTERVAL
|
||||||
#define MYNEWT_VAL_BLE_SVC_GAP_PPCP_MIN_CONN_INTERVAL (0)
|
#define MYNEWT_VAL_BLE_SVC_GAP_PPCP_MIN_CONN_INTERVAL \
|
||||||
|
CONFIG_BT_NIMBLE_SVC_GAP_PPCP_MIN_CONN_INTERVAL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef MYNEWT_VAL_BLE_SVC_GAP_PPCP_SLAVE_LATENCY
|
#ifndef MYNEWT_VAL_BLE_SVC_GAP_PPCP_SLAVE_LATENCY
|
||||||
#define MYNEWT_VAL_BLE_SVC_GAP_PPCP_SLAVE_LATENCY (0)
|
#define MYNEWT_VAL_BLE_SVC_GAP_PPCP_SLAVE_LATENCY \
|
||||||
|
CONFIG_BT_NIMBLE_SVC_GAP_PPCP_SLAVE_LATENCY
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef MYNEWT_VAL_BLE_SVC_GAP_PPCP_SUPERVISION_TMO
|
#ifndef MYNEWT_VAL_BLE_SVC_GAP_PPCP_SUPERVISION_TMO
|
||||||
#define MYNEWT_VAL_BLE_SVC_GAP_PPCP_SUPERVISION_TMO (0)
|
#define MYNEWT_VAL_BLE_SVC_GAP_PPCP_SUPERVISION_TMO \
|
||||||
|
CONFIG_BT_NIMBLE_SVC_GAP_PPCP_SUPERVISION_TMO
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*** nimble/transport */
|
/*** nimble/transport */
|
||||||
|
Reference in New Issue
Block a user