blob: 186542cf58edc832d0b1f88a82ad381a1c53240b [file] [log] [blame]
The Android Open Source Project5738f832012-12-12 16:00:35 -08001/******************************************************************************
2 *
Jakub Pawlowski5b790fe2017-09-18 09:00:20 -07003 * Copyright 1999-2012 Broadcom Corporation
The Android Open Source Project5738f832012-12-12 16:00:35 -08004 *
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 *
21 * This file contains internally used ATT definitions
22 *
23 ******************************************************************************/
24
Myles Watson911d1ae2016-11-28 16:44:40 -080025#ifndef _GATTDEFS_H
26#define _GATTDEFS_H
The Android Open Source Project5738f832012-12-12 16:00:35 -080027
Myles Watson911d1ae2016-11-28 16:44:40 -080028#define GATT_ILLEGAL_UUID 0
The Android Open Source Project5738f832012-12-12 16:00:35 -080029
30/* GATT attribute types
Stanley Tng8b9f17b2018-12-25 18:12:51 -080031 */
Myles Watson911d1ae2016-11-28 16:44:40 -080032#define GATT_UUID_PRI_SERVICE 0x2800
33#define GATT_UUID_SEC_SERVICE 0x2801
34#define GATT_UUID_INCLUDE_SERVICE 0x2802
Myles Watson9ca07092016-11-28 16:41:53 -080035/* Characteristic Declaration*/
Myles Watson911d1ae2016-11-28 16:44:40 -080036#define GATT_UUID_CHAR_DECLARE 0x2803
The Android Open Source Project5738f832012-12-12 16:00:35 -080037
Myles Watson9ca07092016-11-28 16:41:53 -080038/* Characteristic Extended Properties */
Myles Watson911d1ae2016-11-28 16:44:40 -080039#define GATT_UUID_CHAR_EXT_PROP 0x2900
Myles Watson9ca07092016-11-28 16:41:53 -080040/* Characteristic User Description*/
Myles Watson911d1ae2016-11-28 16:44:40 -080041#define GATT_UUID_CHAR_DESCRIPTION 0x2901
Myles Watson9ca07092016-11-28 16:41:53 -080042/* Client Characteristic Configuration */
Myles Watson911d1ae2016-11-28 16:44:40 -080043#define GATT_UUID_CHAR_CLIENT_CONFIG 0x2902
Myles Watson9ca07092016-11-28 16:41:53 -080044/* Server Characteristic Configuration */
Myles Watson911d1ae2016-11-28 16:44:40 -080045#define GATT_UUID_CHAR_SRVR_CONFIG 0x2903
Myles Watson9ca07092016-11-28 16:41:53 -080046/* Characteristic Presentation Format*/
Myles Watson911d1ae2016-11-28 16:44:40 -080047#define GATT_UUID_CHAR_PRESENT_FORMAT 0x2904
Myles Watson9ca07092016-11-28 16:41:53 -080048/* Characteristic Aggregate Format*/
Myles Watson911d1ae2016-11-28 16:44:40 -080049#define GATT_UUID_CHAR_AGG_FORMAT 0x2905
Myles Watson9ca07092016-11-28 16:41:53 -080050/* Characteristic Valid Range */
Myles Watson911d1ae2016-11-28 16:44:40 -080051#define GATT_UUID_CHAR_VALID_RANGE 0x2906
52#define GATT_UUID_EXT_RPT_REF_DESCR 0x2907
53#define GATT_UUID_RPT_REF_DESCR 0x2908
The Android Open Source Project5738f832012-12-12 16:00:35 -080054
Stanley Tng8b9f17b2018-12-25 18:12:51 -080055/* Client Characteristic Configuration bits */
56#define GATT_CHAR_CLIENT_CONFIG_NOTIFICATION 0x0001
57#define GATT_CHAR_CLIENT_CONFIG_INDICTION 0x0002
58
The Android Open Source Project5738f832012-12-12 16:00:35 -080059/* GAP Profile Attributes
Stanley Tng8b9f17b2018-12-25 18:12:51 -080060 */
Myles Watson911d1ae2016-11-28 16:44:40 -080061#define GATT_UUID_GAP_DEVICE_NAME 0x2A00
62#define GATT_UUID_GAP_ICON 0x2A01
63#define GATT_UUID_GAP_PREF_CONN_PARAM 0x2A04
Nitin Arora00ba7452015-06-10 16:46:45 -070064#define GATT_UUID_GAP_CENTRAL_ADDR_RESOL 0x2AA6
The Android Open Source Project5738f832012-12-12 16:00:35 -080065
66/* Attribute Profile Attribute UUID */
Myles Watson911d1ae2016-11-28 16:44:40 -080067#define GATT_UUID_GATT_SRV_CHGD 0x2A05
The Android Open Source Project5738f832012-12-12 16:00:35 -080068/* Attribute Protocol Test */
69
Andre Eisenbach2e7fa682013-08-08 15:42:48 -070070/* Link Loss Service */
Myles Watson911d1ae2016-11-28 16:44:40 -080071#define GATT_UUID_ALERT_LEVEL 0x2A06 /* Alert Level */
72#define GATT_UUID_TX_POWER_LEVEL 0x2A07 /* TX power level */
Andre Eisenbach2e7fa682013-08-08 15:42:48 -070073
74/* Time Profile */
75/* Current Time Service */
Myles Watson911d1ae2016-11-28 16:44:40 -080076#define GATT_UUID_CURRENT_TIME 0x2A2B /* Current Time */
77#define GATT_UUID_LOCAL_TIME_INFO 0x2A0F /* Local time info */
78#define GATT_UUID_REF_TIME_INFO 0x2A14 /* reference time information */
Andre Eisenbach2e7fa682013-08-08 15:42:48 -070079
80/* NwA Profile */
Myles Watson911d1ae2016-11-28 16:44:40 -080081#define GATT_UUID_NW_STATUS 0x2A18 /* network availability status */
82#define GATT_UUID_NW_TRIGGER 0x2A1A /* Network availability trigger */
Andre Eisenbach2e7fa682013-08-08 15:42:48 -070083
84/* phone alert */
Myles Watson911d1ae2016-11-28 16:44:40 -080085#define GATT_UUID_ALERT_STATUS 0x2A3F /* alert status */
86#define GATT_UUID_RINGER_CP 0x2A40 /* ringer control point */
87#define GATT_UUID_RINGER_SETTING 0x2A41 /* ringer setting */
Andre Eisenbach2e7fa682013-08-08 15:42:48 -070088
89/* Glucose Service */
Myles Watson911d1ae2016-11-28 16:44:40 -080090#define GATT_UUID_GM_MEASUREMENT 0x2A18
91#define GATT_UUID_GM_CONTEXT 0x2A34
92#define GATT_UUID_GM_CONTROL_POINT 0x2A52
93#define GATT_UUID_GM_FEATURE 0x2A51
Andre Eisenbach2e7fa682013-08-08 15:42:48 -070094
95/* device infor characteristic */
Myles Watson911d1ae2016-11-28 16:44:40 -080096#define GATT_UUID_SYSTEM_ID 0x2A23
97#define GATT_UUID_MODEL_NUMBER_STR 0x2A24
98#define GATT_UUID_SERIAL_NUMBER_STR 0x2A25
99#define GATT_UUID_FW_VERSION_STR 0x2A26
100#define GATT_UUID_HW_VERSION_STR 0x2A27
101#define GATT_UUID_SW_VERSION_STR 0x2A28
102#define GATT_UUID_MANU_NAME 0x2A29
103#define GATT_UUID_IEEE_DATA 0x2A2A
104#define GATT_UUID_PNP_ID 0x2A50
Andre Eisenbach2e7fa682013-08-08 15:42:48 -0700105
106/* HID characteristics */
Myles Watson911d1ae2016-11-28 16:44:40 -0800107#define GATT_UUID_HID_INFORMATION 0x2A4A
108#define GATT_UUID_HID_REPORT_MAP 0x2A4B
109#define GATT_UUID_HID_CONTROL_POINT 0x2A4C
110#define GATT_UUID_HID_REPORT 0x2A4D
111#define GATT_UUID_HID_PROTO_MODE 0x2A4E
112#define GATT_UUID_HID_BT_KB_INPUT 0x2A22
113#define GATT_UUID_HID_BT_KB_OUTPUT 0x2A32
114#define GATT_UUID_HID_BT_MOUSE_INPUT 0x2A33
Andre Eisenbach2e7fa682013-08-08 15:42:48 -0700115
116/* Battery Service char */
Myles Watson911d1ae2016-11-28 16:44:40 -0800117#define GATT_UUID_BATTERY_LEVEL 0x2A19
Andre Eisenbach2e7fa682013-08-08 15:42:48 -0700118
Myles Watson911d1ae2016-11-28 16:44:40 -0800119#define GATT_UUID_SC_CONTROL_POINT 0x2A55
120#define GATT_UUID_SENSOR_LOCATION 0x2A5D
Andre Eisenbach2e7fa682013-08-08 15:42:48 -0700121
122/* RUNNERS SPEED AND CADENCE SERVICE */
Myles Watson911d1ae2016-11-28 16:44:40 -0800123#define GATT_UUID_RSC_MEASUREMENT 0x2A53
124#define GATT_UUID_RSC_FEATURE 0x2A54
Andre Eisenbach2e7fa682013-08-08 15:42:48 -0700125
126/* CYCLING SPEED AND CADENCE SERVICE */
Myles Watson911d1ae2016-11-28 16:44:40 -0800127#define GATT_UUID_CSC_MEASUREMENT 0x2A5B
128#define GATT_UUID_CSC_FEATURE 0x2A5C
Andre Eisenbach2e7fa682013-08-08 15:42:48 -0700129
130/* Scan Parameter charatceristics */
Myles Watson911d1ae2016-11-28 16:44:40 -0800131#define GATT_UUID_SCAN_INT_WINDOW 0x2A4F
132#define GATT_UUID_SCAN_REFRESH 0x2A31
Andre Eisenbach2e7fa682013-08-08 15:42:48 -0700133
The Android Open Source Project5738f832012-12-12 16:00:35 -0800134#endif