gatt_profile_uuid.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. /**************************************************************************************************
  2. Phyplus Microelectronics Limited confidential and proprietary.
  3. All rights reserved.
  4. IMPORTANT: All rights of this software belong to Phyplus Microelectronics
  5. Limited ("Phyplus"). Your use of this Software is limited to those
  6. specific rights granted under the terms of the business contract, the
  7. confidential agreement, the non-disclosure agreement and any other forms
  8. of agreements as a customer or a partner of Phyplus. You may not use this
  9. Software unless you agree to abide by the terms of these agreements.
  10. You acknowledge that the Software may not be modified, copied,
  11. distributed or disclosed unless embedded on a Phyplus Bluetooth Low Energy
  12. (BLE) integrated circuit, either as a product or is integrated into your
  13. products. Other than for the aforementioned purposes, you may not use,
  14. reproduce, copy, prepare derivative works of, modify, distribute, perform,
  15. display or sell this Software and/or its documentation for any purposes.
  16. YOU FURTHER ACKNOWLEDGE AND AGREE THAT THE SOFTWARE AND DOCUMENTATION ARE
  17. PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED,
  18. INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY, TITLE,
  19. NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL
  20. PHYPLUS OR ITS SUBSIDIARIES BE LIABLE OR OBLIGATED UNDER CONTRACT,
  21. NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR OTHER
  22. LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
  23. INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE
  24. OR CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT
  25. OF SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
  26. (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
  27. **************************************************************************************************/
  28. /**************************************************************************************************
  29. Filename: gatt_profile_uuid.h
  30. Revised:
  31. Revision:
  32. Description: This file contains GATT Profile UUID types.
  33. **************************************************************************************************/
  34. #ifndef GATT_PROFILE_UUID_H
  35. #define GATT_PROFILE_UUID_H
  36. #ifdef __cplusplus
  37. extern "C"
  38. {
  39. #endif
  40. /*********************************************************************
  41. * INCLUDES
  42. */
  43. /*********************************************************************
  44. * CONSTANTS
  45. */
  46. /*
  47. * WARNING: The 16-bit UUIDs are assigned by the Bluetooth SIG and published
  48. * in the Bluetooth Assigned Numbers page. Do not change these values.
  49. * Changing them will cause Bluetooth interoperability issues.
  50. */
  51. /**
  52. * GATT Service UUIDs
  53. */
  54. #define IMMEDIATE_ALERT_SERV_UUID 0x1802 // Immediate Alert
  55. #define LINK_LOSS_SERV_UUID 0x1803 // Link Loss
  56. #define TX_PWR_LEVEL_SERV_UUID 0x1804 // Tx Power
  57. #define CURRENT_TIME_SERV_UUID 0x1805 // Current Time Service
  58. #define REF_TIME_UPDATE_SERV_UUID 0x1806 // Reference Time Update Service
  59. #define NEXT_DST_CHANGE_SERV_UUID 0x1807 // Next DST Change Service
  60. #define GLUCOSE_SERV_UUID 0x1808 // Glucose
  61. #define THERMOMETER_SERV_UUID 0x1809 // Health Thermometer
  62. #define DEVINFO_SERV_UUID 0x180A // Device Information
  63. #define NWA_SERV_UUID 0x180B // Network Availability
  64. #define HEARTRATE_SERV_UUID 0x180D // Heart Rate
  65. #define PHONE_ALERT_STS_SERV_UUID 0x180E // Phone Alert Status Service
  66. #define BATT_SERV_UUID 0x180F // Battery Service
  67. #define BLOODPRESSURE_SERV_UUID 0x1810 // Blood Pressure
  68. #define ALERT_NOTIF_SERV_UUID 0x1811 // Alert Notification Service
  69. #define HID_SERV_UUID 0x1812 // Human Interface Device
  70. #define SCAN_PARAM_SERV_UUID 0x1813 // Scan Parameters
  71. #define RSC_SERV_UUID 0x1814 // Running Speed and Cadence
  72. #define CSC_SERV_UUID 0x1816 // Cycling Speed and Cadence
  73. #define CYCPWR_SERV_UUID 0x1818 // Cycling Power
  74. #define LOC_NAV_SERV_UUID 0x1819 // Location and Navigation
  75. /**
  76. * GATT Characteristic UUIDs
  77. */
  78. #define ALERT_LEVEL_UUID 0x2A06 // Alert Level
  79. #define TX_PWR_LEVEL_UUID 0x2A07 // Tx Power Level
  80. #define DATE_TIME_UUID 0x2A08 // Date Time
  81. #define DAY_OF_WEEK_UUID 0x2A09 // Day of Week
  82. #define DAY_DATE_TIME_UUID 0x2A0A // Day Date Time
  83. #define EXACT_TIME_256_UUID 0x2A0C // Exact Time 256
  84. #define DST_OFFSET_UUID 0x2A0D // DST Offset
  85. #define TIME_ZONE_UUID 0x2A0E // Time Zone
  86. #define LOCAL_TIME_INFO_UUID 0x2A0F // Local Time Information
  87. #define TIME_WITH_DST_UUID 0x2A11 // Time with DST
  88. #define TIME_ACCURACY_UUID 0x2A12 // Time Accuracy
  89. #define TIME_SOURCE_UUID 0x2A13 // Time Source
  90. #define REF_TIME_INFO_UUID 0x2A14 // Reference Time Information
  91. #define TIME_UPDATE_CTRL_PT_UUID 0x2A16 // Time Update Control Point
  92. #define TIME_UPDATE_STATE_UUID 0x2A17 // Time Update State
  93. #define GLUCOSE_MEAS_UUID 0x2A18 // Glucose Measurement
  94. #define BATT_LEVEL_UUID 0x2A19 // Battery Level
  95. #define TEMP_MEAS_UUID 0x2A1C // Temperature Measurement
  96. #define TEMP_TYPE_UUID 0x2A1D // Temperature Type
  97. #define IMEDIATE_TEMP_UUID 0x2A1E // Intermediate Temperature
  98. #define MEAS_INTERVAL_UUID 0x2A21 // Measurement Interval
  99. #define BOOT_KEY_INPUT_UUID 0x2A22 // Boot Keyboard Input Report
  100. #define SYSTEM_ID_UUID 0x2A23 // System ID
  101. #define MODEL_NUMBER_UUID 0x2A24 // Model Number String
  102. #define SERIAL_NUMBER_UUID 0x2A25 // Serial Number String
  103. #define FIRMWARE_REV_UUID 0x2A26 // Firmware Revision String
  104. #define HARDWARE_REV_UUID 0x2A27 // Hardware Revision String
  105. #define SOFTWARE_REV_UUID 0x2A28 // Software Revision String
  106. #define MANUFACTURER_NAME_UUID 0x2A29 // Manufacturer Name String
  107. #define IEEE_11073_CERT_DATA_UUID 0x2A2A // IEEE 11073-20601 Regulatory Certification Data List
  108. #define CURRENT_TIME_UUID 0x2A2B // Current Time
  109. #define SCAN_REFRESH_UUID 0x2A31 // Scan Refresh
  110. #define BOOT_KEY_OUTPUT_UUID 0x2A32 // Boot Keyboard Output Report
  111. #define BOOT_MOUSE_INPUT_UUID 0x2A33 // Boot Mouse Input Report
  112. #define GLUCOSE_CONTEXT_UUID 0x2A34 // Glucose Measurement Context
  113. #define BLOODPRESSURE_MEAS_UUID 0x2A35 // Blood Pressure Measurement
  114. #define IMEDIATE_CUFF_PRESSURE_UUID 0x2A36 // Intermediate Cuff Pressure
  115. #define HEARTRATE_MEAS_UUID 0x2A37 // Heart Rate Measurement
  116. #define BODY_SENSOR_LOC_UUID 0x2A38 // Body Sensor Location
  117. #define HEARTRATE_CTRL_PT_UUID 0x2A39 // Heart Rate Control Point
  118. #define NETWORK_AVAIL_UUID 0x2A3E // Network Availability
  119. #define ALERT_STATUS_UUID 0x2A3F // Alert Status
  120. #define RINGER_CTRL_PT_UUID 0x2A40 // Ringer Control Point
  121. #define RINGER_SETTING_UUID 0x2A41 // Ringer Setting
  122. #define ALERT_CAT_ID_BMASK_UUID 0x2A42 // Alert Category ID Bit Mask
  123. #define ALERT_CAT_ID_UUID 0x2A43 // Alert Category ID
  124. #define ALERT_NOTIF_CTRL_PT_UUID 0x2A44 // Alert Notification Control Point
  125. #define UNREAD_ALERT_STATUS_UUID 0x2A45 // Unread Alert Status
  126. #define NEW_ALERT_UUID 0x2A46 // New Alert
  127. #define SUP_NEW_ALERT_CAT_UUID 0x2A47 // Supported New Alert Category
  128. #define SUP_UNREAD_ALERT_CAT_UUID 0x2A48 // Supported Unread Alert Category
  129. #define BLOODPRESSURE_FEATURE_UUID 0x2A49 // Blood Pressure Feature
  130. #define HID_INFORMATION_UUID 0x2A4A // HID Information
  131. #define REPORT_MAP_UUID 0x2A4B // Report Map
  132. #define HID_CTRL_PT_UUID 0x2A4C // HID Control Point
  133. #define REPORT_UUID 0x2A4D // Report
  134. #define PROTOCOL_MODE_UUID 0x2A4E // Protocol Mode
  135. #define SCAN_INTERVAL_WINDOW_UUID 0x2A4F // Scan Interval Window
  136. #define PNP_ID_UUID 0x2A50 // PnP ID
  137. #define GLUCOSE_FEATURE_UUID 0x2A51 // Glucose Feature
  138. #define RECORD_CTRL_PT_UUID 0x2A52 // Record Access Control Point
  139. #define RSC_MEAS_UUID 0x2A53 // RSC Measurement
  140. #define RSC_FEATURE_UUID 0x2A54 // RSC Feature
  141. #define SC_CTRL_PT_UUID 0x2A55 // SC Control Point
  142. #define CSC_MEAS_UUID 0x2A5B // CSC Measurement
  143. #define CSC_FEATURE_UUID 0x2A5C // CSC Feature
  144. #define SENSOR_LOC_UUID 0x2A5D // Sensor Location
  145. #define CYCPWR_MEAS_UUID 0x2A63 // Cycling Power Measurement
  146. #define CYCPWR_VECTOR_UUID 0x2A64 // Cycling Power Vector
  147. #define CYCPWR_FEATURE_UUID 0x2A65 // Cycling Power Feature
  148. #define CYCPWR_CTRL_PT_UUID 0x2A66 // Cycling Power Control Point
  149. #define LOC_SPEED_UUID 0x2A67 // Location and Speed
  150. #define NAV_UUID 0x2A68 // Navigation
  151. #define POS_QUALITY_UUID 0x2A69 // Position Quality
  152. #define LN_FEATURE_UUID 0x2A6A // LN Feature
  153. #define LN_CTRL_PT_UUID 0x2A6B // LN Control Point
  154. /**
  155. * GATT Unit UUIDs
  156. */
  157. #define GATT_UNITLESS_UUID 0x2700 // <Symbol>, <Expressed in terms of SI base units>
  158. #define GATT_UNIT_LENGTH_METER_UUID 0x2701 // m, m
  159. #define GATT_UNIT_MASS_KGRAM_UUID 0x2702 // kg, kg
  160. #define GATT_UNIT_TIME_SECOND_UUID 0x2703 // s, s
  161. #define GATT_UNIT_ELECTRIC_CURRENT_A_UUID 0x2704 // A, A
  162. #define GATT_UNIT_THERMODYN_TEMP_K_UUID 0x2705 // K, K
  163. #define GATT_UNIT_AMOUNT_SUBSTANCE_M_UUID 0x2706 // mol, mol
  164. #define GATT_UNIT_LUMINOUS_INTENSITY_C_UUID 0x2707 // cd, cd
  165. #define GATT_UNIT_AREA_SQ_MTR_UUID 0x2710 // m^2, m^2
  166. #define GATT_UNIT_VOLUME_CUBIC_MTR_UUID 0x2711 // m^3, m^3
  167. #define GATT_UNIT_VELOCITY_MPS_UUID 0x2712 // m/s, m s^-1
  168. #define GATT_UNIT_ACCELERATION_MPS_SQ_UUID 0x2713 // m/s^2, m s^-2
  169. #define GATT_UNIT_WAVENUMBER_RM_UUID 0x2714 // m^-1
  170. #define GATT_UNIT_DENSITY_KGPCM_UUID 0x2715 // p, kg m^-3
  171. #define GATT_UNIT_SURFACE_DENSITY_KGPSM_UUID 0x2716 // pA, kg m^-2
  172. #define GATT_UNIT_SPECIFIC_VOLUME_CMPKG_UUID 0x2717 // v, m^3 kg^-1
  173. #define GATT_UNIT_CURRENT_DENSITY_APSM_UUID 0x2718 // j, A m^-2
  174. #define GATT_UNIT_MAG_FIELD_STRENGTH_UUID 0x2719 // H, A m
  175. #define GATT_UNIT_AMOUNT_CONC_MPCM_UUID 0x271A // c, mol m^-3
  176. #define GATT_UNIT_MASS_CONC_KGPCM_UUID 0x271B // c, kg m^-3
  177. #define GATT_UNIT_LUMINANCE_CPSM_UUID 0x271C // Lv, cd m^-2
  178. #define GATT_UNIT_REFRACTIVE_INDEX_UUID 0x271D // n, 1
  179. #define GATT_UNIT_RELATIVE_PERMEABLILTY_UUID 0x271E // u, 1
  180. #define GATT_UNIT_PLANE_ANGLE_RAD_UUID 0x2720 // rad, m m-1
  181. #define GATT_UNIT_SOLID_ANGLE_STERAD_UUID 0x2721 // sr, m2 m-2
  182. #define GATT_UNIT_FREQUENCY_HTZ_UUID 0x2722 // Hz, s-1
  183. #define GATT_UNIT_FORCE_NEWTON_UUID 0x2723 // N, m kg s-2
  184. #define GATT_UNIT_PRESSURE_PASCAL_UUID 0x2724 // Pa, N/m2 = m2 kg s-2
  185. #define GATT_UNIT_ENERGY_JOULE_UUID 0x2725 // J, N m = m2 kg s-2
  186. #define GATT_UNIT_POWER_WATT_UUID 0x2726 // W, J/s = m2 kg s-3
  187. #define GATT_UNIT_E_CHARGE_C_UUID 0x2727 // C, sA
  188. #define GATT_UNIT_E_POTENTIAL_DIF_V_UUID 0x2728 // V, W/A = m2 kg s-3 A-1
  189. #define GATT_UNIT_CELSIUS_TEMP_DC_UUID 0x272F // oC, t/oC = T/K - 273.15
  190. #define GATT_UNIT_TIME_MINUTE_UUID 0x2760 // min, 60 s
  191. #define GATT_UNIT_TIME_HOUR_UUID 0x2761 // h, 3600 s
  192. #define GATT_UNIT_TIME_DAY_UUID 0x2762 // d, 86400 s
  193. #define GATT_UNIT_PLANE_ANGLE_DEGREE_UUID 0x2763 // o, (pi/180) rad
  194. #define GATT_UNIT_PLANE_ANGLE_MINUTE_UUID 0x2764 // ', (pi/10800) rad
  195. #define GATT_UNIT_PLANE_ANGLE_SECOND_UUID 0x2765 // '', (pi/648000) rad
  196. #define GATT_UNIT_AREA_HECTARE_UUID 0x2766 // ha, 10^4 m^2
  197. #define GATT_UNIT_VOLUME_LITRE_UUID 0x2767 // l, 10^-3 m^3
  198. #define GATT_UNIT_MASS_TONNE_UUID 0x2768 // t, 10^3 kg
  199. #define GATT_UINT_LENGTH_YARD_UUID 0x27A0 // yd, 0.9144 m
  200. #define GATT_UNIT_LENGTH_PARSEC_UUID 0x27A1 // pc, 3.085678 ? 1016 m
  201. #define GATT_UNIT_LENGTH_INCH_UUID 0x27A2 // in, 0.0254 m
  202. #define GATT_UNIT_LENGTH_FOOT_UUID 0x27A3 // ft, 0.3048 m
  203. #define GATT_UNIT_LENGTH_MILE_UUID 0x27A4 // mi, 1609.347 m
  204. #define GATT_UNIT_PRESSURE_PFPSI_UUID 0x27A5 // psi, 6.894757 ? 103 Pa
  205. #define GATT_UNIT_VELOCITY_KMPH_UUID 0x27A6 // km/h, 0.2777778 m^s-1
  206. #define GATT_UNIT_VELOCITY_MPH_UUID 0x27A7 // mi/h, 0.44704 m^ s-1
  207. #define GATT_UNIT_ANGULAR_VELOCITY_RPM_UUID 0x27A8 // r/min, 0.1047198 rad s-1
  208. #define GATT_UNIT_ENERGY_GCAL_UUID 0x27A9 //
  209. #define GATT_UNIT_ENERGY_KCAL_UUID 0x27AA // kcal, 4190.02 J
  210. #define GATT_UNIT_ENERGY_KWH_UUID 0x27AB // kWh, 3600000 J
  211. #define GATT_UNIT_THERMODYN_TEMP_DF_UUID 0x27AC // oF, t/oF = T/K ? 1.8 - 459.67
  212. #define GATT_UNIT_PERCENTAGE_UUID 0x27AD // %
  213. #define GATT_UNIT_PER_MILE_UUID 0x27AE //
  214. #define GATT_UNIT_PERIOD_BPM_UUID 0x27AF //
  215. #define GATT_UNIT_E_CHARGE_AH_UUID 0x27B0 //
  216. #define GATT_UNIT_MASS_DENSITY_MGPD_UUID 0x27B1 //
  217. #define GATT_UNIT_MASS_DENSITY_MMPL_UUID 0x27B2 //
  218. #define GATT_UNIT_TIME_YEAR_UUID 0x27B3 //
  219. #define GATT_UNIT_TIME_MONTH_UUID 0x27B4 //
  220. /*********************************************************************
  221. * MACROS
  222. */
  223. /*********************************************************************
  224. * TYPEDEFS
  225. */
  226. /*********************************************************************
  227. * VARIABLES
  228. */
  229. /*********************************************************************
  230. * FUNCTIONS
  231. */
  232. /*********************************************************************
  233. *********************************************************************/
  234. #ifdef __cplusplus
  235. }
  236. #endif
  237. #endif /* GATT_PROFILE_UUID_H */