Kconfig.dis 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. # GATT Device Information service
  2. # Copyright (c) 2018 Nordic Semiconductor ASA
  3. # SPDX-License-Identifier: Apache-2.0
  4. menuconfig BT_DIS
  5. bool "Enable GATT Device Information service"
  6. if BT_DIS
  7. config BT_DIS_SETTINGS
  8. bool "Enable Settings usage in Device Information Service"
  9. select SETTINGS
  10. help
  11. Enable Settings usage in Device Information Service.
  12. config BT_DIS_STR_MAX
  13. int "Maximum size in bytes for DIS strings"
  14. depends on BT_DIS_SETTINGS
  15. default 21
  16. range 2 248
  17. help
  18. Bluetooth DIS string storage size. Storage can be up to 248 bytes
  19. long (excluding NULL termination).
  20. config BT_DIS_MODEL
  21. string "Model name"
  22. default SOC
  23. help
  24. The device model inside Device Information Service.
  25. config BT_DIS_MANUF
  26. string "Manufacturer name"
  27. default "Manufacturer"
  28. help
  29. The device manufacturer inside Device Information Service.
  30. config BT_DIS_PNP
  31. bool "Enable PnP_ID characteristic"
  32. default y
  33. help
  34. Enable PnP_ID characteristic in Device Information Service.
  35. if BT_DIS_PNP
  36. config BT_DIS_PNP_VID_SRC
  37. int "Vendor ID source"
  38. range 1 2
  39. default 1
  40. help
  41. The Vendor ID Source field designates which organization assigned the
  42. value used in the Vendor ID field value.
  43. The possible values are:
  44. - 1 Bluetooth SIG, the Vendor ID was assigned by the Bluetooth SIG
  45. - 2 USB IF, the Vendor ID was assigned by the USB IF
  46. config BT_DIS_PNP_VID
  47. hex "Vendor ID"
  48. range 0 0xFFFF
  49. default 0
  50. help
  51. The Vendor ID field is intended to uniquely identify the vendor of the
  52. device. This field is used in conjunction with Vendor ID Source field,
  53. which determines which organization assigned the Vendor ID field value.
  54. Note: The Bluetooth Special Interest Group assigns Device ID Vendor ID,
  55. and the USB Implementers Forum assigns Vendor IDs,
  56. either of which can be used for the Vendor ID field value.
  57. Device providers should procure the Vendor ID from the USB Implementers
  58. Forum or the Company Identifier from the Bluetooth SIG.
  59. config BT_DIS_PNP_PID
  60. hex "Product ID"
  61. range 0 0xFFFF
  62. default 0
  63. help
  64. The Product ID field is intended to distinguish between different products
  65. made by the vendor identified with the Vendor ID field. The vendors
  66. themselves manage Product ID field values.
  67. config BT_DIS_PNP_VER
  68. hex "Product Version"
  69. range 0 0xFFFF
  70. default 1
  71. help
  72. The Product Version field is a numeric expression identifying the device
  73. release number in Binary-Coded Decimal. This is a vendor-assigned value,
  74. which defines the version of the product identified by the Vendor ID and
  75. Product ID fields. This field is intended to differentiate between
  76. versions of products with identical Vendor IDs and Product IDs.
  77. The value of the field value is 0xJJMN for version JJ.M.N
  78. (JJ - major version number, M - minor version number,
  79. N - sub-minor version number); e.g., version 2.1.3 is represented with
  80. value 0x0213 and version 2.0.0 is represented with a value of 0x0200.
  81. When upward-compatible changes are made to the device, it is recommended
  82. that the minor version number be incremented. If incompatible changes are
  83. made to the device, it is recommended that the major version number be
  84. incremented. The sub-minor version is incremented for bug fixes.
  85. endif # BT_DIS_PNP
  86. config BT_DIS_SERIAL_NUMBER
  87. bool "Enable DIS Serial number characteristic"
  88. help
  89. Enable Serial Number characteristic in Device Information Service.
  90. config BT_DIS_SERIAL_NUMBER_STR
  91. string "Serial Number"
  92. depends on BT_DIS_SERIAL_NUMBER
  93. help
  94. Enable Serial Number characteristic in Device Information Service.
  95. config BT_DIS_FW_REV
  96. bool "Enable DIS Firmware Revision characteristic"
  97. help
  98. Enable Firmware Revision characteristic in Device Information Service.
  99. config BT_DIS_FW_REV_STR
  100. string "Firmware revision"
  101. depends on BT_DIS_FW_REV
  102. help
  103. Enable firmware revision characteristic in Device Information Service.
  104. config BT_DIS_HW_REV
  105. bool "Enable DIS Hardware Revision characteristic"
  106. help
  107. Enable Hardware Revision characteristic in Device Information Service.
  108. config BT_DIS_HW_REV_STR
  109. string "Hardware revision"
  110. depends on BT_DIS_HW_REV
  111. help
  112. Enable hardware revision characteristic in Device Information Service.
  113. config BT_DIS_SW_REV
  114. bool "Enable DIS Software Revision characteristic"
  115. help
  116. Enable Software Revision characteristic in Device Information Service.
  117. config BT_DIS_SW_REV_STR
  118. string "Software revision"
  119. depends on BT_DIS_SW_REV
  120. help
  121. Enable software revision characteristic in Device Information Service.
  122. endif # BT_DIS