NimBLE-Arduino 2.1.2
Loading...
Searching...
No Matches
proxy.h
1/* Bluetooth Mesh */
2
3/*
4 * Copyright (c) 2017 Intel Corporation
5 *
6 * SPDX-License-Identifier: Apache-2.0
7 */
8
9#ifndef __PROXY_H__
10#define __PROXY_H__
11
12#include "../include/mesh/slist.h"
13
14#if CONFIG_BT_MESH_DEBUG_USE_ID_ADDR
15#define ADV_OPT_USE_IDENTITY BT_LE_ADV_OPT_USE_IDENTITY
16#else
17#define ADV_OPT_USE_IDENTITY 0
18#endif
19
20#define ADV_SLOW_INT \
21.itvl_min = BT_GAP_ADV_SLOW_INT_MIN, \
22.itvl_max = BT_GAP_ADV_SLOW_INT_MAX,
23
24#define ADV_FAST_INT \
25.itvl_min = BT_GAP_ADV_FAST_INT_MIN_2, \
26.itvl_max = BT_GAP_ADV_FAST_INT_MAX_2,
27
28struct bt_mesh_proxy_idle_cb {
29 sys_snode_t n;
30 void (*cb)(void);
31};
32
33void notify_complete(void);
34int bt_mesh_proxy_gatt_enable(void);
35int bt_mesh_proxy_gatt_disable(void);
36void bt_mesh_proxy_gatt_disconnect(void);
37
38void bt_mesh_proxy_beacon_send(struct bt_mesh_subnet *sub);
39
40int bt_mesh_proxy_adv_start(void);
41
42void bt_mesh_proxy_identity_start(struct bt_mesh_subnet *sub);
43void bt_mesh_proxy_identity_stop(struct bt_mesh_subnet *sub);
44
45bool bt_mesh_proxy_relay(struct os_mbuf *buf, uint16_t dst);
46void bt_mesh_proxy_addr_add(struct os_mbuf *buf, uint16_t addr);
47
48int ble_mesh_proxy_gap_event(struct ble_gap_event *event, void *arg);
49int bt_mesh_proxy_init(void);
50
51#endif /* __PROXY_H__ */
Definition ble_gap.h:510
Definition subnet.h:35
Definition os_mbuf.h:86