NimBLE-Arduino 2.1.3
Loading...
Searching...
No Matches
ble_svc_gatt.h
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
20#ifndef H_BLE_SVC_GATT_
21#define H_BLE_SVC_GATT_
22
23#include <inttypes.h>
24#include "nimble/porting/nimble/include/syscfg/syscfg.h"
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30struct ble_hs_cfg;
31
32#define BLE_SVC_GATT_CHR_SERVICE_CHANGED_UUID16 0x2a05
33#define BLE_SVC_GATT_CHR_SERVER_SUPPORTED_FEAT_UUID16 0x2b3a
34#define BLE_SVC_GATT_CHR_CLIENT_SUPPORTED_FEAT_UUID16 0x2b29
35
36#if MYNEWT_VAL(BLE_GATT_CACHING)
37#define BLE_SVC_GATT_CHR_DATABASE_HASH_UUID16 0x2b2a
38
39uint16_t ble_svc_gatt_changed_handle(void);
40uint16_t ble_svc_gatt_hash_handle(void);
41uint16_t ble_svc_gatt_csf_handle(void);
42uint8_t ble_svc_gatt_get_csfs(void);
43#endif
44
45uint8_t ble_svc_gatt_get_local_cl_supported_feat(void);
46void ble_svc_gatt_changed(uint16_t start_handle, uint16_t end_handle);
47void ble_svc_gatt_init(void);
48
49#ifdef __cplusplus
50}
51#endif
52
53#endif
Bluetooth Host main configuration structure.
Definition ble_hs.h:193