gattdefs.h 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. /******************************************************************************
  2. *
  3. * Copyright 1999-2012 Broadcom Corporation
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License");
  6. * you may not use this file except in compliance with the License.
  7. * You may obtain a copy of the License at:
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. *
  17. ******************************************************************************/
  18. /******************************************************************************
  19. *
  20. * This file contains internally used ATT definitions
  21. *
  22. ******************************************************************************/
  23. #ifndef _GATTDEFS_H
  24. #define _GATTDEFS_H
  25. #define GATT_ILLEGAL_UUID 0
  26. /* GATT attribute types
  27. */
  28. #define GATT_UUID_PRI_SERVICE 0x2800
  29. #define GATT_UUID_SEC_SERVICE 0x2801
  30. #define GATT_UUID_INCLUDE_SERVICE 0x2802
  31. /* Characteristic Declaration*/
  32. #define GATT_UUID_CHAR_DECLARE 0x2803
  33. /* Characteristic Extended Properties */
  34. #define GATT_UUID_CHAR_EXT_PROP 0x2900
  35. /* Characteristic User Description*/
  36. #define GATT_UUID_CHAR_DESCRIPTION 0x2901
  37. /* Client Characteristic Configuration */
  38. #define GATT_UUID_CHAR_CLIENT_CONFIG 0x2902
  39. /* Server Characteristic Configuration */
  40. #define GATT_UUID_CHAR_SRVR_CONFIG 0x2903
  41. /* Characteristic Presentation Format*/
  42. #define GATT_UUID_CHAR_PRESENT_FORMAT 0x2904
  43. /* Characteristic Aggregate Format*/
  44. #define GATT_UUID_CHAR_AGG_FORMAT 0x2905
  45. /* Characteristic Valid Range */
  46. #define GATT_UUID_CHAR_VALID_RANGE 0x2906
  47. #define GATT_UUID_EXT_RPT_REF_DESCR 0x2907
  48. #define GATT_UUID_RPT_REF_DESCR 0x2908
  49. /* Client Characteristic Configuration bits */
  50. #define GATT_CHAR_CLIENT_CONFIG_NOTIFICATION 0x0001
  51. #define GATT_CHAR_CLIENT_CONFIG_INDICTION 0x0002
  52. /* GAP Profile Attributes
  53. */
  54. #define GATT_UUID_GAP_DEVICE_NAME 0x2A00
  55. #define GATT_UUID_GAP_ICON 0x2A01
  56. #define GATT_UUID_GAP_PREF_CONN_PARAM 0x2A04
  57. #define GATT_UUID_GAP_CENTRAL_ADDR_RESOL 0x2AA6
  58. /* Attribute Profile Attribute UUID */
  59. #define GATT_UUID_GATT_SRV_CHGD 0x2A05
  60. /* Attribute Protocol Test */
  61. /* Link Loss Service */
  62. #define GATT_UUID_ALERT_LEVEL 0x2A06 /* Alert Level */
  63. #define GATT_UUID_TX_POWER_LEVEL 0x2A07 /* TX power level */
  64. /* Time Profile */
  65. /* Current Time Service */
  66. #define GATT_UUID_CURRENT_TIME 0x2A2B /* Current Time */
  67. #define GATT_UUID_LOCAL_TIME_INFO 0x2A0F /* Local time info */
  68. #define GATT_UUID_REF_TIME_INFO 0x2A14 /* reference time information */
  69. /* NwA Profile */
  70. #define GATT_UUID_NW_STATUS 0x2A18 /* network availability status */
  71. #define GATT_UUID_NW_TRIGGER 0x2A1A /* Network availability trigger */
  72. /* phone alert */
  73. #define GATT_UUID_ALERT_STATUS 0x2A3F /* alert status */
  74. #define GATT_UUID_RINGER_CP 0x2A40 /* ringer control point */
  75. #define GATT_UUID_RINGER_SETTING 0x2A41 /* ringer setting */
  76. /* Glucose Service */
  77. #define GATT_UUID_GM_MEASUREMENT 0x2A18
  78. #define GATT_UUID_GM_CONTEXT 0x2A34
  79. #define GATT_UUID_GM_CONTROL_POINT 0x2A52
  80. #define GATT_UUID_GM_FEATURE 0x2A51
  81. /* device infor characteristic */
  82. #define GATT_UUID_SYSTEM_ID 0x2A23
  83. #define GATT_UUID_MODEL_NUMBER_STR 0x2A24
  84. #define GATT_UUID_SERIAL_NUMBER_STR 0x2A25
  85. #define GATT_UUID_FW_VERSION_STR 0x2A26
  86. #define GATT_UUID_HW_VERSION_STR 0x2A27
  87. #define GATT_UUID_SW_VERSION_STR 0x2A28
  88. #define GATT_UUID_MANU_NAME 0x2A29
  89. #define GATT_UUID_IEEE_DATA 0x2A2A
  90. #define GATT_UUID_PNP_ID 0x2A50
  91. /* HID characteristics */
  92. #define GATT_UUID_HID_INFORMATION 0x2A4A
  93. #define GATT_UUID_HID_REPORT_MAP 0x2A4B
  94. #define GATT_UUID_HID_CONTROL_POINT 0x2A4C
  95. #define GATT_UUID_HID_REPORT 0x2A4D
  96. #define GATT_UUID_HID_PROTO_MODE 0x2A4E
  97. #define GATT_UUID_HID_BT_KB_INPUT 0x2A22
  98. #define GATT_UUID_HID_BT_KB_OUTPUT 0x2A32
  99. #define GATT_UUID_HID_BT_MOUSE_INPUT 0x2A33
  100. /* Battery Service char */
  101. #define GATT_UUID_BATTERY_LEVEL 0x2A19
  102. #define GATT_UUID_SC_CONTROL_POINT 0x2A55
  103. #define GATT_UUID_SENSOR_LOCATION 0x2A5D
  104. /* RUNNERS SPEED AND CADENCE SERVICE */
  105. #define GATT_UUID_RSC_MEASUREMENT 0x2A53
  106. #define GATT_UUID_RSC_FEATURE 0x2A54
  107. /* CYCLING SPEED AND CADENCE SERVICE */
  108. #define GATT_UUID_CSC_MEASUREMENT 0x2A5B
  109. #define GATT_UUID_CSC_FEATURE 0x2A5C
  110. /* Scan Parameter charatceristics */
  111. #define GATT_UUID_SCAN_INT_WINDOW 0x2A4F
  112. #define GATT_UUID_SCAN_REFRESH 0x2A31
  113. #endif