ESP-IDF
bt_mesh_gattc_info
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
bt_mesh_gattc_info
bt_mesh_gattc_info variable
Syntax
Show:
Summary
Declaration
from
adapter.c:90
static
struct
gattc_prov_info
{
struct
bt_mesh_conn
conn
;
bt_mesh_addr_t
addr
;
uint16_t
service_uuid
;
uint16_t
mtu
;
bool
wr_desc_done
;
uint16_t
start_handle
;
uint16_t
end_handle
;
uint16_t
data_in_handle
;
uint16_t
data_out_handle
;
uint16_t
ccc_handle
;
}
bt_mesh_gattc_info
[
BLE_MESH_MAX_CONN
]
;
Examples
References
from
examples
Code
Location
Referrer
}
bt_mesh_gattc_info
[
BLE_MESH_MAX_CONN
]
;
adapter.c:102
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
bt_mesh_gattc_info
)
;
i
++
)
{
adapter.c:1165
bt_mesh_gattc_get_free_conn_count()
if
(
bt_mesh_gattc_info
[
i
]
.
conn
.
handle
==
0xFFFF
&&
adapter.c:1166
bt_mesh_gattc_get_free_conn_count()
bt_mesh_gattc_info
[
i
]
.
service_uuid
==
0x0000
)
{
adapter.c:1167
bt_mesh_gattc_get_free_conn_count()
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
bt_mesh_gattc_info
)
;
i
++
)
{
adapter.c:1179
bt_mesh_gattc_get_service_uuid()
if
(
conn
==
&
bt_mesh_gattc_info
[
i
]
.
conn
)
{
adapter.c:1180
bt_mesh_gattc_get_service_uuid()
return
bt_mesh_gattc_info
[
i
]
.
service_uuid
;
adapter.c:1181
bt_mesh_gattc_get_service_uuid()
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
bt_mesh_gattc_info
)
;
i
++
)
{
adapter.c:1218
bt_mesh_gattc_conn_create()
if
(
!
memcmp
(
bt_mesh_gattc_info
[
i
]
.
addr
.
val
,
addr
->
val
,
BLE_MESH_ADDR_LEN
)
)
{
adapter.c:1219
bt_mesh_gattc_conn_create()
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
bt_mesh_gattc_info
)
;
i
++
)
{
adapter.c:1227
bt_mesh_gattc_conn_create()
if
(
(
bt_mesh_gattc_info
[
i
]
.
conn
.
handle
==
0xFFFF
)
&&
adapter.c:1228
bt_mesh_gattc_conn_create()
(
bt_mesh_gattc_info
[
i
]
.
service_uuid
==
0x0000
)
)
{
adapter.c:1229
bt_mesh_gattc_conn_create()
memcpy
(
bt_mesh_gattc_info
[
i
]
.
addr
.
val
,
addr
->
val
,
BLE_MESH_ADDR_LEN
)
;
adapter.c:1230
bt_mesh_gattc_conn_create()
bt_mesh_gattc_info
[
i
]
.
addr
.
type
=
addr
->
type
;
adapter.c:1231
bt_mesh_gattc_conn_create()
bt_mesh_gattc_info
[
i
]
.
service_uuid
=
service_uuid
;
adapter.c:1233
bt_mesh_gattc_conn_create()
if
(
i
==
ARRAY_SIZE
(
bt_mesh_gattc_info
)
)
{
adapter.c:1238
bt_mesh_gattc_conn_create()
BTA_GATTC_Enh_Open
(
bt_mesh_gattc_if
,
bt_mesh_gattc_info
[
i
]
.
addr
.
val
,
adapter.c:1260
bt_mesh_gattc_conn_create()
bt_mesh_gattc_info
[
i
]
.
addr
.
type
,
true
,
BTA_GATT_TRANSPORT_LE
,
FALSE
,
BLE_ADDR_UNKNOWN_TYPE
,
adapter.c:1261
bt_mesh_gattc_conn_create()
conn_id
=
BLE_MESH_GATT_CREATE_CONN_ID
(
bt_mesh_gattc_if
,
bt_mesh_gattc_info
[
index
]
.
conn
.
handle
)
;
adapter.c:1275
bt_mesh_gattc_exchange_mtu()
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
bt_mesh_gattc_info
)
;
i
++
)
{
adapter.c:1284
bt_mesh_gattc_get_mtu_info()
if
(
conn
==
&
bt_mesh_gattc_info
[
i
]
.
conn
)
{
adapter.c:1285
bt_mesh_gattc_get_mtu_info()
return
bt_mesh_gattc_info
[
i
]
.
mtu
;
adapter.c:1286
bt_mesh_gattc_get_mtu_info()
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
bt_mesh_gattc_info
)
;
i
++
)
{
adapter.c:1300
bt_mesh_gattc_write_no_rsp()
if
(
conn
==
&
bt_mesh_gattc_info
[
i
]
.
conn
)
{
adapter.c:1301
bt_mesh_gattc_write_no_rsp()
conn_id
=
BLE_MESH_GATT_CREATE_CONN_ID
(
bt_mesh_gattc_if
,
bt_mesh_gattc_info
[
i
]
.
conn
.
handle
)
;
adapter.c:1302
bt_mesh_gattc_write_no_rsp()
BTA_GATTC_WriteCharValue
(
conn_id
,
bt_mesh_gattc_info
[
i
]
.
data_in_handle
,
adapter.c:1303
bt_mesh_gattc_write_no_rsp()
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
bt_mesh_gattc_info
)
;
i
++
)
{
adapter.c:1327
bt_mesh_gattc_disconnect()
if
(
conn
==
&
bt_mesh_gattc_info
[
i
]
.
conn
)
{
adapter.c:1328
bt_mesh_gattc_disconnect()
conn_id
=
BLE_MESH_GATT_CREATE_CONN_ID
(
bt_mesh_gattc_if
,
bt_mesh_gattc_info
[
i
]
.
conn
.
handle
)
;
adapter.c:1329
bt_mesh_gattc_disconnect()
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
bt_mesh_gattc_info
)
;
i
++
)
{
adapter.c:1372
bt_mesh_bta_gattc_cb()
if
(
bt_mesh_gattc_info
[
i
]
.
conn
.
handle
==
handle
)
{
adapter.c:1373
bt_mesh_bta_gattc_cb()
bt_mesh_gattc_info
[
i
]
.
mtu
=
p_data
->
cfg_mtu
.
mtu
;
adapter.c:1374
bt_mesh_bta_gattc_cb()
.
len
=
sizeof
(
bt_mesh_gattc_info
[
i
]
.
service_uuid
)
,
adapter.c:1378
bt_mesh_bta_gattc_cb()
.
uu
.
uuid16
=
bt_mesh_gattc_info
[
i
]
.
service_uuid
,
adapter.c:1379
bt_mesh_bta_gattc_cb()
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
bt_mesh_gattc_info
)
;
i
++
)
{
adapter.c:1393
bt_mesh_bta_gattc_cb()
if
(
bt_mesh_gattc_info
[
i
]
.
conn
.
handle
==
handle
)
{
adapter.c:1394
bt_mesh_bta_gattc_cb()
p_data
->
srvc_res
.
service_uuid
.
uuid
.
uu
.
uuid16
==
bt_mesh_gattc_info
[
i
]
.
service_uuid
)
{
adapter.c:1396
bt_mesh_bta_gattc_cb()
bt_mesh_gattc_info
[
i
]
.
start_handle
=
p_data
->
srvc_res
.
start_handle
;
adapter.c:1397
bt_mesh_bta_gattc_cb()
bt_mesh_gattc_info
[
i
]
.
end_handle
=
p_data
->
srvc_res
.
end_handle
;
adapter.c:1398
bt_mesh_bta_gattc_cb()
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
bt_mesh_gattc_info
)
;
i
++
)
{
adapter.c:1411
bt_mesh_bta_gattc_cb()
if
(
bt_mesh_gattc_info
[
i
]
.
conn
.
handle
==
handle
)
{
adapter.c:1412
bt_mesh_bta_gattc_cb()
conn
=
&
bt_mesh_gattc_info
[
i
]
.
conn
;
adapter.c:1413
bt_mesh_bta_gattc_cb()
if
(
bt_mesh_gattc_info
[
i
]
.
start_handle
==
0x00
||
adapter.c:1423
bt_mesh_bta_gattc_cb()
bt_mesh_gattc_info
[
i
]
.
end_handle
==
0x00
||
adapter.c:1424
bt_mesh_bta_gattc_cb()
(
bt_mesh_gattc_info
[
i
]
.
start_handle
>
bt_mesh_gattc_info
[
i
]
.
end_handle
)
)
{
adapter.c:1425
bt_mesh_bta_gattc_cb()
bt_mesh_gattc_info
[
i
]
.
start_handle
,
bt_mesh_gattc_info
[
i
]
.
end_handle
,
adapter.c:1440
bt_mesh_bta_gattc_cb()
if
(
bt_mesh_gattc_info
[
i
]
.
service_uuid
==
BLE_MESH_UUID_MESH_PROV_VAL
)
{
adapter.c:1454
bt_mesh_bta_gattc_cb()
}
else
if
(
bt_mesh_gattc_info
[
i
]
.
service_uuid
==
BLE_MESH_UUID_MESH_PROXY_VAL
)
{
adapter.c:1456
bt_mesh_bta_gattc_cb()
BTA_GATTC_GetCharByUUID
(
p_data
->
search_cmpl
.
conn_id
,
bt_mesh_gattc_info
[
i
]
.
start_handle
,
adapter.c:1460
bt_mesh_bta_gattc_cb()
bt_mesh_gattc_info
[
i
]
.
end_handle
,
char_uuid
,
&
result
,
&
num
)
;
adapter.c:1461
bt_mesh_bta_gattc_cb()
bt_mesh_gattc_info
[
i
]
.
data_in_handle
=
result
[
0
]
.
attribute_handle
;
adapter.c:1480
bt_mesh_bta_gattc_cb()
bt_mesh_gattc_info
[
i
]
.
data_out_handle
=
result
[
0
]
.
attribute_handle
;
adapter.c:1487
bt_mesh_bta_gattc_cb()
status
=
BTA_GATTC_RegisterForNotifications
(
bt_mesh_gattc_if
,
bt_mesh_gattc_info
[
i
]
.
addr
.
val
,
adapter.c:1495
bt_mesh_bta_gattc_cb()
bt_mesh_gattc_info
[
i
]
.
data_out_handle
)
;
adapter.c:1496
bt_mesh_bta_gattc_cb()
bt_mesh_gattc_info
[
i
]
.
start_handle
,
bt_mesh_gattc_info
[
i
]
.
end_handle
,
adapter.c:1506
bt_mesh_bta_gattc_cb()
bt_mesh_gattc_info
[
i
]
.
data_out_handle
,
&
num
)
;
adapter.c:1507
bt_mesh_bta_gattc_cb()
BTA_GATTC_GetDescrByCharHandle
(
p_data
->
search_cmpl
.
conn_id
,
bt_mesh_gattc_info
[
i
]
.
data_out_handle
,
adapter.c:1516
bt_mesh_bta_gattc_cb()
bt_mesh_gattc_info
[
i
]
.
ccc_handle
=
result
[
0
]
.
attribute_handle
;
adapter.c:1529
bt_mesh_bta_gattc_cb()
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
bt_mesh_gattc_info
)
;
i
++
)
{
adapter.c:1552
bt_mesh_bta_gattc_cb()
if
(
bt_mesh_gattc_info
[
i
]
.
conn
.
handle
==
handle
)
{
adapter.c:1553
bt_mesh_bta_gattc_cb()
conn
=
&
bt_mesh_gattc_info
[
i
]
.
conn
;
adapter.c:1554
bt_mesh_bta_gattc_cb()
if
(
bt_mesh_gattc_info
[
i
]
.
ccc_handle
!=
p_data
->
write
.
handle
)
{
adapter.c:1564
bt_mesh_bta_gattc_cb()
if
(
bt_mesh_gattc_info
[
i
]
.
service_uuid
==
BLE_MESH_UUID_MESH_PROV_VAL
)
{
adapter.c:1570
bt_mesh_bta_gattc_cb()
len
=
bt_mesh_gattc_conn_cb
->
prov_write_descr
(
&
bt_mesh_gattc_info
[
i
]
.
addr
,
&
bt_mesh_gattc_info
[
i
]
.
conn
)
;
adapter.c:1572
bt_mesh_bta_gattc_cb()
bt_mesh_gattc_info
[
i
]
.
wr_desc_done
=
true
;
adapter.c:1578
bt_mesh_bta_gattc_cb()
}
else
if
(
bt_mesh_gattc_info
[
i
]
.
service_uuid
==
BLE_MESH_UUID_MESH_PROXY_VAL
)
{
adapter.c:1580
bt_mesh_bta_gattc_cb()
len
=
bt_mesh_gattc_conn_cb
->
proxy_write_descr
(
&
bt_mesh_gattc_info
[
i
]
.
addr
,
&
bt_mesh_gattc_info
[
i
]
.
conn
)
;
adapter.c:1582
bt_mesh_bta_gattc_cb()
bt_mesh_gattc_info
[
i
]
.
wr_desc_done
=
true
;
adapter.c:1588
bt_mesh_bta_gattc_cb()
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
bt_mesh_gattc_info
)
;
i
++
)
{
adapter.c:1599
bt_mesh_bta_gattc_cb()
if
(
bt_mesh_gattc_info
[
i
]
.
conn
.
handle
==
handle
)
{
adapter.c:1600
bt_mesh_bta_gattc_cb()
if
(
bt_mesh_gattc_info
[
i
]
.
wr_desc_done
==
false
)
{
adapter.c:1601
bt_mesh_bta_gattc_cb()
conn
=
&
bt_mesh_gattc_info
[
i
]
.
conn
;
adapter.c:1606
bt_mesh_bta_gattc_cb()
if
(
memcmp
(
bt_mesh_gattc_info
[
i
]
.
addr
.
val
,
p_data
->
notify
.
bda
,
BLE_MESH_ADDR_LEN
)
||
adapter.c:1616
bt_mesh_bta_gattc_cb()
bt_mesh_gattc_info
[
i
]
.
data_out_handle
!=
p_data
->
notify
.
handle
||
adapter.c:1617
bt_mesh_bta_gattc_cb()
if
(
bt_mesh_gattc_info
[
i
]
.
service_uuid
==
BLE_MESH_UUID_MESH_PROV_VAL
)
{
adapter.c:1624
bt_mesh_bta_gattc_cb()
len
=
bt_mesh_gattc_conn_cb
->
prov_notify
(
&
bt_mesh_gattc_info
[
i
]
.
conn
,
adapter.c:1626
bt_mesh_bta_gattc_cb()
}
else
if
(
bt_mesh_gattc_info
[
i
]
.
service_uuid
==
BLE_MESH_UUID_MESH_PROXY_VAL
)
{
adapter.c:1635
bt_mesh_bta_gattc_cb()
len
=
bt_mesh_gattc_conn_cb
->
proxy_notify
(
&
bt_mesh_gattc_info
[
i
]
.
conn
,
adapter.c:1637
bt_mesh_bta_gattc_cb()
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
bt_mesh_gattc_info
)
;
i
++
)
{
adapter.c:1684
bt_mesh_bta_gattc_cb()
if
(
!
memcmp
(
bt_mesh_gattc_info
[
i
]
.
addr
.
val
,
p_data
->
connect
.
remote_bda
,
BLE_MESH_ADDR_LEN
)
)
{
adapter.c:1685
bt_mesh_bta_gattc_cb()
bt_mesh_gattc_info
[
i
]
.
conn
.
handle
=
BLE_MESH_GATT_GET_CONN_ID
(
p_data
->
connect
.
conn_id
)
;
adapter.c:1686
bt_mesh_bta_gattc_cb()
(
bt_mesh_gattc_conn_cb
->
connected
)
(
&
bt_mesh_gattc_info
[
i
]
.
addr
,
&
bt_mesh_gattc_info
[
i
]
.
conn
,
i
)
;
adapter.c:1687
bt_mesh_bta_gattc_cb()
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
bt_mesh_gattc_info
)
;
i
++
)
{
adapter.c:1705
bt_mesh_bta_gattc_cb()
if
(
!
memcmp
(
bt_mesh_gattc_info
[
i
]
.
addr
.
val
,
p_data
->
disconnect
.
remote_bda
,
BLE_MESH_ADDR_LEN
)
)
{
adapter.c:1706
bt_mesh_bta_gattc_cb()
if
(
bt_mesh_gattc_info
[
i
]
.
conn
.
handle
==
handle
)
{
adapter.c:1707
bt_mesh_bta_gattc_cb()
(
bt_mesh_gattc_conn_cb
->
disconnected
)
(
&
bt_mesh_gattc_info
[
i
]
.
addr
,
&
bt_mesh_gattc_info
[
i
]
.
conn
,
p_data
->
disconnect
.
reason
)
;
adapter.c:1708
bt_mesh_bta_gattc_cb()
if
(
!
bt_mesh_gattc_info
[
i
]
.
wr_desc_done
)
{
adapter.c:1709
bt_mesh_bta_gattc_cb()
if
(
bt_mesh_gattc_info
[
i
]
.
service_uuid
==
BLE_MESH_UUID_MESH_PROV_VAL
)
{
adapter.c:1714
bt_mesh_bta_gattc_cb()
bt_mesh_provisioner_clear_link_info
(
bt_mesh_gattc_info
[
i
]
.
addr
.
val
)
;
adapter.c:1715
bt_mesh_bta_gattc_cb()
if
(
bt_mesh_gattc_info
[
i
]
.
service_uuid
==
BLE_MESH_UUID_MESH_PROV_VAL
)
{
adapter.c:1725
bt_mesh_bta_gattc_cb()
bt_mesh_provisioner_clear_link_info
(
bt_mesh_gattc_info
[
i
]
.
addr
.
val
)
;
adapter.c:1726
bt_mesh_bta_gattc_cb()
if
(
bt_mesh_gattc_info
[
i
]
.
service_uuid
==
BLE_MESH_UUID_MESH_PROV_VAL
)
{
adapter.c:1731
bt_mesh_bta_gattc_cb()
memset
(
&
bt_mesh_gattc_info
[
i
]
,
0
,
sizeof
(
bt_mesh_gattc_info
[
i
]
)
)
;
adapter.c:1737
bt_mesh_bta_gattc_cb()
bt_mesh_gattc_info
[
i
]
.
conn
.
handle
=
0xFFFF
;
adapter.c:1738
bt_mesh_bta_gattc_cb()
bt_mesh_gattc_info
[
i
]
.
mtu
=
GATT_DEF_BLE_MTU_SIZE
;
adapter.c:1739
bt_mesh_bta_gattc_cb()
bt_mesh_gattc_info
[
i
]
.
wr_desc_done
=
false
;
adapter.c:1740
bt_mesh_bta_gattc_cb()
for
(
int
i
=
0
;
i
<
ARRAY_SIZE
(
bt_mesh_gattc_info
)
;
i
++
)
{
adapter.c:1800
bt_mesh_gatt_init()
bt_mesh_gattc_info
[
i
]
.
conn
.
handle
=
0xFFFF
;
adapter.c:1801
bt_mesh_gatt_init()
bt_mesh_gattc_info
[
i
]
.
mtu
=
GATT_DEF_BLE_MTU_SIZE
;
/* Default MTU_SIZE 23 */
adapter.c:1802
bt_mesh_gatt_init()
bt_mesh_gattc_info
[
i
]
.
wr_desc_done
=
false
;
adapter.c:1803
bt_mesh_gatt_init()
for
(
int
i
=
0
;
i
<
ARRAY_SIZE
(
bt_mesh_gattc_info
)
;
i
++
)
{
adapter.c:1827
bt_mesh_gatt_deinit()
bt_mesh_gattc_info
[
i
]
.
conn
.
handle
=
0xFFFF
;
adapter.c:1828
bt_mesh_gatt_deinit()
memset
(
&
bt_mesh_gattc_info
[
i
]
.
addr
,
0
,
sizeof
(
bt_mesh_addr_t
)
)
;
adapter.c:1829
bt_mesh_gatt_deinit()
bt_mesh_gattc_info
[
i
]
.
service_uuid
=
0U
;
adapter.c:1830
bt_mesh_gatt_deinit()
bt_mesh_gattc_info
[
i
]
.
mtu
=
GATT_DEF_BLE_MTU_SIZE
;
/* Default MTU_SIZE 23 */
adapter.c:1831
bt_mesh_gatt_deinit()
bt_mesh_gattc_info
[
i
]
.
wr_desc_done
=
false
;
adapter.c:1832
bt_mesh_gatt_deinit()
bt_mesh_gattc_info
[
i
]
.
start_handle
=
0U
;
adapter.c:1833
bt_mesh_gatt_deinit()
bt_mesh_gattc_info
[
i
]
.
end_handle
=
0U
;
adapter.c:1834
bt_mesh_gatt_deinit()
bt_mesh_gattc_info
[
i
]
.
data_in_handle
=
0U
;
adapter.c:1835
bt_mesh_gatt_deinit()
bt_mesh_gattc_info
[
i
]
.
data_out_handle
=
0U
;
adapter.c:1836
bt_mesh_gatt_deinit()
bt_mesh_gattc_info
[
i
]
.
ccc_handle
=
0U
;
adapter.c:1837
bt_mesh_gatt_deinit()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
bt_mesh_gattc_info
is read by 10 functions:
All items filtered out
bt_mesh_gattc_info
bt_mesh_gattc_get_free_conn_count()
bt_mesh_gattc_get_service_uuid()
bt_mesh_gattc_conn_create()
bt_mesh_gattc_exchange_mtu()
bt_mesh_gattc_get_mtu_info()
bt_mesh_gattc_write_no_rsp()
bt_mesh_gattc_disconnect()
bt_mesh_bta_gattc_cb()
bt_mesh_gatt_init()
bt_mesh_gatt_deinit()
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out