MT2523 API Reference  LinkIt SDK v4
bt_gatt.h
1 /* Copyright Statement:
2  *
3  * (C) 2005-2016 MediaTek Inc. All rights reserved.
4  *
5  * This software/firmware and related documentation ("MediaTek Software") are
6  * protected under relevant copyright laws. The information contained herein
7  * is confidential and proprietary to MediaTek Inc. ("MediaTek") and/or its licensors.
8  * Without the prior written permission of MediaTek and/or its licensors,
9  * any reproduction, modification, use or disclosure of MediaTek Software,
10  * and information contained herein, in whole or in part, shall be strictly prohibited.
11  * You may only use, reproduce, modify, or distribute (as applicable) MediaTek Software
12  * if you have agreed to and been bound by the applicable license agreement with
13  * MediaTek ("License Agreement") and been granted explicit permission to do so within
14  * the License Agreement ("Permitted User"). If you are not a Permitted User,
15  * please cease any access or use of MediaTek Software immediately.
16  * BY OPENING THIS FILE, RECEIVER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
17  * THAT MEDIATEK SOFTWARE RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES
18  * ARE PROVIDED TO RECEIVER ON AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL
19  * WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
20  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
21  * NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
22  * SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
23  * SUPPLIED WITH MEDIATEK SOFTWARE, AND RECEIVER AGREES TO LOOK ONLY TO SUCH
24  * THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. RECEIVER EXPRESSLY ACKNOWLEDGES
25  * THAT IT IS RECEIVER'S SOLE RESPONSIBILITY TO OBTAIN FROM ANY THIRD PARTY ALL PROPER LICENSES
26  * CONTAINED IN MEDIATEK SOFTWARE. MEDIATEK SHALL ALSO NOT BE RESPONSIBLE FOR ANY MEDIATEK
27  * SOFTWARE RELEASES MADE TO RECEIVER'S SPECIFICATION OR TO CONFORM TO A PARTICULAR
28  * STANDARD OR OPEN FORUM. RECEIVER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND
29  * CUMULATIVE LIABILITY WITH RESPECT TO MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
30  * AT MEDIATEK'S OPTION, TO REVISE OR REPLACE MEDIATEK SOFTWARE AT ISSUE,
31  * OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY RECEIVER TO
32  * MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
33  */
34 
35 #ifndef __BT_GATT_SPEC_H__
36 #define __BT_GATT_SPEC_H__
37 
51 #include "bt_uuid.h"
52 BT_EXTERN_C_BEGIN
53 
54 
60 /* UUID */
61 #define BT_GATT_UUID16_PRIMARY_SERVICE 0x2800
62 #define BT_GATT_UUID16_SECONDARY_SERVICE 0x2801
63 #define BT_GATT_UUID16_INCLUDE 0x2802
64 #define BT_GATT_UUID16_CHARC 0x2803
65 #define BT_GATT_UUID16_CHARC_EXTENDED_PROPERTIES 0x2900
66 #define BT_GATT_UUID16_CHARC_USER_DESCRIPTION 0x2901
67 #define BT_GATT_UUID16_CLIENT_CHARC_CONFIG 0x2902
68 #define BT_GATT_UUID16_SERVER_CHARC_CONFIG 0x2903
69 #define BT_GATT_UUID16_CHARC_FORMAT 0x2904
70 #define BT_GATT_UUID16_CHARC_AGGREGATE_FORMAT 0x2905
72 #define BT_GATT_UUID16_GAP_SERVICE 0x1800
73 #define BT_GATT_UUID16_GATT_SERVICE 0x1801
74 #define BT_GATT_UUID16_HEART_RATE_SERVICE 0x180D
75 #define BT_GATT_UUID16_BATTERY_SERVICE 0x180F
76 #define BT_GATT_UUID16_ENVIRONMENTAL_SENSING 0x181A
78 #define BT_SIG_UUID16_DEVICE_NAME 0x2A00
79 #define BT_SIG_UUID16_APPEARANCE 0x2A01
80 #define BT_SIG_UUID16_PERIPHERAL_PREFERRED_CONNECTION_PARAMETERS 0x2A04
81 #define BT_SIG_UUID16_SERVICE_CHANGED 0x2A05
82 #define BT_SIG_UUID16_BATTERY_LEVEL 0x2A19
83 #define BT_SIG_UUID16_SERIAL_NUMBER 0x2A25
84 #define BT_SIG_UUID16_MANUFACTURER_NAME 0x2A29
85 #define BT_SIG_UUID16_TEMPERATURE 0x2A6E
86 #define BT_SIG_UUID16_CENTRAL_ADDRESS_RESOLUTION 0x2AA6
88 #define BT_GATT_CHARC_PROP_BROADCAST 0x01
89 #define BT_GATT_CHARC_PROP_READ 0x02
90 #define BT_GATT_CHARC_PROP_WRITE_WITHOUT_RSP 0x04
91 #define BT_GATT_CHARC_PROP_WRITE 0x08
92 #define BT_GATT_CHARC_PROP_NOTIFY 0x10
93 #define BT_GATT_CHARC_PROP_INDICATE 0x20
94 #define BT_GATT_CHARC_PROP_AUTHENTICATED_SIGNED_WRITE 0x40
95 #define BT_GATT_CHARC_PROP_EXTENDED_PROPERTIES 0x80
97 #define BT_GATT_CHARC_EXTENDED_PROP_RELIABLE_WRITE 0x0001
98 #define BT_GATT_CHARC_EXTENDED_PROP_WRITABLE_AUXILIARIES 0x0002
104 BT_EXTERN_C_END
105 
112 #endif /* __BT_GATT_SPEC_H__ */