Blob: gatt.h
Blob id: 5af02f408277c46886495b917e857114ccc1454d
Size: 904 B
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2017 Intel Corporation. All rights reserved. * * */ #include "gdbus/gdbus.h" /* Largest Possible GATT Packet: Provisioning Public Key + type + sar */ #define MAX_GATT_SIZE (64 + 1 + 1) #define GATT_SAR_MASK 0xc0 #define GATT_SAR_COMPLETE 0x00 #define GATT_SAR_FIRST 0x40 #define GATT_SAR_CONTINUE 0x80 #define GATT_SAR_LAST 0xc0 #define GATT_TYPE_INVALID 0xff #define GATT_TYPE_MASK 0x3f uint16_t mesh_gatt_sar(uint8_t **pkt, uint16_t size); bool mesh_gatt_is_child(GDBusProxy *proxy, GDBusProxy *parent, const char *name); bool mesh_gatt_write(GDBusProxy *proxy, uint8_t *buf, uint16_t len, GDBusReturnFunction cb, void *user_data); bool mesh_gatt_notify(GDBusProxy *proxy, bool enable, GDBusReturnFunction cb, void *user_data); void mesh_gatt_cleanup(void); |