WXK
2024-12-16 9201a33e45484b3247271759c91c158063baccac
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
/*
 * Copyright (c) 2017 Intel Corporation
 * Copyright (c) 2021 Lingao Meng
 *
 * SPDX-License-Identifier: Apache-2.0
 */
 
#ifndef __PB_GATT_SRV_H__
#define __PB_GATT_SRV_H__
 
int bt_mesh_pb_gatt_send(uint16_t conn_handle, struct os_mbuf *buf);
 
int bt_mesh_pb_gatt_enable(void);
int bt_mesh_pb_gatt_disable(void);
 
int prov_ccc_write(uint16_t conn_handle, uint8_t type);
void gatt_disconnected_pb_gatt(struct ble_gap_conn_desc conn, uint8_t err);
void gatt_connected_pb_gatt(uint16_t conn_handle, uint8_t err);
void resolve_svc_handles(void);
 
int bt_mesh_pb_gatt_adv_start(void);
 
extern struct svc_handles {
    uint16_t proxy_h;
    uint16_t proxy_data_out_h;
    uint16_t prov_h;
    uint16_t prov_data_in_h;
    uint16_t prov_data_out_h;
} svc_handles;
 
#endif /* __PB_GATT_SRV_H__ */