Select one of the symbols to view example projects that use it.
 
Outline
#define BTA_DM_INT_H
#include "common/bt_target.h"
#include "freertos/semphr.h"
#include "bta/bta_sys.h"
#include "bta/bta_gatt_api.h"
#define BTA_DM_MSG_LEN
#define BTA_SERVICE_ID_TO_SERVICE_MASK
<anonymous enum>
<anonymous enum>
tBTA_DM_API_ENABLE
tBTA_DM_API_SET_NAME
tBTA_DM_API_GET_NAME
tBTA_DM_API_CFG_COEX_STATUS
tBTA_DM_API_SEND_VENDOR_HCI_CMD
tBTA_DM_API_CONFIG_EIR
tBTA_DM_API_SET_AFH_CHANNELS
tBTA_DM_API_PAGE_TO_SET
tBTA_DM_API_PAGE_TO_GET
tBTA_DM_API_SET_ACL_PKT_TYPES
tBTA_DM_API_GET_REMOTE_NAME
tBTA_DM_API_BLE_SET_CHANNELS
tBTA_DM_API_UPDATE_WHITE_LIST
tBTA_DM_API_UPDATE_DUPLICATE_EXCEPTIONAL_LIST
tBTA_DM_API_READ_ADV_TX_POWER
tBTA_DM_API_READ_RSSI
tBTA_DM_API_SET_VISIBILITY
<anonymous enum>
tBTA_DM_RS_RES
tBTA_DM_API_SEARCH
tBTA_DM_API_DI_DISC
tBTA_DM_API_BOND
tBTA_DM_API_BOND_CANCEL
tBTA_DM_API_SET_PIN_TYPE
tBTA_DM_API_PIN_REPLY
tBTA_DM_API_LOC_OOB
tBTA_DM_API_OOB_REPLY
tBTA_DM_API_SC_OOB_REPLY
tBTA_DM_API_SC_CR_OOB_DATA
tBTA_DM_API_CONFIRM
tBTA_DM_API_KEY_REQ
tBTA_DM_CI_IO_REQ
tBTA_DM_CI_RMT_OOB
tBTA_DM_REM_NAME
tBTA_DM_DISC_RESULT
tBTA_DM_INQUIRY_CMPL
tBTA_DM_SDP_RESULT
tBTA_DM_ACL_CHANGE
tBTA_DM_API_ADD_DEVICE
tBTA_DM_API_REMOVE_DEVICE
tBTA_DM_API_EXECUTE_CBACK
tBTA_DM_API_SET_ENCRYPTION
tBTA_DM_API_ADD_BLEKEY
tBTA_DM_API_ADD_BLE_DEVICE
tBTA_DM_API_PASSKEY_REPLY
tBTA_DM_API_SET_DEFAULT_PASSKEY
tBTA_DM_API_BLE_SEC_GRANT
tBTA_DM_API_BLE_SET_BG_CONN_TYPE
tBTA_DM_API_BLE_CONN_PARAMS
tBTA_DM_API_ENABLE_PRIVACY
tBTA_DM_API_LOCAL_PRIVACY
tBTA_DM_API_LOCAL_ICON
tBTA_DM_API_BLE_SCAN_PARAMS
tBTA_DM_API_BLE_SCAN_FILTER_PARAMS
tBTA_DM_API_BLE_CONN_SCAN_PARAMS
tBTA_DM_API_BLE_OBSERVE
tBTA_DM_API_BLE_SCAN
tBTA_DM_API_BLE_SET_DATA_LENGTH
tBTA_DM_APT_SET_DEV_ADDR
tBTA_DM_APT_CLEAR_ADDR
tBTA_DM_API_SET_RPA_TIMEOUT
tBTA_DM_API_ADD_DEV_TO_RESOLVING_LIST
tBTA_DM_API_BLE_ADV_PARAMS
tBTA_DM_API_BLE_ADV_PARAMS_ALL
tBTA_DM_API_BLE_FEATURE
tBTA_DM_API_BLE_MULTI_ADV_ENB
tBTA_DM_API_BLE_MULTI_ADV_PARAM
tBTA_DM_API_BLE_MULTI_ADV_DATA
tBTA_DM_API_BLE_MULTI_ADV_DISABLE
tBTA_DM_API_SET_ADV_CONFIG
tBTA_DM_API_SET_ADV_CONFIG_RAW
tBTA_DM_API_SET_LONG_ADV
tBTA_DM_API_SET_STORAGE_CONFIG
tBTA_DM_API_ENABLE_SCAN
tBTA_DM_API_DISABLE_SCAN
tBTA_DM_API_READ_SCAN_REPORTS
tBTA_DM_API_TRACK_ADVERTISER
tBTA_DM_API_ENERGY_INFO
tBTA_DM_API_BLE_DISCONNECT
tBTA_DM_API_BLE_DTM_TX_START
tBTA_DM_API_BLE_DTM_RX_START
tBTA_DM_API_BLE_DTM_STOP
tBTA_DM_API_CLEAR_ADV
tBTA_DM_API_SET_PRIVACY_MODE
tBTA_DM_API_BLE_SET_CSA_SUPPORT
tBTA_DM_API_REMOVE_ACL
tBTA_DM_API_REMOVE_ALL_ACL
tBTA_DM_API_UPDATE_CONN_PARAM
tBTA_DM_API_CFG_FILTER_COND
tBTA_DM_API_ENABLE_SCAN_FILTER
tBTA_DM_API_SCAN_FILTER_PARAM_SETUP
#define BTA_PHY_1M_MASK
#define BTA_PHY_2M_MASK
#define BTA_PHY_CODED_MASK
tBTA_DM_MSG
#define BTA_DM_NUM_PEER_DEVICE
#define BTA_DM_NOT_CONNECTED
#define BTA_DM_CONNECTED
#define BTA_DM_UNPAIRING
tBTA_DM_CONN_STATE
#define BTA_DM_DI_NONE
#define BTA_DM_DI_USE_SSR
#define BTA_DM_DI_AV_ACTIVE
#define BTA_DM_DI_SET_SNIFF
#define BTA_DM_DI_INT_SNIFF
#define BTA_DM_DI_ACP_SNIFF
tBTA_DM_DEV_INFO
#define BTA_DM_PM_RESTART
#define BTA_DM_PM_NEW_REQ
#define BTA_DM_PM_EXECUTE
tBTA_DM_PM_REQ
tBTA_DM_PEER_DEVICE
tBTA_DM_ACTIVE_LINK
tBTA_DM_SRVCS
#define BTA_DM_NUM_CONN_SRVS
tBTA_DM_CONNECTED_SRVCS
#define BTA_DM_PM_SNIFF_TIMER_IDX
#define BTA_DM_PM_PARK_TIMER_IDX
#define BTA_DM_PM_SUSPEND_TIMER_IDX
#define BTA_DM_PM_MODE_TIMER_MAX
#define BTA_DM_NUM_PM_TIMER
tBTA_DM_CB
#define BTA_DM_SDP_DB_SIZE
tBTA_DM_SEARCH_CB
tBTA_DM_DI_CB
<anonymous enum>
tBTA_DM_CFG
bta_service_id_to_btm_srv_id_lkup_tbl;
tBTA_DM_RM
p_bta_dm_cfg;
p_bta_dm_rm_cfg;
tBTA_DM_PM_CFG
tBTA_DM_PM_ACTN
tBTA_DM_PM_SPEC
tBTA_DM_SSR_SPEC
tBTA_DM_LMP_VER_INFO
bta_dm_eir_cfg;
p_bta_dm_eir_cfg;
bta_dm_cb;
#define bta_dm_cb
bta_dm_search_cb;
#define bta_dm_search_cb
bta_dm_di_cb;
#define bta_dm_di_cb
bta_dm_conn_srvcs;
#define bta_dm_conn_srvcs
#define MAX_DISC_RAW_DATA_BUF
bta_dm_sm_execute(BT_HDR *);
bta_dm_sm_disable();
bta_dm_sm_deinit();
bta_dm_search_sm_execute(BT_HDR *);
bta_dm_search_sm_disable();
bta_dm_enable(tBTA_DM_MSG *);
bta_dm_disable(tBTA_DM_MSG *);
bta_dm_set_dev_name(tBTA_DM_MSG *);
bta_dm_get_dev_name(tBTA_DM_MSG *);
bta_dm_cfg_coex_status(tBTA_DM_MSG *);
bta_dm_send_vendor_hci(tBTA_DM_MSG *);
bta_dm_set_afh_channels(tBTA_DM_MSG *);
bta_dm_read_rmt_name(tBTA_DM_MSG *);
bta_dm_ble_set_channels(tBTA_DM_MSG *);
bta_dm_update_white_list(tBTA_DM_MSG *);
bta_dm_clear_white_list(tBTA_DM_MSG *);
bta_dm_ble_read_adv_tx_power(tBTA_DM_MSG *);
bta_dm_read_rssi(tBTA_DM_MSG *);
bta_dm_set_visibility(tBTA_DM_MSG *);
bta_dm_set_scan_config(tBTA_DM_MSG *);
bta_dm_vendor_spec_command(tBTA_DM_MSG *);
bta_dm_bond(tBTA_DM_MSG *);
bta_dm_bond_cancel(tBTA_DM_MSG *);
bta_dm_set_pin_type(tBTA_DM_MSG *);
bta_dm_pin_reply(tBTA_DM_MSG *);
bta_dm_acl_change(tBTA_DM_MSG *);
bta_dm_add_device(tBTA_DM_MSG *);
bta_dm_remove_device(tBTA_DM_MSG *);
bta_dm_close_acl(tBTA_DM_MSG *);
bta_dm_add_ampkey(tBTA_DM_MSG *);
bta_dm_add_blekey(tBTA_DM_MSG *);
bta_dm_add_ble_device(tBTA_DM_MSG *);
bta_dm_ble_passkey_reply(tBTA_DM_MSG *);
bta_dm_ble_set_static_passkey(tBTA_DM_MSG *);
bta_dm_ble_confirm_reply(tBTA_DM_MSG *);
bta_dm_security_grant(tBTA_DM_MSG *);
bta_dm_ble_set_bg_conn_type(tBTA_DM_MSG *);
bta_dm_ble_set_conn_params(tBTA_DM_MSG *);
bta_dm_ble_set_scan_params(tBTA_DM_MSG *);
bta_dm_ble_set_scan_fil_params(tBTA_DM_MSG *);
bta_dm_ble_set_conn_scan_params(tBTA_DM_MSG *);
bta_dm_ble_observe(tBTA_DM_MSG *);
bta_dm_ble_scan(tBTA_DM_MSG *);
bta_dm_ble_update_conn_params(tBTA_DM_MSG *);
bta_dm_ble_disconnect(tBTA_DM_MSG *);
bta_dm_ble_set_rand_address(tBTA_DM_MSG *);
bta_dm_ble_clear_rand_address(tBTA_DM_MSG *);
bta_dm_ble_stop_advertising(tBTA_DM_MSG *);
bta_dm_ble_config_local_privacy(tBTA_DM_MSG *);
bta_dm_ble_config_local_icon(tBTA_DM_MSG *);
bta_dm_ble_set_adv_params(tBTA_DM_MSG *);
bta_dm_ble_set_adv_params_all(tBTA_DM_MSG *);
bta_dm_ble_set_adv_config(tBTA_DM_MSG *);
bta_dm_ble_set_long_adv(tBTA_DM_MSG *);
bta_dm_ble_set_adv_config_raw(tBTA_DM_MSG *);
bta_dm_ble_set_scan_rsp(tBTA_DM_MSG *);
bta_dm_ble_set_scan_rsp_raw(tBTA_DM_MSG *);
bta_dm_ble_broadcast(tBTA_DM_MSG *);
bta_dm_ble_set_data_length(tBTA_DM_MSG *);
bta_dm_ble_update_duplicate_exceptional_list(tBTA_DM_MSG *);
bta_dm_co_security_param_init();
bta_dm_cfg_filter_cond(tBTA_DM_MSG *);
bta_dm_scan_filter_param_setup(tBTA_DM_MSG *);
bta_dm_enable_scan_filter(tBTA_DM_MSG *);
btm_dm_ble_multi_adv_disable(tBTA_DM_MSG *);
bta_dm_ble_multi_adv_data(tBTA_DM_MSG *);
bta_dm_ble_multi_adv_upd_param(tBTA_DM_MSG *);
bta_dm_ble_multi_adv_enb(tBTA_DM_MSG *);
bta_dm_ble_gap_dtm_tx_start(tBTA_DM_MSG *);
bta_dm_ble_gap_dtm_rx_start(tBTA_DM_MSG *);
bta_dm_ble_gap_dtm_stop(tBTA_DM_MSG *);
bta_dm_ble_gap_clear_adv(tBTA_DM_MSG *);
bta_dm_ble_gap_set_rpa_timeout(tBTA_DM_MSG *);
bta_dm_ble_gap_add_dev_to_resolving_list(tBTA_DM_MSG *);
bta_dm_ble_gap_set_privacy_mode(tBTA_DM_MSG *);
bta_dm_ble_gap_set_csa_support(tBTA_DM_MSG *);
bta_dm_ble_setup_storage(tBTA_DM_MSG *);
bta_dm_ble_enable_batch_scan(tBTA_DM_MSG *);
bta_dm_ble_disable_batch_scan(tBTA_DM_MSG *);
bta_dm_ble_read_scan_reports(tBTA_DM_MSG *);
bta_dm_ble_track_advertiser(tBTA_DM_MSG *);
bta_dm_ble_get_energy_info(tBTA_DM_MSG *);
bta_dm_set_encryption(tBTA_DM_MSG *);
bta_dm_confirm(tBTA_DM_MSG *);
bta_dm_key_req(tBTA_DM_MSG *);
bta_dm_loc_oob(tBTA_DM_MSG *);
bta_dm_oob_reply(tBTA_DM_MSG *);
bta_dm_sc_oob_reply(tBTA_DM_MSG *);
bta_dm_sc_create_oob_data(tBTA_DM_MSG *);
bta_dm_ci_io_req_act(tBTA_DM_MSG *);
bta_dm_ci_rmt_oob_act(tBTA_DM_MSG *);
bta_dm_get_av_count();
bta_dm_search_start(tBTA_DM_MSG *);
bta_dm_search_cancel(tBTA_DM_MSG *);
bta_dm_discover(tBTA_DM_MSG *);
bta_dm_inq_cmpl(tBTA_DM_MSG *);
bta_dm_rmt_name(tBTA_DM_MSG *);
bta_dm_search_cmpl(tBTA_DM_MSG *);
bta_dm_free_sdp_db(tBTA_DM_MSG *);
bta_dm_disc_result(tBTA_DM_MSG *);
bta_dm_search_result(tBTA_DM_MSG *);
bta_dm_discovery_cmpl(tBTA_DM_MSG *);
bta_dm_queue_search(tBTA_DM_MSG *);
bta_dm_queue_disc(tBTA_DM_MSG *);
bta_dm_search_clear_queue(tBTA_DM_MSG *);
bta_dm_search_cancel_cmpl(tBTA_DM_MSG *);
bta_dm_search_cancel_notify(tBTA_DM_MSG *);
bta_dm_search_cancel_transac_cmpl(tBTA_DM_MSG *);
bta_dm_disc_rmt_name(tBTA_DM_MSG *);
bta_dm_find_peer_device(UINT8 *);
bta_dm_eir_update_uuid(tBT_UUID, BOOLEAN);
bta_dm_enable_test_mode(tBTA_DM_MSG *);
bta_dm_disable_test_mode(tBTA_DM_MSG *);
bta_dm_execute_callback(tBTA_DM_MSG *);
bta_dm_remove_all_acl(tBTA_DM_MSG *);
Files
loading...
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/bt/host/bluedroid/bta/dm/include/bta_dm_int.h
 
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/****************************************************************************** * * Copyright (C) 2003-2012 Broadcom Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ******************************************************************************//* ... */ /****************************************************************************** * * This is the private interface file for the BTA device manager. * ******************************************************************************//* ... */ #ifndef BTA_DM_INT_H #define BTA_DM_INT_H #include "common/bt_target.h" #include "freertos/semphr.h" #include "bta/bta_sys.h" #if (BLE_INCLUDED == TRUE && (defined BTA_GATT_INCLUDED) && (BTA_GATT_INCLUDED == TRUE)) #include "bta/bta_gatt_api.h" #endif /***************************************************************************** ** Constants and data types *****************************************************************************//* ... */ #define BTA_COPY_DEVICE_CLASS(coddst, codsrc) {((UINT8 *)(coddst))[0] = ((UINT8 *)(codsrc))[0]; \ ((UINT8 *)(coddst))[1] = ((UINT8 *)(codsrc))[1]; \ ((UINT8 *)(coddst))[2] = ((UINT8 *)(codsrc))[2];}{...} #define BTA_DM_MSG_LEN 50 #define BTA_SERVICE_ID_TO_SERVICE_MASK(id) (1 << (id)) /* DM events */ enum { /* device manager local device API events */ BTA_DM_API_ENABLE_EVT = BTA_SYS_EVT_START(BTA_ID_DM), BTA_DM_API_DISABLE_EVT, BTA_DM_API_SET_NAME_EVT, BTA_DM_API_GET_NAME_EVT, #if (ESP_COEX_VSC_INCLUDED == TRUE) BTA_DM_API_CFG_COEX_ST_EVT, #endif BTA_DM_API_SEND_VENDOR_HCI_CMD_EVT, #if (CLASSIC_BT_INCLUDED == TRUE) BTA_DM_API_CONFIG_EIR_EVT, BTA_DM_API_PAGE_TO_SET_EVT, BTA_DM_API_PAGE_TO_GET_EVT, BTA_DM_API_SET_ACL_PKT_TYPES_EVT, #if (ENC_KEY_SIZE_CTRL_MODE != ENC_KEY_SIZE_CTRL_MODE_NONE) BTA_DM_API_SET_MIN_ENC_KEY_SIZE_EVT, #endif/* ... */ #endif BTA_DM_API_SET_AFH_CHANNELS_EVT, #if (SDP_INCLUDED == TRUE) BTA_DM_API_GET_REMOTE_NAME_EVT, #endif BTA_DM_API_SET_VISIBILITY_EVT, BTA_DM_ACL_CHANGE_EVT, BTA_DM_API_ADD_DEVICE_EVT, BTA_DM_API_REMOVE_ACL_EVT, #if (SMP_INCLUDED == TRUE) /* security API events */ BTA_DM_API_BOND_EVT, BTA_DM_API_BOND_CANCEL_EVT, BTA_DM_API_SET_PIN_TYPE_EVT, BTA_DM_API_PIN_REPLY_EVT,/* ... */ #endif ///SMP_INCLUDED == TRUE #if (BTA_DM_PM_INCLUDED == TRUE) /* power manager events */ BTA_DM_PM_BTM_STATUS_EVT, BTA_DM_PM_TIMER_EVT,/* ... */ #endif /* #if (BTA_DM_PM_INCLUDED == TRUE) */ #if (BTA_DM_QOS_INCLUDED == TRUE) /* Quality of Service set events */ BTA_DM_API_QOS_SET_EVT,/* ... */ #endif /* #if (BTA_DM_QOS_INCLUDED == TRUE) */ #if (SMP_INCLUDED == TRUE) #if (CLASSIC_BT_INCLUDED == TRUE) /* simple pairing events */ BTA_DM_API_CONFIRM_EVT, BTA_DM_API_KEY_REQ_EVT,/* ... */ #endif /* (CLASSIC_BT_INCLUDED == TRUE) */ BTA_DM_API_SET_ENCRYPTION_EVT,/* ... */ #endif /* (SMP_INCLUDED == TRUE) */ #if (BTM_OOB_INCLUDED == TRUE && SMP_INCLUDED == TRUE) BTA_DM_API_LOC_OOB_EVT, BTA_DM_API_OOB_REPLY_EVT, BTA_DM_API_SC_OOB_REPLY_EVT, BTA_DM_API_SC_CR_OOB_DATA_EVT, BTA_DM_CI_IO_REQ_EVT, BTA_DM_CI_RMT_OOB_EVT,/* ... */ #endif /* BTM_OOB_INCLUDED */ #if BLE_INCLUDED == TRUE #if SMP_INCLUDED == TRUE BTA_DM_API_ADD_BLEKEY_EVT, BTA_DM_API_ADD_BLEDEVICE_EVT, BTA_DM_API_BLE_PASSKEY_REPLY_EVT, BTA_DM_API_BLE_SET_STATIC_PASSKEY_EVT, BTA_DM_API_BLE_CONFIRM_REPLY_EVT, BTA_DM_API_BLE_SEC_GRANT_EVT,/* ... */ #endif ///SMP_INCLUDED == TRUE BTA_DM_API_BLE_SET_BG_CONN_TYPE, BTA_DM_API_BLE_CONN_PARAM_EVT, BTA_DM_API_BLE_CONN_SCAN_PARAM_EVT, BTA_DM_API_BLE_SCAN_PARAM_EVT, /*******This event added by Yulong at 2016/10/25 to support the scan filter setting for the APP******//* ... */ BTA_DM_API_BLE_SCAN_FIL_PARAM_EVT, BTA_DM_API_BLE_OBSERVE_EVT, BTA_DM_API_BLE_SCAN_EVT, BTA_DM_API_UPDATE_CONN_PARAM_EVT, /*******This event added by Yulong at 2016/9/9 to support the random address setting for the APP******//* ... */ BTA_DM_API_SET_RAND_ADDR_EVT, BTA_DM_API_CLEAR_RAND_ADDR_EVT, /*******This event added by Yulong at 2016/10/19 to support stop the ble advertising setting by the APP******//* ... */ BTA_DM_API_BLE_STOP_ADV_EVT, #if BLE_PRIVACY_SPT == TRUE BTA_DM_API_LOCAL_PRIVACY_EVT, #endif BTA_DM_API_LOCAL_ICON_EVT, BTA_DM_API_BLE_ADV_PARAM_EVT, /*******This event added by Yulong at 2016/10/20 to support setting the ble advertising param by the APP******//* ... */ BTA_DM_API_BLE_ADV_PARAM_All_EVT, BTA_DM_API_BLE_SET_ADV_CONFIG_EVT, /* Add for set raw advertising data */ BTA_DM_API_BLE_SET_ADV_CONFIG_RAW_EVT, BTA_DM_API_BLE_SET_SCAN_RSP_EVT, /* Add for set raw scan response data */ BTA_DM_API_BLE_SET_SCAN_RSP_RAW_EVT, BTA_DM_API_BLE_BROADCAST_EVT, BTA_DM_API_SET_DATA_LENGTH_EVT, BTA_DM_API_BLE_SET_LONG_ADV_EVT, #if BLE_ANDROID_CONTROLLER_SCAN_FILTER == TRUE BTA_DM_API_CFG_FILTER_COND_EVT, BTA_DM_API_SCAN_FILTER_SETUP_EVT, BTA_DM_API_SCAN_FILTER_ENABLE_EVT,/* ... */ #endif BTA_DM_API_BLE_MULTI_ADV_ENB_EVT, BTA_DM_API_BLE_MULTI_ADV_PARAM_UPD_EVT, BTA_DM_API_BLE_MULTI_ADV_DATA_EVT, BTA_DM_API_BLE_MULTI_ADV_DISABLE_EVT, BTA_DM_API_BLE_SETUP_STORAGE_EVT, BTA_DM_API_BLE_ENABLE_BATCH_SCAN_EVT, BTA_DM_API_BLE_DISABLE_BATCH_SCAN_EVT, BTA_DM_API_BLE_READ_SCAN_REPORTS_EVT, BTA_DM_API_BLE_TRACK_ADVERTISER_EVT, BTA_DM_API_BLE_ENERGY_INFO_EVT, BTA_DM_API_BLE_DISCONNECT_EVT, /* ... */ #endif BTA_DM_API_ENABLE_TEST_MODE_EVT, BTA_DM_API_DISABLE_TEST_MODE_EVT, BTA_DM_API_EXECUTE_CBACK_EVT, BTA_DM_API_REMOVE_ALL_ACL_EVT, BTA_DM_API_REMOVE_DEVICE_EVT, BTA_DM_API_BLE_SET_CHANNELS_EVT, BTA_DM_API_UPDATE_WHITE_LIST_EVT, BTA_DM_API_CLEAR_WHITE_LIST_EVT, BTA_DM_API_BLE_READ_ADV_TX_POWER_EVT, BTA_DM_API_READ_RSSI_EVT, #if BLE_INCLUDED == TRUE BTA_DM_API_UPDATE_DUPLICATE_EXCEPTIONAL_LIST_EVT, #endif #if (BLE_50_FEATURE_SUPPORT == TRUE) BTA_DM_API_READ_PHY_EVT, BTA_DM_API_SET_PER_DEF_PHY_EVT, BTA_DM_API_SET_PER_PHY_EVT, BTA_DM_API_SET_EXT_ADV_RAND_ADDR_EVT, BTA_DM_API_SET_EXT_ADV_PARAMS_EVT, BTA_DM_API_CFG_ADV_DATA_RAW_EVT, BTA_DM_API_EXT_ADV_ENABLE_EVT, BTA_DM_API_EXT_ADV_SET_REMOVE_EVT, BTA_DM_API_EXT_ADV_SET_CLEAR_EVT, BTA_DM_API_PERIODIC_ADV_SET_PARAMS_EVT, BTA_DM_API_PERIODIC_ADV_CFG_DATA_EVT, BTA_DM_API_PERIODIC_ADV_ENABLE_EVT, BTA_DM_API_PERIODIC_ADV_SYNC_EVT, BTA_DM_API_PERIODIC_ADV_SYNC_CANCEL_EVT, BTA_DM_API_PERIODIC_ADV_SYNC_TERMINATE_EVT, BTA_DM_API_PERIODIC_ADV_ADD_DEV_TO_LSIT_EVT, BTA_DM_API_PERIODIC_ADV_REMOVE_DEV_FROM_LSIT_EVT, BTA_DM_API_PERIODIC_ADV_CLEAR_DEV_EVT, BTA_DM_API_SET_EXT_SCAN_PARAMS_EVT, BTA_DM_API_START_EXT_SCAN_EVT, BTA_DM_API_SET_PERF_EXT_CONN_PARAMS_EVT, BTA_DM_API_EXT_CONN_EVT, BTA_DM_API_DTM_ENH_TX_START_EVT, BTA_DM_API_DTM_ENH_RX_START_EVT,/* ... */ #endif // #if (BLE_50_FEATURE_SUPPORT == TRUE) #if (BLE_FEAT_PERIODIC_ADV_SYNC_TRANSFER == TRUE) BTA_DM_API_PERIODIC_ADV_RECV_ENABLE_EVT, BTA_DM_API_PERIODIC_ADV_SYNC_TRANS_EVT, BTA_DM_API_PERIODIC_ADV_SET_INFO_TRANS_EVT, BTA_DM_API_SET_PERIODIC_ADV_SYNC_TRANS_PARAMS_EVT,/* ... */ #endif // #if (BLE_FEAT_PERIODIC_ADV_SYNC_TRANSFER == TRUE) #if BLE_INCLUDED == TRUE BTA_DM_API_DTM_TX_START_EVT, BTA_DM_API_DTM_RX_START_EVT, BTA_DM_API_DTM_STOP_EVT, BTA_DM_API_BLE_CLEAR_ADV_EVT, BTA_DM_API_SET_RPA_TIMEOUT_EVT, BTA_DM_API_ADD_DEV_TO_RESOLVING_LIST_EVT, BTA_DM_API_SET_PRIVACY_MODE_EVT, BTA_DM_API_BLE_SET_CSA_SUPPORT_EVT,/* ... */ #endif BTA_DM_MAX_EVT }{ ... }; /* DM search events */ enum { /* DM search API events */ BTA_DM_API_SEARCH_EVT = BTA_SYS_EVT_START(BTA_ID_DM_SEARCH), BTA_DM_API_SEARCH_CANCEL_EVT, BTA_DM_API_DISCOVER_EVT, BTA_DM_INQUIRY_CMPL_EVT, BTA_DM_REMT_NAME_EVT, BTA_DM_SDP_RESULT_EVT, BTA_DM_SEARCH_CMPL_EVT, BTA_DM_DISCOVERY_RESULT_EVT, BTA_DM_API_DI_DISCOVER_EVT, BTA_DM_DISC_CLOSE_TOUT_EVT, }{ ... }; /* data type for BTA_DM_API_ENABLE_EVT */ typedef struct { BT_HDR hdr; tBTA_DM_SEC_CBACK *p_sec_cback; }{ ... } tBTA_DM_API_ENABLE; /* data type for BTA_DM_API_SET_NAME_EVT */ typedef struct { BT_HDR hdr; BD_NAME name; /* max 248 bytes name, plus must be Null terminated */ tBT_DEVICE_TYPE name_type; /* name for BLE, name for BT or name for BTDM */ }{ ... } tBTA_DM_API_SET_NAME; typedef struct { BT_HDR hdr; tBTA_GET_DEV_NAME_CBACK *p_cback; tBT_DEVICE_TYPE name_type; }{ ... } tBTA_DM_API_GET_NAME; #if (ESP_COEX_VSC_INCLUDED == TRUE) typedef struct { BT_HDR hdr; UINT8 op; UINT8 type; UINT8 status; }{ ... } tBTA_DM_API_CFG_COEX_STATUS;/* ... */ #endif typedef struct { BT_HDR hdr; UINT16 opcode; UINT8 param_len; UINT8 *p_param_buf; tBTA_SEND_VENDOR_HCI_CMPL_CBACK *vendor_hci_cb; }{ ... }tBTA_DM_API_SEND_VENDOR_HCI_CMD; /* data type for BTA_DM_API_CONFIG_EIR_EVT */ typedef struct { BT_HDR hdr; BOOLEAN eir_fec_required; BOOLEAN eir_included_name; BOOLEAN eir_included_tx_power; BOOLEAN eir_included_uuid; UINT8 eir_flags; UINT8 eir_manufac_spec_len; UINT8 *eir_manufac_spec; UINT8 eir_url_len; UINT8 *eir_url; UINT8 data[]; }{ ... }tBTA_DM_API_CONFIG_EIR; /* data type for BTA_DM_API_SET_AFH_CHANNELS_EVT */ typedef struct { BT_HDR hdr; AFH_CHANNELS channels; tBTA_CMPL_CB *set_afh_cb; }{ ... }tBTA_DM_API_SET_AFH_CHANNELS; /* data type for BTA_DM_API_PAGE_TO_SET_EVT */ typedef struct { BT_HDR hdr; UINT16 page_to; tBTM_CMPL_CB *set_page_to_cb; }{ ... } tBTA_DM_API_PAGE_TO_SET; /* data type for BTA_DM_API_PAGE_TO_GET_EVT */ typedef struct { BT_HDR hdr; tBTM_CMPL_CB *get_page_to_cb; }{ ... } tBTA_DM_API_PAGE_TO_GET; /* data type for BTA_DM_API_SET_ACL_PKT_TYPES_EVT */ typedef struct { BT_HDR hdr; BD_ADDR rmt_addr; UINT16 pkt_types; tBTM_CMPL_CB *set_acl_pkt_types_cb; }{ ... } tBTA_DM_API_SET_ACL_PKT_TYPES; #if (ENC_KEY_SIZE_CTRL_MODE != ENC_KEY_SIZE_CTRL_MODE_NONE) /* data type for BTA_DM_API_SET_MIN_ENC_KEY_SIZE_EVT */ typedef struct { BT_HDR hdr; UINT8 key_size; tBTM_CMPL_CB *set_min_enc_key_size_cb; }{...} tBTA_DM_API_SET_MIN_ENC_KEY_SIZE;/* ... */ #endif /* data type for BTA_DM_API_GET_REMOTE_NAME_EVT */ typedef struct { BT_HDR hdr; BD_ADDR rmt_addr; BD_NAME rmt_name; tBTA_TRANSPORT transport; tBTA_CMPL_CB *rmt_name_cb; }{ ... } tBTA_DM_API_GET_REMOTE_NAME; #if (BLE_INCLUDED == TRUE) /* data type for BTA_DM_API_BLE_SET_CHANNELS_EVT */ typedef struct { BT_HDR hdr; AFH_CHANNELS channels; tBTA_CMPL_CB *set_channels_cb; }{ ... }tBTA_DM_API_BLE_SET_CHANNELS; typedef struct { BT_HDR hdr; BOOLEAN add_remove; BD_ADDR remote_addr; tBLE_ADDR_TYPE addr_type; tBTA_UPDATE_WHITELIST_CBACK *update_wl_cb; }{ ... }tBTA_DM_API_UPDATE_WHITE_LIST; typedef struct { BT_HDR hdr; UINT8 subcode; UINT32 type; BD_ADDR device_info; tBTA_UPDATE_DUPLICATE_EXCEPTIONAL_LIST_CMPL_CBACK *exceptional_list_cb; }{ ... }tBTA_DM_API_UPDATE_DUPLICATE_EXCEPTIONAL_LIST; typedef struct { BT_HDR hdr; tBTA_CMPL_CB *read_tx_power_cb; }{ ... }tBTA_DM_API_READ_ADV_TX_POWER;/* ... */ #endif ///BLE_INCLUDED == TRUE typedef struct { BT_HDR hdr; BD_ADDR remote_addr; tBTA_TRANSPORT transport; tBTA_CMPL_CB *read_rssi_cb; }{ ... }tBTA_DM_API_READ_RSSI; /* data type for BTA_DM_API_SET_VISIBILITY_EVT */ typedef struct { BT_HDR hdr; tBTA_DM_DISC disc_mode; tBTA_DM_CONN conn_mode; UINT8 pair_mode; UINT8 conn_paired_only; }{ ... } tBTA_DM_API_SET_VISIBILITY; enum { BTA_DM_RS_NONE, /* straight API call */ BTA_DM_RS_OK, /* the role switch result - successful */ BTA_DM_RS_FAIL /* the role switch result - failed */ }{ ... }; typedef UINT8 tBTA_DM_RS_RES; /* data type for BTA_DM_API_SEARCH_EVT */ typedef struct { BT_HDR hdr; tBTA_DM_INQ inq_params; tBTA_SERVICE_MASK services; tBTA_DM_SEARCH_CBACK *p_cback; tBTA_DM_RS_RES rs_res; #if BLE_INCLUDED == TRUE && BTA_GATT_INCLUDED == TRUE UINT8 num_uuid; tBT_UUID *p_uuid;/* ... */ #endif }{ ... } tBTA_DM_API_SEARCH; #if (SDP_INCLUDED == TRUE) /* data type for BTA_DM_API_DISCOVER_EVT */ typedef struct { BT_HDR hdr; BD_ADDR bd_addr; tBTA_SERVICE_MASK services; tBTA_DM_SEARCH_CBACK *p_cback; BOOLEAN sdp_search; tBTA_TRANSPORT transport; #if BLE_INCLUDED == TRUE && BTA_GATT_INCLUDED == TRUE UINT8 num_uuid; tBT_UUID *p_uuid;/* ... */ #endif tSDP_UUID uuid; }{...} tBTA_DM_API_DISCOVER;/* ... */ #endif ///SDP_INCLUDED == TRUE /* data type for BTA_DM_API_DI_DISC_EVT */ typedef struct { BT_HDR hdr; BD_ADDR bd_addr; #if (SDP_INCLUDED == TRUE) tBTA_DISCOVERY_DB *p_sdp_db; #endif ///SDP_INCLUDED == TRUE UINT32 len; tBTA_DM_SEARCH_CBACK *p_cback; }{ ... } tBTA_DM_API_DI_DISC; /* data type for BTA_DM_API_BOND_EVT */ typedef struct { BT_HDR hdr; BD_ADDR bd_addr; tBTA_TRANSPORT transport; }{ ... } tBTA_DM_API_BOND; /* data type for BTA_DM_API_BOND_CANCEL_EVT */ typedef struct { BT_HDR hdr; BD_ADDR bd_addr; tBTA_TRANSPORT transport; }{ ... } tBTA_DM_API_BOND_CANCEL; /* data type for BTA_DM_API_SET_PIN_TYPE_EVT */ typedef struct { BT_HDR hdr; UINT8 pin_type; UINT8 pin_len; UINT8 p_pin[PIN_CODE_LEN]; }{ ... } tBTA_DM_API_SET_PIN_TYPE; /* data type for BTA_DM_API_PIN_REPLY_EVT */ typedef struct { BT_HDR hdr; BD_ADDR bd_addr; BOOLEAN accept; UINT8 pin_len; UINT8 p_pin[PIN_CODE_LEN]; }{ ... } tBTA_DM_API_PIN_REPLY; /* data type for BTA_DM_API_LOC_OOB_EVT */ typedef struct { BT_HDR hdr; }{ ... } tBTA_DM_API_LOC_OOB; /* data type for BTA_DM_API_OOB_REPLY_EVT */ typedef struct { BT_HDR hdr; BD_ADDR bd_addr; UINT8 len; UINT8 value[BT_OCTET16_LEN]; UINT8 c[BT_OCTET16_LEN]; UINT8 r[BT_OCTET16_LEN]; }{ ... } tBTA_DM_API_OOB_REPLY; /* data type for BTA_DM_API_SC_OOB_REPLY_EVT */ typedef struct { BT_HDR hdr; BD_ADDR bd_addr; UINT8 c[BT_OCTET16_LEN]; UINT8 r[BT_OCTET16_LEN]; }{ ... } tBTA_DM_API_SC_OOB_REPLY; /* data type for BTA_DM_API_SC_CR_OOB_DATA_EVT */ typedef struct { BT_HDR hdr; }{ ... } tBTA_DM_API_SC_CR_OOB_DATA; /* data type for BTA_DM_API_CONFIRM_EVT */ typedef struct { BT_HDR hdr; BD_ADDR bd_addr; BOOLEAN accept; }{ ... } tBTA_DM_API_CONFIRM; /* data type for BTA_DM_API_KEY_REQ_EVT */ typedef struct { BT_HDR hdr; BD_ADDR bd_addr; BOOLEAN accept; UINT32 passkey; }{ ... } tBTA_DM_API_KEY_REQ; /* data type for BTA_DM_CI_IO_REQ_EVT */ typedef struct { BT_HDR hdr; BD_ADDR bd_addr; tBTA_IO_CAP io_cap; tBTA_OOB_DATA oob_data; tBTA_AUTH_REQ auth_req; }{ ... } tBTA_DM_CI_IO_REQ; /* data type for BTA_DM_CI_RMT_OOB_EVT */ typedef struct { BT_HDR hdr; BD_ADDR bd_addr; BT_OCTET16 c; BT_OCTET16 r; BOOLEAN accept; }{ ... } tBTA_DM_CI_RMT_OOB; /* data type for BTA_DM_REMT_NAME_EVT */ typedef struct { BT_HDR hdr; tBTA_DM_SEARCH result; }{ ... } tBTA_DM_REM_NAME; /* data type for tBTA_DM_DISC_RESULT */ typedef struct { BT_HDR hdr; tBTA_DM_SEARCH result; }{ ... } tBTA_DM_DISC_RESULT; /* data type for BTA_DM_INQUIRY_CMPL_EVT */ typedef struct { BT_HDR hdr; UINT8 num; }{ ... } tBTA_DM_INQUIRY_CMPL; /* data type for BTA_DM_SDP_RESULT_EVT */ typedef struct { BT_HDR hdr; UINT16 sdp_result; }{ ... } tBTA_DM_SDP_RESULT; /* data type for BTA_DM_ACL_CHANGE_EVT */ typedef struct { BT_HDR hdr; tBTM_BL_EVENT event; UINT8 busy_level; UINT8 busy_level_flags; BOOLEAN is_new; UINT8 new_role; BD_ADDR bd_addr; UINT8 hci_status; BOOLEAN sc_downgrade; #if BLE_INCLUDED == TRUE UINT16 handle; #endif tBT_TRANSPORT transport; }{ ... } tBTA_DM_ACL_CHANGE; #if (BTA_DM_PM_INCLUDED == TRUE) /* data type for BTA_DM_PM_BTM_STATUS_EVT */ typedef struct { BT_HDR hdr; BD_ADDR bd_addr; tBTM_PM_STATUS status; UINT16 value; UINT8 hci_status; }{...} tBTA_DM_PM_BTM_STATUS; /* data type for BTA_DM_PM_TIMER_EVT */ typedef struct { BT_HDR hdr; BD_ADDR bd_addr; tBTA_DM_PM_ACTION pm_request; }{...} tBTA_DM_PM_TIMER;/* ... */ #endif /* #if (BTA_DM_PM_INCLUDED == TRUE) */ #if (BTA_DM_QOS_INCLUDED == TRUE) /* data type for BTA_DM_API_QOS_SET_EVT */ typedef struct { BT_HDR hdr; BD_ADDR bd_addr; UINT32 t_poll; tBTM_CMPL_CB *p_cb; }{...} tBTA_DM_API_QOS_SET;/* ... */ #endif /* #if (BTA_DM_QOS_INCLUDED == TRUE) */ /* data type for BTA_DM_API_ADD_DEVICE_EVT */ typedef struct { BT_HDR hdr; BD_ADDR bd_addr; DEV_CLASS dc; LINK_KEY link_key; tBTA_SERVICE_MASK tm; BOOLEAN is_trusted; UINT8 key_type; tBTA_IO_CAP io_cap; BOOLEAN link_key_known; BOOLEAN dc_known; BD_NAME bd_name; UINT8 features[BTA_FEATURE_BYTES_PER_PAGE * (BTA_EXT_FEATURES_PAGE_MAX + 1)]; UINT8 pin_length; UINT8 sc_support; }{ ... } tBTA_DM_API_ADD_DEVICE; /* data type for BTA_DM_API_REMOVE_ACL_EVT */ typedef struct { BT_HDR hdr; BD_ADDR bd_addr; UINT8 transport; }{ ... } tBTA_DM_API_REMOVE_DEVICE; /* data type for BTA_DM_API_EXECUTE_CBACK_EVT */ typedef struct { BT_HDR hdr; void *p_param; tBTA_DM_EXEC_CBACK *p_exec_cback; }{ ... } tBTA_DM_API_EXECUTE_CBACK; /* data type for tBTA_DM_API_SET_ENCRYPTION */ typedef struct { BT_HDR hdr; tBTA_TRANSPORT transport; tBTA_DM_ENCRYPT_CBACK *p_callback; tBTA_DM_BLE_SEC_ACT sec_act; BD_ADDR bd_addr; }{ ... } tBTA_DM_API_SET_ENCRYPTION; #if BLE_INCLUDED == TRUE typedef struct { BT_HDR hdr; BD_ADDR bd_addr; tBTA_LE_KEY_VALUE blekey; tBTA_LE_KEY_TYPE key_type; }{ ... } tBTA_DM_API_ADD_BLEKEY; typedef struct { BT_HDR hdr; BD_ADDR bd_addr; tBT_DEVICE_TYPE dev_type ; UINT32 auth_mode; tBLE_ADDR_TYPE addr_type; }{ ... } tBTA_DM_API_ADD_BLE_DEVICE; typedef struct { BT_HDR hdr; BD_ADDR bd_addr; BOOLEAN accept; UINT32 passkey; }{ ... } tBTA_DM_API_PASSKEY_REPLY; typedef struct { BT_HDR hdr; BOOLEAN add; UINT32 static_passkey; }{ ... } tBTA_DM_API_SET_DEFAULT_PASSKEY; typedef struct { BT_HDR hdr; BD_ADDR bd_addr; tBTA_DM_BLE_SEC_GRANT res; }{ ... } tBTA_DM_API_BLE_SEC_GRANT; typedef struct { BT_HDR hdr; tBTA_DM_BLE_CONN_TYPE bg_conn_type; tBTA_DM_BLE_SEL_CBACK *p_select_cback; }{ ... } tBTA_DM_API_BLE_SET_BG_CONN_TYPE; /* set preferred BLE connection parameters for a device */ typedef struct { BT_HDR hdr; BD_ADDR peer_bda; UINT16 conn_int_min; UINT16 conn_int_max; UINT16 supervision_tout; UINT16 slave_latency; }{ ... } tBTA_DM_API_BLE_CONN_PARAMS; typedef struct { BT_HDR hdr; BD_ADDR peer_bda; BOOLEAN privacy_enable; }{ ... } tBTA_DM_API_ENABLE_PRIVACY; typedef struct { BT_HDR hdr; BOOLEAN privacy_enable; tBTA_SET_LOCAL_PRIVACY_CBACK *set_local_privacy_cback; }{ ... } tBTA_DM_API_LOCAL_PRIVACY; typedef struct { BT_HDR hdr; uint16_t icon; }{ ... } tBTA_DM_API_LOCAL_ICON; /* set scan parameter for BLE connections */ typedef struct { BT_HDR hdr; tBTA_GATTC_IF client_if; UINT32 scan_int; UINT32 scan_window; tBLE_SCAN_MODE scan_mode; tBLE_SCAN_PARAM_SETUP_CBACK scan_param_setup_cback; }{ ... } tBTA_DM_API_BLE_SCAN_PARAMS; typedef struct { BT_HDR hdr; tBTA_GATTC_IF client_if; UINT32 scan_int; UINT32 scan_window; tBLE_SCAN_MODE scan_mode; UINT8 addr_type_own; UINT8 scan_duplicate_filter; UINT8 scan_filter_policy; tBLE_SCAN_PARAM_SETUP_CBACK scan_param_setup_cback; }{ ... } tBTA_DM_API_BLE_SCAN_FILTER_PARAMS; /* set scan parameter for BLE connections */ typedef struct { BT_HDR hdr; UINT16 scan_int; UINT16 scan_window; }{ ... } tBTA_DM_API_BLE_CONN_SCAN_PARAMS; /* Data type for start/stop observe */ typedef struct { BT_HDR hdr; BOOLEAN start; UINT32 duration; tBTA_DM_SEARCH_CBACK *p_cback; tBTA_START_STOP_SCAN_CMPL_CBACK *p_start_scan_cback; tBTA_START_STOP_SCAN_CMPL_CBACK *p_stop_scan_cback; tBTA_START_STOP_ADV_CMPL_CBACK *p_stop_adv_cback; }{ ... } tBTA_DM_API_BLE_OBSERVE; /* Data type for start/stop scan */ typedef struct { BT_HDR hdr; BOOLEAN start; UINT32 duration; tBTA_DM_SEARCH_CBACK *p_cback; tBTA_START_STOP_SCAN_CMPL_CBACK *p_start_scan_cback; tBTA_START_STOP_SCAN_CMPL_CBACK *p_stop_scan_cback; tBTA_START_STOP_ADV_CMPL_CBACK *p_stop_adv_cback; }{ ... } tBTA_DM_API_BLE_SCAN; typedef struct { BT_HDR hdr; BD_ADDR remote_bda; UINT16 tx_data_length; tBTA_SET_PKT_DATA_LENGTH_CBACK *p_set_pkt_data_cback; }{ ... } tBTA_DM_API_BLE_SET_DATA_LENGTH; /* set the address for BLE device this type added by Yulong at 2016/9/9*//* ... */ typedef struct { BT_HDR hdr; tBLE_ADDR_TYPE addr_type; BD_ADDR address; tBTA_SET_RAND_ADDR_CBACK *p_set_rand_addr_cback; }{ ... } tBTA_DM_APT_SET_DEV_ADDR; typedef struct { BT_HDR hdr; }{ ... } tBTA_DM_APT_CLEAR_ADDR; typedef struct { BT_HDR hdr; UINT16 rpa_timeout; tBTA_SET_RPA_TIMEOUT_CMPL_CBACK *p_set_rpa_timeout_cback; }{ ... } tBTA_DM_API_SET_RPA_TIMEOUT; typedef struct { BT_HDR hdr; // Event header esp_bd_addr_t addr; // Bluetooth device address UINT8 addr_type; // Type of the address UINT8 irk[PEER_IRK_LEN]; // Identity Resolving Key (IRK) tBTA_ADD_DEV_TO_RESOLVING_LIST_CMPL_CBACK *p_add_dev_to_resolving_list_callback; // Callback function pointer }{ ... } tBTA_DM_API_ADD_DEV_TO_RESOLVING_LIST; /* set adv parameter for BLE advertising */ typedef struct { BT_HDR hdr; UINT16 adv_int_min; UINT16 adv_int_max; tBLE_BD_ADDR *p_dir_bda; }{ ... } tBTA_DM_API_BLE_ADV_PARAMS; /* set adv parameter for BLE advertising */ typedef struct { BT_HDR hdr; UINT16 adv_int_min; UINT16 adv_int_max; UINT8 adv_type; tBLE_ADDR_TYPE addr_type_own; tBTM_BLE_ADV_CHNL_MAP channel_map; tBTM_BLE_AFP adv_filter_policy; tBLE_BD_ADDR *p_dir_bda; tBTA_START_ADV_CMPL_CBACK *p_start_adv_cback; }{ ... } tBTA_DM_API_BLE_ADV_PARAMS_ALL; typedef struct { BT_HDR hdr; BOOLEAN enable; }{ ... } tBTA_DM_API_BLE_FEATURE; /* multi adv data structure */ typedef struct { BT_HDR hdr; tBTA_BLE_MULTI_ADV_CBACK *p_cback; void *p_ref; tBTA_BLE_ADV_PARAMS *p_params; }{ ... } tBTA_DM_API_BLE_MULTI_ADV_ENB; typedef struct { BT_HDR hdr; UINT8 inst_id; tBTA_BLE_ADV_PARAMS *p_params; }{ ... } tBTA_DM_API_BLE_MULTI_ADV_PARAM; typedef struct { BT_HDR hdr; UINT8 inst_id; BOOLEAN is_scan_rsp; tBTA_BLE_AD_MASK data_mask; tBTA_BLE_ADV_DATA *p_data; }{ ... } tBTA_DM_API_BLE_MULTI_ADV_DATA; typedef struct { BT_HDR hdr; UINT8 inst_id; }{ ... } tBTA_DM_API_BLE_MULTI_ADV_DISABLE; typedef struct { BT_HDR hdr; UINT32 data_mask; tBTA_BLE_ADV_DATA *p_adv_cfg; tBTA_SET_ADV_DATA_CMPL_CBACK *p_adv_data_cback; }{ ... } tBTA_DM_API_SET_ADV_CONFIG; /* raw scan response and raw advertising data use the same structure *//* ... */ typedef struct { BT_HDR hdr; UINT8 *p_raw_adv; UINT32 raw_adv_len; tBTA_SET_ADV_DATA_CMPL_CBACK *p_adv_data_cback; }{ ... } tBTA_DM_API_SET_ADV_CONFIG_RAW; typedef struct { BT_HDR hdr; UINT8 *adv_data; UINT8 adv_data_len; tBTA_SET_ADV_DATA_CMPL_CBACK *p_adv_data_cback; }{ ... } tBTA_DM_API_SET_LONG_ADV; typedef struct { BT_HDR hdr; UINT8 batch_scan_full_max; UINT8 batch_scan_trunc_max; UINT8 batch_scan_notify_threshold; tBTA_BLE_SCAN_SETUP_CBACK *p_setup_cback; tBTA_BLE_SCAN_THRESHOLD_CBACK *p_thres_cback; tBTA_BLE_SCAN_REP_CBACK *p_read_rep_cback; tBTA_DM_BLE_REF_VALUE ref_value; }{ ... } tBTA_DM_API_SET_STORAGE_CONFIG; typedef struct { BT_HDR hdr; tBTA_BLE_BATCH_SCAN_MODE scan_mode; UINT32 scan_int; UINT32 scan_window; tBTA_BLE_DISCARD_RULE discard_rule; tBLE_ADDR_TYPE addr_type; tBTA_DM_BLE_REF_VALUE ref_value; }{ ... } tBTA_DM_API_ENABLE_SCAN; typedef struct { BT_HDR hdr; tBTA_DM_BLE_REF_VALUE ref_value; }{ ... } tBTA_DM_API_DISABLE_SCAN; typedef struct { BT_HDR hdr; tBTA_BLE_BATCH_SCAN_MODE scan_type; tBTA_DM_BLE_REF_VALUE ref_value; }{ ... } tBTA_DM_API_READ_SCAN_REPORTS; typedef struct { BT_HDR hdr; tBTA_DM_BLE_REF_VALUE ref_value; tBTA_BLE_TRACK_ADV_CBACK *p_track_adv_cback; }{ ... } tBTA_DM_API_TRACK_ADVERTISER; typedef struct { BT_HDR hdr; tBTA_BLE_ENERGY_INFO_CBACK *p_energy_info_cback; }{ ... } tBTA_DM_API_ENERGY_INFO; typedef struct { BT_HDR hdr; BD_ADDR remote_bda; }{ ... } tBTA_DM_API_BLE_DISCONNECT; typedef struct { BT_HDR hdr; UINT8 tx_channel; UINT8 len_of_data; UINT8 pkt_payload; tBTA_DTM_CMD_CMPL_CBACK *p_dtm_cmpl_cback; }{ ... } tBTA_DM_API_BLE_DTM_TX_START; typedef struct { BT_HDR hdr; UINT8 rx_channel; tBTA_DTM_CMD_CMPL_CBACK *p_dtm_cmpl_cback; }{ ... } tBTA_DM_API_BLE_DTM_RX_START; typedef struct { BT_HDR hdr; tBTA_DTM_CMD_CMPL_CBACK *p_dtm_cmpl_cback; }{ ... } tBTA_DM_API_BLE_DTM_STOP; typedef struct { BT_HDR hdr; tBTA_CLEAR_ADV_CMPL_CBACK *p_clear_adv_cback; }{ ... } tBTA_DM_API_CLEAR_ADV; typedef struct { BT_HDR hdr; tBLE_ADDR_TYPE addr_type; BD_ADDR addr; UINT8 privacy_mode; tBTA_SET_PRIVACY_MODE_CMPL_CBACK *p_cback; }{ ... } tBTA_DM_API_SET_PRIVACY_MODE; typedef struct { BT_HDR hdr; UINT8 csa_select; tBTA_SET_CSA_SUPPORT_CMPL_CBACK *p_cback; }{ ... } tBTA_DM_API_BLE_SET_CSA_SUPPORT; /* ... */ #endif /* BLE_INCLUDED */ /* data type for BTA_DM_API_REMOVE_ACL_EVT */ typedef struct { BT_HDR hdr; BD_ADDR bd_addr; BOOLEAN remove_dev; tBTA_TRANSPORT transport; }{ ... } tBTA_DM_API_REMOVE_ACL; /* data type for BTA_DM_API_REMOVE_ALL_ACL_EVT */ typedef struct { BT_HDR hdr; tBTA_DM_LINK_TYPE link_type; }{ ... } tBTA_DM_API_REMOVE_ALL_ACL; typedef struct { BT_HDR hdr; BD_ADDR bd_addr; UINT16 min_int; UINT16 max_int; UINT16 latency; UINT16 timeout; }{ ... } tBTA_DM_API_UPDATE_CONN_PARAM; #if BLE_ANDROID_CONTROLLER_SCAN_FILTER == TRUE typedef struct { BT_HDR hdr; tBTA_DM_BLE_SCAN_COND_OP action; tBTA_DM_BLE_PF_COND_TYPE cond_type; tBTA_DM_BLE_PF_FILT_INDEX filt_index; tBTA_DM_BLE_PF_COND_PARAM *p_cond_param; tBTA_DM_BLE_PF_CFG_CBACK *p_filt_cfg_cback; tBTA_DM_BLE_REF_VALUE ref_value; }{ ... } tBTA_DM_API_CFG_FILTER_COND; typedef struct { BT_HDR hdr; UINT8 action; tBTA_DM_BLE_PF_STATUS_CBACK *p_filt_status_cback; tBTA_DM_BLE_REF_VALUE ref_value; }{ ... } tBTA_DM_API_ENABLE_SCAN_FILTER; typedef struct { BT_HDR hdr; UINT8 action; tBTA_DM_BLE_PF_FILT_INDEX filt_index; tBTA_DM_BLE_PF_FILT_PARAMS filt_params; tBLE_BD_ADDR *p_target; tBTA_DM_BLE_PF_PARAM_CBACK *p_filt_param_cback; tBTA_DM_BLE_REF_VALUE ref_value; }{ ... } tBTA_DM_API_SCAN_FILTER_PARAM_SETUP;/* ... */ #endif #if (BLE_50_FEATURE_SUPPORT == TRUE) typedef struct { BT_HDR hdr; UINT8 tx_channel; UINT8 len_of_data; UINT8 pkt_payload; UINT8 phy; tBTA_DTM_CMD_CMPL_CBACK *p_dtm_cmpl_cback; }{...} tBTA_DM_API_BLE_DTM_ENH_TX_START; typedef struct { BT_HDR hdr; UINT8 rx_channel; UINT8 phy; UINT8 modulation_index; tBTA_DTM_CMD_CMPL_CBACK *p_dtm_cmpl_cback; }{...} tBTA_DM_API_BLE_DTM_ENH_RX_START; #define BTA_PHY_1M_MASK (1 << 0) #define BTA_PHY_2M_MASK (1 << 1) #define BTA_PHY_CODED_MASK (1 << 2) typedef struct { BT_HDR hdr; BD_ADDR bd_addr; }{...} tBTA_DM_API_READ_PHY; typedef struct { BT_HDR hdr; tBTA_DM_BLE_GAP_PHY_MASK tx_phy_mask; tBTA_DM_BLE_GAP_PHY_MASK rx_phy_mask; }{...} tBTA_DM_API_SET_PER_DEF_PHY; typedef struct { BT_HDR hdr; BD_ADDR bd_addr; UINT8 all_phys; tBTA_DM_BLE_GAP_PHY_MASK tx_phy_mask; tBTA_DM_BLE_GAP_PHY_MASK rx_phy_mask; UINT16 phy_options; }{...} tBTA_DM_API_SET_PER_PHY; typedef struct { BT_HDR hdr; UINT16 instance; BD_ADDR rand_addr; }{...} tBTA_DM_API_EXT_ADV_SET_RAND_ADDR; typedef struct { BT_HDR hdr; UINT16 instance; tBTA_DM_BLE_GAP_EXT_ADV_PARAMS params; }{...} tBTA_DM_API_EXT_ADV_SET_PARAMS; typedef struct { BT_HDR hdr; BOOLEAN is_scan_rsp; UINT8 instance; UINT16 length; UINT8 *data; }{...} tBTA_DM_API_CFG_EXT_ADV_DATA; typedef struct { BT_HDR hdr; BOOLEAN enable; UINT8 num; tBTA_DM_BLE_EXT_ADV *ext_adv; }{...} tBTA_DM_API_BLE_EXT_ADV; typedef struct { BT_HDR hdr; UINT16 instance; }{...} tBTA_DM_API_BLE_EXT_ADV_SET_REMOVE; typedef struct { BT_HDR hdr; }{...} tBTA_DM_API_BLE_EXT_ADV_SET_CLEAR; typedef struct { BT_HDR hdr; UINT8 instance; tBTA_DM_BLE_Periodic_Adv_Params params; }{...} tBTA_DM_API_BLE_PERIODIC_ADV_SET_PARAMS; typedef struct { BT_HDR hdr; UINT8 instance; UINT16 length; UINT8 *data; BOOLEAN only_update_did; }{...} tBTA_DM_API_CFG_PERIODIC_ADV_DATA; typedef struct { BT_HDR hdr; UINT8 instance; UINT8 enable; }{...} tBTA_DM_API_ENABLE_PERIODIC_ADV; typedef struct { BT_HDR hdr; tBTA_DM_BLE_Periodic_Sync_Params params; }{...} tBTA_DM_API_PERIODIC_ADV_SYNC; typedef struct { BT_HDR hdr; }{...} tBTA_DM_API_PERIODIC_ADV_SYNC_CANCEL; typedef struct { BT_HDR hdr; UINT16 sync_handle; }{...} tBTA_DM_API_PERIODIC_ADV_SYNC_TERM; typedef struct { BT_HDR hdr; tBLE_ADDR_TYPE addr_type; BD_ADDR addr; UINT16 sid; }{...} tBTA_DM_API_PERIODIC_ADV_ADD_DEV_TO_LIST; typedef struct { BT_HDR hdr; tBLE_ADDR_TYPE addr_type; BD_ADDR addr; UINT16 sid; }{...} tBTA_DM_API_PERIODIC_ADV_REMOVE_DEV_FROM_LIST; typedef struct { BT_HDR hdr; }{...} tBTA_DM_API_PERIODIC_ADV_DEV_CLEAR; typedef struct { BT_HDR hdr; tBTA_DM_BLE_EXT_SCAN_PARAMS params; }{...} tBTA_DM_API_SET_EXT_SCAN_PARAMS; typedef struct { BT_HDR hdr; BOOLEAN start; UINT32 duration; UINT16 period; }{...} tBTA_DM_API_EXT_SCAN; typedef struct { BT_HDR hdr; BD_ADDR bd_addr; UINT8 phy_mask; tBTA_DM_BLE_CONN_PARAMS phy_1m_conn_params; tBTA_DM_BLE_CONN_PARAMS phy_2m_conn_params; tBTA_DM_BLE_CONN_PARAMS phy_coded_conn_params; }{...} tBTA_DM_API_SET_PER_EXT_CONN_PARAMS; typedef struct { BT_HDR hdr; tBLE_ADDR_TYPE own_addr_type; BD_ADDR peer_addr; }{...} tBTA_DM_API_EXT_CONN;/* ... */ #endif //#if (BLE_50_FEATURE_SUPPORT == TRUE) #if (BLE_FEAT_PERIODIC_ADV_SYNC_TRANSFER == TRUE) typedef struct { BT_HDR hdr; UINT16 sync_handle; UINT8 enable; }{...} tBTA_DM_API_PERIODIC_ADV_RECV_ENABLE; typedef struct { BT_HDR hdr; BD_ADDR addr; UINT16 service_data; UINT16 sync_handle; }{...} tBTA_DM_API_PERIODIC_ADV_SYNC_TRANS; typedef struct { BT_HDR hdr; BD_ADDR addr; UINT16 service_data; UINT8 adv_hanlde; }{...} tBTA_DM_API_PERIODIC_ADV_SET_INFO_TRANS; typedef struct { BT_HDR hdr; BD_ADDR addr; tBTA_DM_BLE_PAST_PARAMS params; }{...} tBTA_DM_API_SET_PAST_PARAMS;/* ... */ #endif // #if (BLE_FEAT_PERIODIC_ADV_SYNC_TRANSFER == TRUE) /* union of all data types */ typedef union { /* event buffer header */ BT_HDR hdr; tBTA_DM_API_ENABLE enable; tBTA_DM_API_SET_NAME set_name; tBTA_DM_API_GET_NAME get_name; #if (ESP_COEX_VSC_INCLUDED == TRUE) tBTA_DM_API_CFG_COEX_STATUS cfg_coex_status; #endif tBTA_DM_API_SEND_VENDOR_HCI_CMD vendor_hci_cmd; tBTA_DM_API_CONFIG_EIR config_eir; tBTA_DM_API_SET_AFH_CHANNELS set_afh_channels; tBTA_DM_API_PAGE_TO_SET set_page_timeout; tBTA_DM_API_PAGE_TO_GET get_page_timeout; tBTA_DM_API_SET_ACL_PKT_TYPES set_acl_pkt_types; #if (ENC_KEY_SIZE_CTRL_MODE != ENC_KEY_SIZE_CTRL_MODE_NONE) tBTA_DM_API_SET_MIN_ENC_KEY_SIZE set_min_enc_key_size; #endif #if (SDP_INCLUDED == TRUE) tBTA_DM_API_GET_REMOTE_NAME get_rmt_name; #endif #if (BLE_INCLUDED == TRUE) tBTA_DM_API_BLE_SET_CHANNELS ble_set_channels; tBTA_DM_API_UPDATE_WHITE_LIST white_list; tBTA_DM_API_READ_ADV_TX_POWER read_tx_power;/* ... */ #endif ///BLE_INCLUDED == TRUE tBTA_DM_API_READ_RSSI rssi; tBTA_DM_API_SET_VISIBILITY set_visibility; tBTA_DM_API_ADD_DEVICE add_dev; tBTA_DM_API_REMOVE_DEVICE remove_dev; tBTA_DM_API_SEARCH search; #if (SDP_INCLUDED == TRUE) tBTA_DM_API_DISCOVER discover; #endif ///SDP_INCLUDED == TRUE tBTA_DM_API_BOND bond; tBTA_DM_API_BOND_CANCEL bond_cancel; tBTA_DM_API_SET_PIN_TYPE set_pin_type; tBTA_DM_API_PIN_REPLY pin_reply; tBTA_DM_API_LOC_OOB loc_oob; tBTA_DM_API_OOB_REPLY oob_reply; tBTA_DM_API_SC_OOB_REPLY sc_oob_reply; tBTA_DM_API_CONFIRM confirm; tBTA_DM_API_KEY_REQ key_req; tBTA_DM_CI_IO_REQ ci_io_req; tBTA_DM_CI_RMT_OOB ci_rmt_oob; tBTA_DM_REM_NAME rem_name; tBTA_DM_DISC_RESULT disc_result; tBTA_DM_INQUIRY_CMPL inq_cmpl; tBTA_DM_SDP_RESULT sdp_event; tBTA_DM_ACL_CHANGE acl_change; #if (BTA_DM_PM_INCLUDED == TRUE) tBTA_DM_PM_BTM_STATUS pm_status; tBTA_DM_PM_TIMER pm_timer;/* ... */ #endif /* #if (BTA_DM_PM_INCLUDED == TRUE) */ #if (BTA_DM_QOS_INCLUDED == TRUE) /* Quality of Service set events */ tBTA_DM_API_QOS_SET qos_set;/* ... */ #endif /* #if (BTA_DM_QOS_INCLUDED == TRUE) */ tBTA_DM_API_DI_DISC di_disc; tBTA_DM_API_EXECUTE_CBACK exec_cback; tBTA_DM_API_SET_ENCRYPTION set_encryption; #if BLE_INCLUDED == TRUE tBTA_DM_API_ADD_BLEKEY add_ble_key; tBTA_DM_API_ADD_BLE_DEVICE add_ble_device; tBTA_DM_API_PASSKEY_REPLY ble_passkey_reply; tBTA_DM_API_SET_DEFAULT_PASSKEY ble_set_static_passkey; tBTA_DM_API_BLE_SEC_GRANT ble_sec_grant; tBTA_DM_API_BLE_SET_BG_CONN_TYPE ble_set_bd_conn_type; tBTA_DM_API_BLE_CONN_PARAMS ble_set_conn_params; tBTA_DM_API_BLE_CONN_SCAN_PARAMS ble_set_conn_scan_params; tBTA_DM_API_BLE_SCAN_PARAMS ble_set_scan_params; tBTA_DM_API_BLE_SCAN_FILTER_PARAMS ble_set_scan_fil_params; tBTA_DM_API_BLE_OBSERVE ble_observe; tBTA_DM_API_BLE_SCAN ble_scan; tBTA_DM_API_ENABLE_PRIVACY ble_remote_privacy; tBTA_DM_API_LOCAL_PRIVACY ble_local_privacy; tBTA_DM_API_LOCAL_ICON ble_local_icon; tBTA_DM_API_BLE_ADV_PARAMS ble_set_adv_params; tBTA_DM_API_BLE_ADV_PARAMS_ALL ble_set_adv_params_all; tBTA_DM_API_SET_ADV_CONFIG ble_set_adv_data; tBTA_DM_API_SET_ADV_CONFIG_RAW ble_set_adv_data_raw; tBTA_DM_API_SET_LONG_ADV ble_set_long_adv_data; #if BLE_ANDROID_CONTROLLER_SCAN_FILTER == TRUE tBTA_DM_API_SCAN_FILTER_PARAM_SETUP ble_scan_filt_param_setup; tBTA_DM_API_CFG_FILTER_COND ble_cfg_filter_cond; tBTA_DM_API_ENABLE_SCAN_FILTER ble_enable_scan_filt;/* ... */ #endif tBTA_DM_API_UPDATE_CONN_PARAM ble_update_conn_params; tBTA_DM_API_BLE_SET_DATA_LENGTH ble_set_data_length; tBTA_DM_APT_SET_DEV_ADDR set_addr; tBTA_DM_APT_CLEAR_ADDR clear_addr; tBTA_DM_API_SET_RPA_TIMEOUT set_rpa_timeout; tBTA_DM_API_ADD_DEV_TO_RESOLVING_LIST add_dev_to_resolving_list; tBTA_DM_API_BLE_MULTI_ADV_ENB ble_multi_adv_enb; tBTA_DM_API_BLE_MULTI_ADV_PARAM ble_multi_adv_param; tBTA_DM_API_BLE_MULTI_ADV_DATA ble_multi_adv_data; tBTA_DM_API_BLE_MULTI_ADV_DISABLE ble_multi_adv_disable; tBTA_DM_API_SET_STORAGE_CONFIG ble_set_storage; tBTA_DM_API_ENABLE_SCAN ble_enable_scan; tBTA_DM_API_READ_SCAN_REPORTS ble_read_reports; tBTA_DM_API_DISABLE_SCAN ble_disable_scan; tBTA_DM_API_TRACK_ADVERTISER ble_track_advert; tBTA_DM_API_ENERGY_INFO ble_energy_info; tBTA_DM_API_BLE_DISCONNECT ble_disconnect; tBTA_DM_API_UPDATE_DUPLICATE_EXCEPTIONAL_LIST ble_duplicate_exceptional_list; #if (BLE_50_FEATURE_SUPPORT == TRUE) tBTA_DM_API_READ_PHY ble_read_phy; tBTA_DM_API_SET_PER_DEF_PHY ble_set_per_def_phy; tBTA_DM_API_SET_PER_PHY ble_set_per_phy; tBTA_DM_API_EXT_ADV_SET_RAND_ADDR ble_set_ext_adv_rand_addr; tBTA_DM_API_EXT_ADV_SET_PARAMS ble_set_ext_adv_params; tBTA_DM_API_CFG_EXT_ADV_DATA ble_cfg_ext_adv_data; tBTA_DM_API_BLE_EXT_ADV ble_start_ext_adv; tBTA_DM_API_BLE_EXT_ADV_SET_REMOVE ble_ext_adv_set_remove; tBTA_DM_API_BLE_EXT_ADV_SET_CLEAR ble_ext_adv_set_clear; tBTA_DM_API_BLE_PERIODIC_ADV_SET_PARAMS ble_set_periodic_adv_params; tBTA_DM_API_CFG_PERIODIC_ADV_DATA ble_cfg_periodic_adv_data; tBTA_DM_API_ENABLE_PERIODIC_ADV ble_enable_periodic_adv; tBTA_DM_API_PERIODIC_ADV_SYNC ble_periodic_adv_sync; tBTA_DM_API_PERIODIC_ADV_SYNC_CANCEL ble_periodic_adv_sync_cancel; tBTA_DM_API_PERIODIC_ADV_SYNC_TERM ble_periodic_adv_sync_term; tBTA_DM_API_PERIODIC_ADV_ADD_DEV_TO_LIST ble_periodic_adv_add_dev_to_list; tBTA_DM_API_PERIODIC_ADV_REMOVE_DEV_FROM_LIST ble_periodic_adv_remove_dev_from_list; tBTA_DM_API_PERIODIC_ADV_DEV_CLEAR ble_periodic_adv_clear_dev; tBTA_DM_API_SET_EXT_SCAN_PARAMS ble_set_ext_scan_params; tBTA_DM_API_EXT_SCAN ble_ext_scan; tBTA_DM_API_SET_PER_EXT_CONN_PARAMS ble_set_per_ext_conn_params; tBTA_DM_API_BLE_DTM_ENH_TX_START dtm_enh_tx_start; tBTA_DM_API_BLE_DTM_ENH_RX_START dtm_enh_rx_start;/* ... */ #endif // #if (BLE_50_FEATURE_SUPPORT == TRUE) #if (BLE_FEAT_PERIODIC_ADV_SYNC_TRANSFER == TRUE) tBTA_DM_API_PERIODIC_ADV_RECV_ENABLE ble_periodic_adv_recv_enable; tBTA_DM_API_PERIODIC_ADV_SYNC_TRANS ble_periodic_adv_sync_trans; tBTA_DM_API_PERIODIC_ADV_SET_INFO_TRANS ble_periodic_adv_set_info_trans; tBTA_DM_API_SET_PAST_PARAMS ble_set_past_params;/* ... */ #endif // #if (BLE_FEAT_PERIODIC_ADV_SYNC_TRANSFER == TRUE) tBTA_DM_API_BLE_DTM_TX_START dtm_tx_start; tBTA_DM_API_BLE_DTM_RX_START dtm_rx_start; tBTA_DM_API_BLE_DTM_STOP dtm_stop; tBTA_DM_API_CLEAR_ADV ble_clear_adv; tBTA_DM_API_SET_PRIVACY_MODE ble_set_privacy_mode; tBTA_DM_API_BLE_SET_CSA_SUPPORT ble_set_csa_support;/* ... */ #endif tBTA_DM_API_REMOVE_ACL remove_acl; tBTA_DM_API_REMOVE_ALL_ACL remove_all_acl; }{ ... } tBTA_DM_MSG; #define BTA_DM_NUM_PEER_DEVICE MAX_ACL_CONNECTIONS #define BTA_DM_NOT_CONNECTED 0 #define BTA_DM_CONNECTED 1 #define BTA_DM_UNPAIRING 2 typedef UINT8 tBTA_DM_CONN_STATE; #define BTA_DM_DI_NONE 0x00 /* nothing special */ #define BTA_DM_DI_USE_SSR 0x10 /* set this bit if ssr is supported for this link */ #define BTA_DM_DI_AV_ACTIVE 0x20 /* set this bit if AV is active for this link */ #define BTA_DM_DI_SET_SNIFF 0x01 /* set this bit if call BTM_SetPowerMode(sniff) */ #define BTA_DM_DI_INT_SNIFF 0x02 /* set this bit if call BTM_SetPowerMode(sniff) & enter sniff mode */ #define BTA_DM_DI_ACP_SNIFF 0x04 /* set this bit if peer init sniff */6 defines typedef UINT8 tBTA_DM_DEV_INFO; /* set power mode request type */ #define BTA_DM_PM_RESTART 1 #define BTA_DM_PM_NEW_REQ 2 #define BTA_DM_PM_EXECUTE 3 typedef UINT8 tBTA_DM_PM_REQ; typedef struct { BD_ADDR peer_bdaddr; UINT16 link_policy; tBTA_DM_CONN_STATE conn_state; tBTA_PREF_ROLES pref_role; BOOLEAN in_use; tBTA_DM_DEV_INFO info; tBTA_DM_ENCRYPT_CBACK *p_encrypt_cback; #if (BTM_SSR_INCLUDED == TRUE) tBTM_PM_STATUS prev_low; /* previous low power mode used */ #endif tBTA_DM_PM_ACTION pm_mode_attempted; tBTA_DM_PM_ACTION pm_mode_failed; BOOLEAN remove_dev_pending; #if BLE_INCLUDED == TRUE UINT16 conn_handle; #endif tBT_TRANSPORT transport; }{ ... } tBTA_DM_PEER_DEVICE; /* structure to store list of active connections *//* ... */ typedef struct { tBTA_DM_PEER_DEVICE peer_device[BTA_DM_NUM_PEER_DEVICE]; UINT8 count; #if BLE_INCLUDED == TRUE UINT8 le_count; #endif }{ ... } tBTA_DM_ACTIVE_LINK; typedef struct { BD_ADDR peer_bdaddr; tBTA_SYS_ID id; UINT8 app_id; tBTA_SYS_CONN_STATUS state; BOOLEAN new_request; }{ ... } tBTA_DM_SRVCS; #ifndef BTA_DM_NUM_CONN_SRVS #define BTA_DM_NUM_CONN_SRVS 10 #endif typedef struct { UINT8 count; tBTA_DM_SRVCS conn_srvc[BTA_DM_NUM_CONN_SRVS]; }{ ... } tBTA_DM_CONNECTED_SRVCS; #if (BTA_DM_PM_INCLUDED == TRUE) typedef struct { #define BTA_DM_PM_SNIFF_TIMER_IDX 0 #define BTA_DM_PM_PARK_TIMER_IDX 1 #define BTA_DM_PM_SUSPEND_TIMER_IDX 2 #define BTA_DM_PM_MODE_TIMER_MAX 3 /* * Keep three different timers for PARK, SNIFF and SUSPEND if TBFC is * supported. *//* ... */ TIMER_LIST_ENT timer[BTA_DM_PM_MODE_TIMER_MAX]; UINT8 srvc_id[BTA_DM_PM_MODE_TIMER_MAX]; UINT8 pm_action[BTA_DM_PM_MODE_TIMER_MAX]; UINT8 active; /* number of active timer */ BD_ADDR peer_bdaddr; BOOLEAN in_use; }{...} tBTA_PM_TIMER; #define BTA_DM_NUM_PM_TIMER 7/* ... */ #endif /* #if (BTA_DM_PM_INCLUDED == TRUE) */ /* DM control block */ typedef struct { BOOLEAN is_bta_dm_active; tBTA_DM_ACTIVE_LINK device_list; tBTA_DM_SEC_CBACK *p_sec_cback; #if ((defined BLE_INCLUDED) && (BLE_INCLUDED == TRUE)) tBTA_BLE_SCAN_SETUP_CBACK *p_setup_cback; tBTA_DM_BLE_PF_CFG_CBACK *p_scan_filt_cfg_cback; tBTA_DM_BLE_PF_STATUS_CBACK *p_scan_filt_status_cback; tBTA_DM_BLE_PF_PARAM_CBACK *p_scan_filt_param_cback; tBTA_BLE_MULTI_ADV_CBACK *p_multi_adv_cback; tBTA_BLE_ENERGY_INFO_CBACK *p_energy_info_cback;/* ... */ #endif UINT16 state; BOOLEAN disabling; TIMER_LIST_ENT disable_timer; UINT32 wbt_sdp_handle; /* WIDCOMM Extensions SDP record handle */ UINT8 wbt_scn; /* WIDCOMM Extensions SCN */ UINT8 num_master_only; #if (BTA_DM_PM_INCLUDED == TRUE) UINT8 pm_id; tBTA_PM_TIMER pm_timer[BTA_DM_NUM_PM_TIMER];/* ... */ #endif /* #if (BTA_DM_PM_INCLUDED == TRUE) */ UINT32 role_policy_mask; /* the bits set indicates the modules that wants to remove role switch from the default link policy */ UINT16 cur_policy; /* current default link policy */ UINT16 rs_event; /* the event waiting for role switch */ UINT8 cur_av_count; /* current AV connections */ BOOLEAN disable_pair_mode; /* disable pair mode or not */ BOOLEAN conn_paired_only; /* allow connectable to paired device only or not */ tBTA_DM_API_SEARCH search_msg; #if (CLASSIC_BT_INCLUDED == TRUE) UINT16 page_scan_interval; UINT16 page_scan_window; UINT16 inquiry_scan_interval; UINT16 inquiry_scan_window; /* Storage for pin code request parameters */ BD_ADDR pin_bd_addr; DEV_CLASS pin_dev_class; tBTA_DM_SEC_EVT pin_evt; UINT32 num_val; /* the numeric value for comparison. If just_works, do not show this number to UI */ BOOLEAN just_works; /* TRUE, if "Just Works" association model *//* ... */ #endif #if ( BTA_EIR_CANNED_UUID_LIST != TRUE ) /* store UUID list for EIR */ TIMER_LIST_ENT app_ready_timer; UINT32 eir_uuid[BTM_EIR_SERVICE_ARRAY_SIZE]; #if (BTA_EIR_SERVER_NUM_CUSTOM_UUID > 0) tBT_UUID custom_uuid[BTA_EIR_SERVER_NUM_CUSTOM_UUID]; #endif /* ... */ #endif tBTA_DM_ENCRYPT_CBACK *p_encrypt_cback; TIMER_LIST_ENT switch_delay_timer[BTA_DM_NUM_PEER_DEVICE]; }{ ... } tBTA_DM_CB; #ifndef BTA_DM_SDP_DB_SIZE #define BTA_DM_SDP_DB_SIZE 250 #endif /* DM search control block */ typedef struct { tBTA_DM_SEARCH_CBACK *p_search_cback; tBTM_INQ_INFO *p_btm_inq_info; tBTA_SERVICE_MASK services; tBTA_SERVICE_MASK services_to_search; tBTA_SERVICE_MASK services_found; #if (SDP_INCLUDED == TRUE) tSDP_DISCOVERY_DB *p_sdp_db; #endif ///SDP_INCLUDED == TRUE UINT16 state; BD_ADDR peer_bdaddr; BOOLEAN name_discover_done; BD_NAME peer_name; TIMER_LIST_ENT search_timer; UINT8 service_index; tBTA_DM_MSG *p_search_queue; /* search or discover commands during search cancel stored here */ BOOLEAN wait_disc; BOOLEAN sdp_results; #if (SDP_INCLUDED == TRUE) tSDP_UUID uuid; #endif ///SDP_INCLUDED == TRUE UINT8 peer_scn; BOOLEAN sdp_search; BOOLEAN cancel_pending; /* inquiry cancel is pending */ tBTA_TRANSPORT transport; #if ((defined BLE_INCLUDED) && (BLE_INCLUDED == TRUE)) tBTA_DM_SEARCH_CBACK *p_scan_cback; #if ((defined BTA_GATT_INCLUDED) && (BTA_GATT_INCLUDED == TRUE) && SDP_INCLUDED == TRUE) tBTA_GATTC_IF client_if; UINT8 num_uuid; tBT_UUID *p_srvc_uuid; UINT8 uuid_to_search; BOOLEAN gatt_disc_active; UINT16 conn_id; UINT8 *p_ble_rawdata; UINT32 ble_raw_size; UINT32 ble_raw_used; TIMER_LIST_ENT gatt_close_timer; /* GATT channel close delay timer */ BD_ADDR pending_close_bda; /* pending GATT channel remote device address *//* ... */ #endif/* ... */ #endif }{ ... } tBTA_DM_SEARCH_CB; /* DI control block */ typedef struct { #if (SDP_INCLUDED == TRUE) tSDP_DISCOVERY_DB *p_di_db; /* pointer to the DI discovery database */ #endif ///SDP_INCLUDED == TRUE BOOLEAN uuid_added; UINT8 di_num; /* total local DI record number */ UINT32 di_handle[BTA_DI_NUM_MAX]; /* local DI record handle, the first one is primary record */ }{ ... } tBTA_DM_DI_CB; /* DM search state */ enum { BTA_DM_SEARCH_IDLE, BTA_DM_SEARCH_ACTIVE, BTA_DM_SEARCH_CANCELLING, BTA_DM_DISCOVER_ACTIVE }{ ... }; typedef struct { DEV_CLASS dev_class; /* local device class */ UINT16 policy_settings; /* link policy setting hold, sniff, park, MS switch */ UINT16 page_timeout; /* timeout for page in slots */ UINT16 link_timeout; /* link supervision timeout in slots */ BOOLEAN avoid_scatter; /* TRUE to avoid scatternet when av is streaming (be the master) */ }{ ... } tBTA_DM_CFG; extern const UINT32 bta_service_id_to_btm_srv_id_lkup_tbl[]; typedef struct { UINT8 id; UINT8 app_id; UINT8 cfg; }{ ... } tBTA_DM_RM ; extern tBTA_DM_CFG *const p_bta_dm_cfg; extern tBTA_DM_RM *const p_bta_dm_rm_cfg; typedef struct { UINT8 id; UINT8 app_id; UINT8 spec_idx; /* index of spec table to use */ }{ ... } tBTA_DM_PM_CFG; typedef struct { tBTA_DM_PM_ACTION power_mode; UINT16 timeout; }{ ... } tBTA_DM_PM_ACTN; typedef struct { UINT8 allow_mask; /* mask of sniff/hold/park modes to allow */ #if (BTM_SSR_INCLUDED == TRUE) UINT8 ssr; /* set SSR on conn open/unpark */ #endif tBTA_DM_PM_ACTN actn_tbl [BTA_DM_PM_NUM_EVTS][2]; }{ ... } tBTA_DM_PM_SPEC; typedef struct { UINT16 max_lat; UINT16 min_rmt_to; UINT16 min_loc_to; }{ ... } tBTA_DM_SSR_SPEC; typedef struct { UINT16 manufacturer; UINT16 lmp_sub_version; UINT8 lmp_version; }{ ... } tBTA_DM_LMP_VER_INFO; #if (BTA_DM_PM_INCLUDED == TRUE) extern tBTA_DM_PM_CFG *const p_bta_dm_pm_cfg; extern tBTA_DM_PM_SPEC *const p_bta_dm_pm_spec; extern tBTM_PM_PWR_MD *const p_bta_dm_pm_md; #if (BTM_SSR_INCLUDED == TRUE) extern tBTA_DM_SSR_SPEC *const p_bta_dm_ssr_spec; #endif/* ... */ #endif /* #if (BTA_DM_PM_INCLUDED == TRUE) */ /* update dynamic BRCM Aware EIR data */ extern tBTA_DM_EIR_CONF bta_dm_eir_cfg; extern tBTA_DM_EIR_CONF *p_bta_dm_eir_cfg; /* DM control block */ #if BTA_DYNAMIC_MEMORY == FALSE extern tBTA_DM_CB bta_dm_cb; #else extern tBTA_DM_CB *bta_dm_cb_ptr; #define bta_dm_cb (*bta_dm_cb_ptr)/* ... */ #endif /* DM search control block */ #if BTA_DYNAMIC_MEMORY == FALSE extern tBTA_DM_SEARCH_CB bta_dm_search_cb; #else extern tBTA_DM_SEARCH_CB *bta_dm_search_cb_ptr; #define bta_dm_search_cb (*bta_dm_search_cb_ptr)/* ... */ #endif /* DI control block */ #if BTA_DYNAMIC_MEMORY == FALSE extern tBTA_DM_DI_CB bta_dm_di_cb; #else extern tBTA_DM_DI_CB *bta_dm_di_cb_ptr; #define bta_dm_di_cb (*bta_dm_di_cb_ptr) extern SemaphoreHandle_t deinit_semaphore;/* ... */ #endif #if BTA_DYNAMIC_MEMORY == FALSE extern tBTA_DM_CONNECTED_SRVCS bta_dm_conn_srvcs; #else extern tBTA_DM_CONNECTED_SRVCS *bta_dm_conn_srvcs_ptr; #define bta_dm_conn_srvcs (*bta_dm_conn_srvcs_ptr)/* ... */ #endif /* Discovery raw data buffer */ #define MAX_DISC_RAW_DATA_BUF (1024) #if BTA_DYNAMIC_MEMORY == TRUE extern UINT8 *g_disc_raw_data_buf; #endif extern BOOLEAN bta_dm_sm_execute(BT_HDR *p_msg); extern void bta_dm_sm_disable( void ); extern void bta_dm_sm_deinit(void); extern BOOLEAN bta_dm_search_sm_execute(BT_HDR *p_msg); extern void bta_dm_search_sm_disable( void ); extern void bta_dm_enable (tBTA_DM_MSG *p_data); extern void bta_dm_disable (tBTA_DM_MSG *p_data); extern void bta_dm_set_dev_name (tBTA_DM_MSG *p_data); extern void bta_dm_get_dev_name (tBTA_DM_MSG *p_data); #if (ESP_COEX_VSC_INCLUDED == TRUE) extern void bta_dm_cfg_coex_status(tBTA_DM_MSG *p_data); #endif extern void bta_dm_send_vendor_hci(tBTA_DM_MSG *p_data); #if (CLASSIC_BT_INCLUDED == TRUE) extern void bta_dm_config_eir (tBTA_DM_MSG *p_data); extern void bta_dm_set_page_timeout (tBTA_DM_MSG *p_data); extern void bta_dm_get_page_timeout (tBTA_DM_MSG *p_data); extern void bta_dm_set_acl_pkt_types (tBTA_DM_MSG *p_data); #if (ENC_KEY_SIZE_CTRL_MODE != ENC_KEY_SIZE_CTRL_MODE_NONE) extern void bta_dm_set_min_enc_key_size (tBTA_DM_MSG *p_data); #endif/* ... */ #endif extern void bta_dm_set_afh_channels (tBTA_DM_MSG *p_data); extern void bta_dm_read_rmt_name(tBTA_DM_MSG *p_data); extern void bta_dm_ble_set_channels (tBTA_DM_MSG *p_data); extern void bta_dm_update_white_list(tBTA_DM_MSG *p_data); extern void bta_dm_clear_white_list(tBTA_DM_MSG *p_data); extern void bta_dm_ble_read_adv_tx_power(tBTA_DM_MSG *p_data); extern void bta_dm_read_rssi(tBTA_DM_MSG *p_data); extern void bta_dm_set_visibility (tBTA_DM_MSG *p_data); extern void bta_dm_set_scan_config(tBTA_DM_MSG *p_data); extern void bta_dm_vendor_spec_command(tBTA_DM_MSG *p_data); extern void bta_dm_bond (tBTA_DM_MSG *p_data); extern void bta_dm_bond_cancel (tBTA_DM_MSG *p_data); extern void bta_dm_set_pin_type (tBTA_DM_MSG *p_data); extern void bta_dm_pin_reply (tBTA_DM_MSG *p_data); extern void bta_dm_acl_change(tBTA_DM_MSG *p_data); extern void bta_dm_add_device (tBTA_DM_MSG *p_data); extern void bta_dm_remove_device (tBTA_DM_MSG *p_data); extern void bta_dm_close_acl(tBTA_DM_MSG *p_data); extern void bta_dm_add_ampkey (tBTA_DM_MSG *p_data); #if BLE_INCLUDED == TRUE extern void bta_dm_add_blekey (tBTA_DM_MSG *p_data); extern void bta_dm_add_ble_device (tBTA_DM_MSG *p_data); extern void bta_dm_ble_passkey_reply (tBTA_DM_MSG *p_data); extern void bta_dm_ble_set_static_passkey(tBTA_DM_MSG *p_data); extern void bta_dm_ble_confirm_reply (tBTA_DM_MSG *p_data); extern void bta_dm_security_grant (tBTA_DM_MSG *p_data); extern void bta_dm_ble_set_bg_conn_type (tBTA_DM_MSG *p_data); extern void bta_dm_ble_set_conn_params (tBTA_DM_MSG *p_data); extern void bta_dm_ble_set_scan_params(tBTA_DM_MSG *p_data); extern void bta_dm_ble_set_scan_fil_params(tBTA_DM_MSG *p_data); extern void bta_dm_ble_set_conn_scan_params (tBTA_DM_MSG *p_data); #if ((defined BTA_GATT_INCLUDED) && (BTA_GATT_INCLUDED == TRUE) && SDP_INCLUDED == TRUE) && (GATTC_INCLUDED == TRUE) extern void bta_dm_close_gatt_conn(tBTA_DM_MSG *p_data); #endif /* ((defined BTA_GATT_INCLUDED) && (BTA_GATT_INCLUDED == TRUE) && SDP_INCLUDED == TRUE) && (GATTC_INCLUDED == TRUE) */ extern void bta_dm_ble_observe (tBTA_DM_MSG *p_data); extern void bta_dm_ble_scan (tBTA_DM_MSG *p_data); extern void bta_dm_ble_update_conn_params (tBTA_DM_MSG *p_data); extern void bta_dm_ble_disconnect (tBTA_DM_MSG *p_data); extern void bta_dm_ble_set_rand_address(tBTA_DM_MSG *p_data); extern void bta_dm_ble_clear_rand_address(tBTA_DM_MSG *p_data); extern void bta_dm_ble_stop_advertising(tBTA_DM_MSG *p_data); extern void bta_dm_ble_config_local_privacy (tBTA_DM_MSG *p_data); extern void bta_dm_ble_config_local_icon (tBTA_DM_MSG *p_data); extern void bta_dm_ble_set_adv_params (tBTA_DM_MSG *p_data); extern void bta_dm_ble_set_adv_params_all(tBTA_DM_MSG *p_data); extern void bta_dm_ble_set_adv_config (tBTA_DM_MSG *p_data); extern void bta_dm_ble_set_long_adv (tBTA_DM_MSG *p_data); extern void bta_dm_ble_set_adv_config_raw (tBTA_DM_MSG *p_data); extern void bta_dm_ble_set_scan_rsp (tBTA_DM_MSG *p_data); extern void bta_dm_ble_set_scan_rsp_raw (tBTA_DM_MSG *p_data); extern void bta_dm_ble_broadcast (tBTA_DM_MSG *p_data); extern void bta_dm_ble_set_data_length(tBTA_DM_MSG *p_data); extern void bta_dm_ble_update_duplicate_exceptional_list(tBTA_DM_MSG *p_data); #if SMP_INCLUDED == TRUE extern void bta_dm_co_security_param_init(void); #endif #if BLE_ANDROID_CONTROLLER_SCAN_FILTER == TRUE extern void bta_dm_cfg_filter_cond (tBTA_DM_MSG *p_data); extern void bta_dm_scan_filter_param_setup (tBTA_DM_MSG *p_data); extern void bta_dm_enable_scan_filter(tBTA_DM_MSG *p_data);/* ... */ #endif extern void btm_dm_ble_multi_adv_disable(tBTA_DM_MSG *p_data); extern void bta_dm_ble_multi_adv_data(tBTA_DM_MSG *p_data); extern void bta_dm_ble_multi_adv_upd_param(tBTA_DM_MSG *p_data); extern void bta_dm_ble_multi_adv_enb(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_dtm_tx_start(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_dtm_rx_start(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_dtm_stop(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_clear_adv(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_set_rpa_timeout(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_add_dev_to_resolving_list(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_set_privacy_mode(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_set_csa_support(tBTA_DM_MSG *p_data); #if (BLE_50_FEATURE_SUPPORT == TRUE) extern void bta_dm_ble_gap_dtm_enhance_tx_start(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_dtm_enhance_rx_start(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_read_phy(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_set_prefer_default_phy(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_set_prefer_phy(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_ext_adv_set_rand_addr(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_ext_adv_set_params(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_config_ext_adv_data_raw(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_set_ext_scan_params(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_ext_scan(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_set_prefer_ext_conn_params(tBTA_DM_MSG *p_data);/* ... */ #endif // #if (BLE_50_FEATURE_SUPPORT == TRUE) extern void bta_dm_ble_setup_storage(tBTA_DM_MSG *p_data); extern void bta_dm_ble_enable_batch_scan(tBTA_DM_MSG *p_data); extern void bta_dm_ble_disable_batch_scan(tBTA_DM_MSG *p_data); extern void bta_dm_ble_read_scan_reports(tBTA_DM_MSG *p_data); extern void bta_dm_ble_track_advertiser(tBTA_DM_MSG *p_data); extern void bta_dm_ble_get_energy_info(tBTA_DM_MSG *p_data); /* ... */ #endif extern void bta_dm_set_encryption(tBTA_DM_MSG *p_data); extern void bta_dm_confirm(tBTA_DM_MSG *p_data); extern void bta_dm_key_req(tBTA_DM_MSG *p_data); #if (BTA_HD_INCLUDED == TRUE) extern BOOLEAN bta_dm_check_if_only_hd_connected(BD_ADDR peer_addr); #endif /* BTA_HD_INCLUDED */ #if (BTM_OOB_INCLUDED == TRUE) extern void bta_dm_loc_oob(tBTA_DM_MSG *p_data); extern void bta_dm_oob_reply(tBTA_DM_MSG *p_data); extern void bta_dm_sc_oob_reply(tBTA_DM_MSG *p_data); extern void bta_dm_sc_create_oob_data(tBTA_DM_MSG *p_data); extern void bta_dm_ci_io_req_act(tBTA_DM_MSG *p_data); extern void bta_dm_ci_rmt_oob_act(tBTA_DM_MSG *p_data);/* ... */ #endif /* BTM_OOB_INCLUDED */ #if (BTA_DM_PM_INCLUDED == TRUE) extern void bta_dm_init_pm(void); extern void bta_dm_disable_pm(void); extern void bta_dm_pm_active(BD_ADDR peer_addr); extern void bta_dm_pm_btm_status(tBTA_DM_MSG *p_data); extern void bta_dm_pm_timer(tBTA_DM_MSG *p_data);/* ... */ #endif /* #if (BTA_DM_PM_INCLUDED == TRUE) */ #if (BTA_DM_QOS_INCLUDED == TRUE) extern void bta_dm_set_qos(tBTA_DM_MSG *p_data); #endif /* #if (BTA_DM_QOS_INCLUDED == TRUE) */ extern UINT8 bta_dm_get_av_count(void); extern void bta_dm_search_start (tBTA_DM_MSG *p_data); extern void bta_dm_search_cancel (tBTA_DM_MSG *p_data); extern void bta_dm_discover (tBTA_DM_MSG *p_data); #if (SDP_INCLUDED == TRUE) extern void bta_dm_di_disc (tBTA_DM_MSG *p_data); #endif ///SDP_INCLUDED == TRUE extern void bta_dm_inq_cmpl (tBTA_DM_MSG *p_data); extern void bta_dm_rmt_name (tBTA_DM_MSG *p_data); #if (SDP_INCLUDED == TRUE) extern void bta_dm_sdp_result (tBTA_DM_MSG *p_data); #endif ///SDP_INCLUDED == TRUE extern void bta_dm_search_cmpl (tBTA_DM_MSG *p_data); extern void bta_dm_free_sdp_db (tBTA_DM_MSG *p_data); extern void bta_dm_disc_result (tBTA_DM_MSG *p_data); extern void bta_dm_search_result (tBTA_DM_MSG *p_data); extern void bta_dm_discovery_cmpl (tBTA_DM_MSG *p_data); extern void bta_dm_queue_search (tBTA_DM_MSG *p_data); extern void bta_dm_queue_disc (tBTA_DM_MSG *p_data); extern void bta_dm_search_clear_queue (tBTA_DM_MSG *p_data); extern void bta_dm_search_cancel_cmpl (tBTA_DM_MSG *p_data); extern void bta_dm_search_cancel_notify (tBTA_DM_MSG *p_data); extern void bta_dm_search_cancel_transac_cmpl(tBTA_DM_MSG *p_data); extern void bta_dm_disc_rmt_name (tBTA_DM_MSG *p_data); extern tBTA_DM_PEER_DEVICE *bta_dm_find_peer_device(BD_ADDR peer_addr); void bta_dm_eir_update_uuid(tBT_UUID uuid, BOOLEAN adding); extern void bta_dm_enable_test_mode(tBTA_DM_MSG *p_data); extern void bta_dm_disable_test_mode(tBTA_DM_MSG *p_data); extern void bta_dm_execute_callback(tBTA_DM_MSG *p_data); extern void bta_dm_remove_all_acl(tBTA_DM_MSG *p_data); #if (BLE_50_FEATURE_SUPPORT == TRUE) extern void bta_dm_ble_gap_read_phy(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_set_prefer_default_phy(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_set_prefer_phy(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_ext_adv_set_rand_addr(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_ext_adv_set_params(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_config_ext_adv_data_raw(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_start_ext_adv(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_ext_adv_set_remove(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_ext_adv_set_clear(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_periodic_adv_set_params(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_periodic_adv_cfg_data_raw(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_periodic_adv_enable(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_periodic_adv_create_sync(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_periodic_adv_sync_cancel(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_periodic_adv_sync_terminate(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_periodic_adv_add_dev_to_list(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_periodic_adv_remove_dev_from_list(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_periodic_adv_clear_dev(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_set_ext_scan_params(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_ext_scan(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_set_prefer_ext_conn_params(tBTA_DM_MSG *p_data);/* ... */ #endif // #if (BLE_50_FEATURE_SUPPORT == TRUE) #if (BLE_FEAT_PERIODIC_ADV_SYNC_TRANSFER == TRUE) extern void bta_dm_ble_gap_periodic_adv_recv_enable(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_periodic_adv_sync_trans(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_periodic_adv_set_info_trans(tBTA_DM_MSG *p_data); extern void bta_dm_ble_gap_set_periodic_adv_sync_trans_params(tBTA_DM_MSG *p_data);/* ... */ #endif // #if (BLE_FEAT_PERIODIC_ADV_SYNC_TRANSFER == TRUE) /* ... */ #endif /* BTA_DM_INT_H */
Details
Show:
from
Types: Columns:
This file uses the notable symbols shown below. Click anywhere in the file to view more details.