gatt_uuid.h 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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_uuid.h
  30. Revised:
  31. Revision:
  32. Description: This file contains Generic Attribute Profile (GATT)
  33. UUID types.
  34. **************************************************************************************************/
  35. #ifndef GATT_UUID_H
  36. #define GATT_UUID_H
  37. #ifdef __cplusplus
  38. extern "C"
  39. {
  40. #endif
  41. /*********************************************************************
  42. * INCLUDES
  43. */
  44. /*********************************************************************
  45. * CONSTANTS
  46. */
  47. /*
  48. * WARNING: The 16-bit UUIDs are assigned by the Bluetooth SIG and published
  49. * in the Bluetooth Assigned Numbers page. Do not change these values.
  50. * Changing them will cause Bluetooth interoperability issues.
  51. */
  52. /**
  53. * GATT Services
  54. */
  55. #define GAP_SERVICE_UUID 0x1800 // Generic Access Profile
  56. #define GATT_SERVICE_UUID 0x1801 // Generic Attribute Profile
  57. /**
  58. * GATT Declarations
  59. */
  60. #define GATT_PRIMARY_SERVICE_UUID 0x2800 // Primary Service
  61. #define GATT_SECONDARY_SERVICE_UUID 0x2801 // Secondary Service
  62. #define GATT_INCLUDE_UUID 0x2802 // Include
  63. #define GATT_CHARACTER_UUID 0x2803 // Characteristic
  64. /**
  65. * GATT Descriptors
  66. */
  67. #define GATT_CHAR_EXT_PROPS_UUID 0x2900 // Characteristic Extended Properties
  68. #define GATT_CHAR_USER_DESC_UUID 0x2901 // Characteristic User Description
  69. #define GATT_CLIENT_CHAR_CFG_UUID 0x2902 // Client Characteristic Configuration
  70. #define GATT_SERV_CHAR_CFG_UUID 0x2903 // Server Characteristic Configuration
  71. #define GATT_CHAR_FORMAT_UUID 0x2904 // Characteristic Presentation Format
  72. #define GATT_CHAR_AGG_FORMAT_UUID 0x2905 // Characteristic Aggregate Format
  73. #define GATT_VALID_RANGE_UUID 0x2906 // Valid Range
  74. #define GATT_EXT_REPORT_REF_UUID 0x2907 // External Report Reference Descriptor
  75. #define GATT_REPORT_REF_UUID 0x2908 // Report Reference Descriptor
  76. /**
  77. * GATT Characteristics
  78. */
  79. #define DEVICE_NAME_UUID 0x2A00 // Device Name
  80. #define APPEARANCE_UUID 0x2A01 // Appearance
  81. #define PERI_PRIVACY_FLAG_UUID 0x2A02 // Peripheral Privacy Flag
  82. #define RECONNECT_ADDR_UUID 0x2A03 // Reconnection Address
  83. #define PERI_CONN_PARAM_UUID 0x2A04 // Peripheral Preferred Connection Parameters
  84. #define SERVICE_CHANGED_UUID 0x2A05 // Service Changed
  85. /*********************************************************************
  86. * MACROS
  87. */
  88. /*********************************************************************
  89. * TYPEDEFS
  90. */
  91. /*********************************************************************
  92. * VARIABLES
  93. */
  94. /**
  95. * GATT Services
  96. */
  97. extern CONST uint8 gapServiceUUID[];
  98. extern CONST uint8 gattServiceUUID[];
  99. /**
  100. * GATT Attribute Types
  101. */
  102. extern CONST uint8 primaryServiceUUID[];
  103. extern CONST uint8 secondaryServiceUUID[];
  104. extern CONST uint8 includeUUID[];
  105. extern CONST uint8 characterUUID[];
  106. /**
  107. * GATT Characteristic Descriptors
  108. */
  109. extern CONST uint8 charExtPropsUUID[];
  110. extern CONST uint8 charUserDescUUID[];
  111. extern CONST uint8 clientCharCfgUUID[];
  112. extern CONST uint8 servCharCfgUUID[];
  113. extern CONST uint8 charFormatUUID[];
  114. extern CONST uint8 charAggFormatUUID[];
  115. extern CONST uint8 validRangeUUID[];
  116. extern CONST uint8 extReportRefUUID[];
  117. extern CONST uint8 reportRefUUID[];
  118. /**
  119. * GATT Characteristic Types
  120. */
  121. extern CONST uint8 deviceNameUUID[];
  122. extern CONST uint8 appearanceUUID[];
  123. extern CONST uint8 periPrivacyFlagUUID[];
  124. extern CONST uint8 reconnectAddrUUID[];
  125. extern CONST uint8 periConnParamUUID[];
  126. extern CONST uint8 serviceChangedUUID[];
  127. extern CONST uint8 manuNameUUID[];
  128. extern CONST uint8 serialNumUUID[];
  129. extern CONST uint8 manuAddrUUID[];
  130. /*********************************************************************
  131. * FUNCTIONS
  132. */
  133. extern const uint8 *GATT_FindUUIDRec( const uint8 *pUUID, uint8 len );
  134. /*********************************************************************
  135. *********************************************************************/
  136. #ifdef __cplusplus
  137. }
  138. #endif
  139. #endif /* GATT_UUID_H */