Dawn Framework 1.0
Universal data acquisition framework for embedded systems
gatt_runtime.hxx
1// dawn/include/dawn/proto/nimble/gatt_runtime.hxx
2//
3// SPDX-License-Identifier: Apache-2.0
4//
5
6#pragma once
7
8#include <cstdint>
9
10#include "dawn/proto/nimble/iprph.hxx"
11#include "host/ble_gatt.h"
12
13namespace dawn
14{
15void nimbleGattChrInit(struct ble_gatt_chr_def &chr, void *arg);
16int nimbleGattChrUuid128Set(struct ble_gatt_chr_def &chr, const uint32_t *uuid);
17void nimbleGattChrUuidFree(struct ble_gatt_chr_def &chr);
18void nimbleGattChrAccessSet(struct ble_gatt_chr_def &chr, CIOCommon &io);
19
20#ifdef CONFIG_DAWN_IO_NOTIFY
21int nimbleGattChrNotifySet(struct ble_gatt_chr_def &chr,
22 CIOCommon &io,
23 IProtoNimblePrphService::SPrphNotiferCb &ncb,
24 int (*notifier)(void *priv, io_ddata_t *data),
26#endif
27
28IProtoNimblePrphService::SPrphNotiferCb *nimbleGattNotifierCreate(CIOCommon *io);
29void nimbleGattNotifierFree(IProtoNimblePrphService::SPrphNotiferCb *ncb);
30void nimbleGattChrNotifierFree(struct ble_gatt_chr_def &chr);
31} // namespace dawn
Out-of-tree user-extension hooks for Dawn.
Definition bindable.hxx:13
uint32_t ObjectId
ObjectID type - single 32-bit value.
Definition objectid.hxx:44