-
CONFIG_BT_GATT_DIS_PNP_VER
¶
Product Version
Type: hex
Help¶
The Product Version field is a numeric expression identifying the device release number in Binary-Coded Decimal. This is a vendor-assigned value, which defines the version of the product identified by the Vendor ID and Product ID fields. This field is intended to differentiate between versions of products with identical Vendor IDs and Product IDs. The value of the field value is 0xJJMN for version JJ.M.N (JJ – major version number, M – minor version number, N – sub-minor version number); e.g., version 2.1.3 is represented with value 0x0213 and version 2.0.0 is represented with a value of 0x0200. When upward-compatible changes are made to the device, it is recommended that the minor version number be incremented. If incompatible changes are made to the device, it is recommended that the major version number be incremented. The sub-minor version is incremented for bug fixes.
Direct dependencies¶
BT_GATT_DIS_PNP
&& BT_GATT_DIS
&& BT_CONN
&& BT_HCI
&& BT
(Includes any dependencies from if’s and menus.)
Defaults¶
- 1 if
BT_GATT_DIS_PNP
&&BT_GATT_DIS
&&BT_CONN
&&BT_HCI
&&BT
Kconfig definition¶
At subsys/bluetooth/services/Kconfig.dis:67
Included via Kconfig:10
→ Kconfig.zephyr:39
→ subsys/Kconfig:8
→ subsys/bluetooth/Kconfig:104
→ subsys/bluetooth/services/Kconfig:12
Menu path: (top menu) → Bluetooth → GATT Services → Enable GATT Device Information service
config BT_GATT_DIS_PNP_VER hex prompt "Product Version" ifBT_GATT_DIS_PNP
&&BT_GATT_DIS
&&BT_CONN
&&BT_HCI
&&BT
range 0 0xFFFF ifBT_GATT_DIS_PNP
&&BT_GATT_DIS
&&BT_CONN
&&BT_HCI
&&BT
default 1 ifBT_GATT_DIS_PNP
&&BT_GATT_DIS
&&BT_CONN
&&BT_HCI
&&BT
depends onBT_GATT_DIS_PNP
&&BT_GATT_DIS
&&BT_CONN
&&BT_HCI
&&BT
help The Product Version field is a numeric expression identifying the device release number in Binary-Coded Decimal. This is a vendor-assigned value, which defines the version of the product identified by the Vendor ID and Product ID fields. This field is intended to differentiate between versions of products with identical Vendor IDs and Product IDs. The value of the field value is 0xJJMN for version JJ.M.N (JJ – major version number, M – minor version number, N – sub-minor version number); e.g., version 2.1.3 is represented with value 0x0213 and version 2.0.0 is represented with a value of 0x0200. When upward-compatible changes are made to the device, it is recommended that the minor version number be incremented. If incompatible changes are made to the device, it is recommended that the major version number be incremented. The sub-minor version is incremented for bug fixes.
(Definitions include propagated dependencies, including from if’s and menus.)