bluetooth_struct.h
94.8 KB
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
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
/*****************************************************************************
* Copyright Statement:
* --------------------
* This software is protected by Copyright and the information contained
* herein is confidential. The software may not be copied and the information
* contained herein may not be used or disclosed except with the written
* permission of MediaTek Inc. (C) 2005
*
* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
*
* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
*
* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
*
*****************************************************************************/
/*****************************************************************************
*
* Filename:
* ---------
* bluetooth_struct.h
*
* Project:
* --------
* Maui_Software
*
* Description:
* ------------
* This file is defines SAP for MTK Bluetooth.
*
* Author:
* -------
* -------
*
*============================================================================
* HISTORY
* Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*------------------------------------------------------------------------------
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
*------------------------------------------------------------------------------
* Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*============================================================================
****************************************************************************/
#ifndef __BLUETOOTH_STRUCT_H_
#define __BLUETOOTH_STRUCT_H_
#include "kal_general_types.h"
#include "uart_sw.h"
#include "app_ltlcom.h"
#include "dcl.h"
#include "btdrv_struct.h" //move 2 struct to btdrv_struct.h for HAL rule2
#ifdef __BT_DIALER_SUPPORT__
#include "bt_hfadp_struct.h"
#endif /* __BT_DIALER_SUPPORT__ */
#define HFG_SEQUENCE_NUM_LENGHT 16
#define BT_MAX_VERSION_STR_SIZE 20
/* SPP definitions */
#define SPP_MAX_SERVICE_NAME_LENGTH 14
#define BT_SPP_MAX_DEV_NAME_LEN 80
/* MSG_ID_BT_SPP_ACTIVATE_REQ */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_char svcName[SPP_MAX_SERVICE_NAME_LENGTH];
kal_uint16 svcUUID; /* Vonder UUID */
module_type owner; /* Owner of spp port */
kal_uint8 secLevel; /* User set security level */
kal_uint32 req_id;
}bt_spp_activate_req_struct;
/* MSG_ID_BT_SPP_ACTIVATE_CNF */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port; /* virtual port number */
kal_uint16 uuid;
kal_uint8 result;
kal_uint32 req_id;
}bt_spp_activate_cnf_struct;
/* MSG_ID_BT_SPP_DEACTIVATE_REQ */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port; /* virtual port number */
}bt_spp_deactivate_req_struct;
/* MSG_ID_BT_SPP_DEACTIVATE_CNF */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port; /* virtual port number */
kal_uint8 result;
}bt_spp_deactivate_cnf_struct;
/* MSG_ID_BT_SPP_CONNECT_REQ */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 lap;
kal_uint8 uap;
kal_uint16 nap;
kal_uint8* txBufPtr; /* User set tx/rx buffer */
kal_uint8* rxBufPtr;
kal_uint32 txBufSize; /* User set tx/rx buffer size */
kal_uint32 rxBufSize;
kal_uint8 server_chnl_num;
kal_uint16 uuid;
kal_uint32 req_id;
kal_uint8 sec_level;
} bt_spp_connect_req_struct;
/* MSG_ID_BT_SPP_SEND_DATA_REQ */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port; /* virtual port number */
} bt_spp_send_data_req_struct;
/* MSG_ID_BT_SPP_GET_DATA_REQ */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port; /* virtual port number */
} bt_spp_get_data_req_struct;
/* MSG_ID_BT_SPP_CONNECT_IND */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port; /* virtual port number */
kal_uint8 cid; /* connection id */
kal_uint32 lap;
kal_uint8 uap;
kal_uint16 nap;
} bt_spp_connect_ind_struct;
/* MSG_ID_BT_SPP_DISCONNECT_REQ */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port; /* virtual port number */
} bt_spp_disconnect_req_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port; /* virtual port number */
} bt_spp_audio_connect_req_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port; /* virtual port number */
} bt_spp_audio_disconnect_req_struct;
/* MSG_ID_BT_SPP_DISCONNECT_IND */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port; /* virtual port number */
} bt_spp_disconnect_ind_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port; /* virtual port number */
kal_uint8 result;
} bt_spp_audio_connect_cnf_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port; /* virtual port number */
} bt_spp_audio_connect_ind_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port; /* virtual port number */
kal_uint8 result;
} bt_spp_audio_disconnect_cnf_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port; /* virtual port number */
} bt_spp_audio_disconnect_ind_struct;
/* MSG_ID_BT_SPP_DISCONNECT_CNF */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port; /* virtual port number */
kal_uint8 cid; /* connection id */
kal_uint32 lap;
kal_uint8 uap;
kal_uint16 nap;
kal_uint8 result; /* This is result field of this returned cnf msg */
} bt_spp_disconnect_cnf_struct;
/* MSG_ID_BT_SPP_AUTH_REQ */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port; /* virtual port number */
kal_uint8 dev_name[BT_SPP_MAX_DEV_NAME_LEN];
} bt_spp_auth_req_struct;
/* MSG_ID_BT_SPP_CONNECT_IND_REQ */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port; /* virtual port number */
kal_uint32 lap;
kal_uint8 uap;
kal_uint16 nap;
kal_uint8 dev_name[BT_SPP_MAX_DEV_NAME_LEN];
} bt_spp_connect_ind_req_struct;
/* MSG_ID_BT_SPP_CONNECT_IND_RES */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port; /* virtual port number */
kal_uint32 lap;
kal_uint8 uap;
kal_uint16 nap;
kal_uint8 *txBufPtr; /* User set tx/rx buffer */
kal_uint8 *rxBufPtr;
kal_uint32 txBufSize; /* User set tx/rx buffer size */
kal_uint32 rxBufSize;
kal_uint8 result;
} bt_spp_connect_ind_res_struct;
/* MSG_ID_BT_DUN_CONNECT_IND_REQ */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port; /* virtual port number */
kal_uint32 lap;
kal_uint8 uap;
kal_uint16 nap;
kal_uint8 dev_name[BT_SPP_MAX_DEV_NAME_LEN];
} bt_dun_connect_ind_req_struct;
/* MSG_ID_BT_DUN_CONNECT_IND_RES */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port; /* virtual port number */
kal_uint32 lap;
kal_uint8 uap;
kal_uint16 nap;
kal_uint8 *txBufPtr; /* User set tx/rx buffer */
kal_uint8 *rxBufPtr;
kal_uint32 txBufSize; /* User set tx/rx buffer size */
kal_uint32 rxBufSize;
kal_uint8 result;
} bt_dun_connect_ind_res_struct;
/* MSG_ID_BT_DUN_DISCONNECT_CNF */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port; /* virtual port number */
kal_uint8 cid; /* connection id */
kal_uint32 lap;
kal_uint8 uap;
kal_uint16 nap;
kal_uint8 result; /* This is result field of this returned cnf msg */
} bt_dun_disconnect_cnf_struct;
/* MSG_ID_BT_FAX_CONNECT_IND_REQ */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port; /* virtual port number */
kal_uint32 lap;
kal_uint8 uap;
kal_uint16 nap;
kal_uint8 dev_name[BT_SPP_MAX_DEV_NAME_LEN];
} bt_fax_connect_ind_req_struct;
/* MSG_ID_BT_FAX_CONNECT_IND_RES */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port; /* virtual port number */
kal_uint32 lap;
kal_uint8 uap;
kal_uint16 nap;
kal_uint8 *txBufPtr; /* User set tx/rx buffer */
kal_uint8 *rxBufPtr;
kal_uint32 txBufSize; /* User set tx/rx buffer size */
kal_uint32 rxBufSize;
kal_uint8 result;
} bt_fax_connect_ind_res_struct;
/* MSG_ID_BT_SPP_CONNECT_CNF */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port; /* virtual port number */
kal_uint8 cid; /* connection id */
kal_uint32 lap;
kal_uint8 uap;
kal_uint16 nap;
kal_uint32 req_id;
kal_uint8 result; /* This is result field of this returned cnf msg */
kal_uint8 server_chnl_num;
} bt_spp_connect_cnf_struct;
/* MSG_ID_BT_SPP_AUTH_RSP */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port; /* virtual port number */
kal_uint8 *txBufPtr; /* User set tx/rx buffer */
kal_uint8 *rxBufPtr;
kal_uint32 txBufSize; /* User set tx/rx buffer size */
kal_uint32 rxBufSize;
kal_bool result; /* TRUE: accepted by MMI */
} bt_spp_auth_rsp_struct;
/* MSG_ID_BT_SPP_UART_OWNER_IND */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port;
} bt_spp_uart_owner_ind_struct;
/* MSG_ID_BT_SPP_UART_OWNER_CNF */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port;
} bt_spp_uart_owner_cnf_struct;
/* MSG_ID_BT_SPP_UART_PLUGOUT_CNF */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port;
} bt_spp_uart_plugout_cnf_struct;
/* MSG_ID_BT_SPP_SCO_RSSI_IND */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 bd_address[6];
kal_uint8 rssi_value;
} bt_spp_sco_rssi_ind_struct;
/* MSG_ID_BT_DUN_CONNECT_REQ */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 lap;
kal_uint8 uap;
kal_uint16 nap;
kal_uint8 *txBufPtr; /* User set tx/rx buffer */
kal_uint8 *rxBufPtr;
kal_uint32 txBufSize; /* User set tx/rx buffer size */
kal_uint32 rxBufSize;
kal_uint8 server_chnl_num;
} bt_dun_connect_req_struct;
/* MSG_ID_BT_DUN_CONNECT_IND */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port; /* virtual port number */
kal_uint8 cid; /* connection id */
kal_uint32 lap;
kal_uint8 uap;
kal_uint16 nap;
} bt_dun_connect_ind_struct;
/* MSG_ID_BT_DUN_DISCONNECT_REQ */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port; /* virtual port number */
} bt_dun_disconnect_req_struct;
/* MSG_ID_BT_DUN_DISCONNECT_IND */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port; /* virtual port number */
} bt_dun_disconnect_ind_struct;
/* MSG_ID_BT_DUN_AUTH_RSP : add 2007-01-12 */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port; /* virtual port number */
kal_uint8 *txBufPtr; /* User set tx/rx buffer */
kal_uint8 *rxBufPtr;
kal_uint32 txBufSize; /* User set tx/rx buffer size */
kal_uint32 rxBufSize;
kal_bool result; /* TRUE: accepted by MMI */
} bt_dun_auth_rsp_struct;
/* MSG_ID_BT_DUN_CONNECT_CNF */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port; /* virtual port number */
kal_uint8 cid; /* connection id */
kal_uint32 lap;
kal_uint8 uap;
kal_uint16 nap;
kal_uint8 result; /* This is result field of this returned cnf msg */
kal_uint8 server_chnl_num;
} bt_dun_connect_cnf_struct;
/* MSG_ID_BT_FAX_CONNECT_IND */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port; /* virtual port number */
kal_uint8 cid; /* connection id */
kal_uint32 lap;
kal_uint8 uap;
kal_uint16 nap;
} bt_fax_connect_ind_struct;
/* MSG_ID_BT_FAX_DISCONNECT_REQ */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port; /* virtual port number */
} bt_fax_disconnect_req_struct;
/* MSG_ID_BT_FAX_DISCONNECT_IND */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port; /* virtual port number */
} bt_fax_disconnect_ind_struct;
/* MSG_ID_BT_FAX_AUTH_RSP : add 2007-01-12 */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port; /* virtual port number */
kal_uint8* txBufPtr; /* User set tx/rx buffer */
kal_uint8* rxBufPtr;
kal_uint32 txBufSize; /* User set tx/rx buffer size */
kal_uint32 rxBufSize;
kal_bool result; /* TRUE: accepted by MMI */
} bt_fax_auth_rsp_struct;
/* MSG_ID_BT_SPP_CONNECT_IND */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
DCL_DEV port; /* virtual port number */
kal_uint8 seq1[HFG_SEQUENCE_NUM_LENGHT];
kal_uint8 seq2[HFG_SEQUENCE_NUM_LENGHT];
} bt_hf_connect_ind_struct;
/* MSG_ID_BT_HFG_SEND_DATA_REQ */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_bool more_data;
DCL_DEV port; /* virtual port number */
} bt_hf_send_data_req_struct;
/* MSG_ID_BT_POWERON_CNF */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_bool result; /* TRUE: successful, FALSE: failed */
} bt_poweron_cnf_struct;
/* MSG_ID_BT_DETECT_CHIP_CNF */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_bool result; /* TRUE: bt chip exist, FALSE: bt chip absent */
} bt_detect_chip_cnf_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_bool result; /* TRUE: successful, FALSE: failed */
} bt_engineer_mode_poweron_cnf_struct;
/* MSG_ID_BT_POWEROFF_CNF */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_bool result; /* TRUE: successful, FALSE: failed */
} bt_poweroff_cnf_struct;
typedef struct
{
LOCAL_PARA_HDR
kal_bool afh; /* True: send AFH command */
kal_uint32 freq;
/* #if defined (WIFI_BB_MT5921) */
kal_uint8 hb;
/* #endif */
kal_bool pta; /* True: send PTA command */
kal_uint8 pta_action;
} bt_wifi_set_chnl_req_struct;
/* MSG_ID_BT_MMI_RESET_CNF */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_bool result; /* TRUE: successful, FALSE: failed */
} bt_mmi_reset_cnf_struct;
/* MSG_ID_BT_TEST_MODE_REQ */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 mode; /* 1: enter test mode, 2: leave test mode */
#ifdef __GEMINI__
kal_uint8 dual_sim_uart_setting; /* 0: L4C_UART_TO_SIM1, 1: L4C_UART_UART_TO_SIM2 */
#endif
} bt_test_mode_req_struct;
/* MSG_ID_BT_SSP_DEBUG_MODE_REQ */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 on; /* 0: debug mode off, 1: debug mode on */
} bt_ssp_debug_mode_req_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_bool result; /* TRUE: successful, FALSE: failed */
} bt_ssp_debug_mode_cnf_struct;
//move to interface\hal\bluetooth\public\btdrv_struct.h
#if 0
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#endif
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_bool result;
} bt_set_bd_addr_cnf_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 index;
kal_uint8 external_pa;
kal_uint8 internal_pa;
kal_uint16 output_power;
} bt_set_power_table_req_struct;
//move to interface\hal\bluetooth\public\btdrv_struct.h
#if 0
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#endif
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_bool result;
} bt_pcm_lb_rsp_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_bool result; /* TRUE: successful, FALSE: failed */
char chip_version[BT_MAX_VERSION_STR_SIZE]; /* ASCII */
char lmp_version[BT_MAX_VERSION_STR_SIZE]; /* ASCII */
char patch_version[BT_MAX_VERSION_STR_SIZE]; /* ASCII */
} bt_get_bt_version_cnf_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_bool result;
} bt_l4c_at_general_cnf_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_bool result;
} bt_engineer_mode_cnf_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 pattern;
kal_uint8 channel_hopping;
kal_uint8 tx_freq;
kal_uint8 rx_freq;
kal_uint8 poll_period;
kal_uint8 packet_type;
kal_uint16 packet_length;
kal_uint8 bt_addr[6]; /*For NSR test ext, LCH 20110808*/
} bt_engineer_mode_txrx_test_req_struct;
/*For NSR test result return to MMI, LCH 20110808*/
typedef struct
{
kal_uint8 ref_count;
kal_bool result;
kal_uint16 msg_len;
kal_uint32 nsr_packet_count; /*NSR receive total packet*/
kal_uint32 nsr_per; /*NSR packet error rate:nsr_per%*/
kal_uint32 nsr_byte_count; /*NSR receive total bytes*/
kal_uint32 nsr_ber; /*NSR bit error rate:nsr_per%*/
} bt_engineer_mode_nsr_result_cnf_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_bool result;
} bt_engineer_mode_txrx_test_cnf_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 level;
} bt_engineer_mode_power_test_req_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_bool result;
} bt_engineer_mode_txrx_power_cnf_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 addr[12];
} bt_engineer_mode_device_test_req_struct;
#ifdef __GEMINI__
/* MSG_ID_BT_ENGINEER_MODE_POWERON_REQ */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 dual_sim_uart_setting;
} bt_engineer_mode_poweron_req_struct;
#endif /* __GEMINI__ */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
#ifdef __GEMINI__
kal_uint8 dual_sim_uart_setting; /* 0: L4C_UART_TO_SIM1, 1: L4C_UART_UART_TO_SIM2 */
#endif
} bt_read_bd_addr_req_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_bool result;
kal_uint8 bd_addr[6];
} bt_read_bd_addr_cnf_struct;
/* MSG_ID_BT_TEST_CMD_REQ */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 test_cmd_content[256];
} bt_test_cmd_req_struct;
/* MSG_ID_BT_L4C_TEST_CMD_CNF */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 test_cmd_rsp_buf[256];
kal_uint16 length;
} bt_test_cmd_rsp_struct;
/* MSG_ID_BT_READ_RSSI_REQ */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 lap;
kal_uint8 uap;
kal_uint16 nap;
}bt_read_rssi_req_struct;
/* MSG_ID_BT_READ_RSSI_CNF */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 result;
kal_int8 rssi_value;
kal_uint32 lap;
kal_uint8 uap;
kal_uint16 nap;
}bt_read_rssi_cnf_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 value;
}bt_set_sco_accept_cnf_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 value;
}bt_set_sco_accept_req_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 value;
}bt_set_dual_pcm_setting_req_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 value;
}bt_set_dual_pcm_switch_req_struct;
#ifdef __GEMINI__
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 active_uart;
} bt_active_uart_change_req_struct;
#endif
/* BPP definitions */
#define OBRC_SCO_REJECT 0xFF /* SCO REJECT */
/* BIP definitions */
#define BT_BIP_MAX_PATH_LEN 260
#define BT_BIP_MAX_IMG_FORMATS 10
#define BT_BIP_MAX_IMG_NAME_LEN GOEP_MAX_OBJ_NAME /* 256 */
#define BT_BIP_MAX_TIME_LEN 18 /* (YYYYMMDDTHHMMSS)(Z) */
#define BT_BIP_IMG_HANDLE_LEN 8
#define BT_BIP_MAX_DEV_NAME_LEN 80
#define BT_BIP_MAX_ATTR_NAME_LEN 40
#define BT_BIP_MAX_IMG_LIST_ITEMS 32
#define BT_BIP_ENCODING_LENGTH 2
#ifdef __BT_BPP_PROFILE__
#define BPP_MAX_TMP_FILE_NAME 130
#define BPP_INLINE_INSTRUCT_PREFIX_LEN 8
#define BPP_INVALID_PRINTER_HANDLE (-1)
#define BPP_XHTML_MULTI_DOC_CHK_SIZE 2048
#define BPP_XHTML_SPECIAL_CHAR_NUM 8
#define BPP_PRINTER_ERROR_CODE_MAX 12
#endif /* __BT_BPP_PROFILE__ */
/* GOEP definitions */
#define GOEP_MAX_UUID_SIZE 16
#define GOEP_MAX_PASSWD_SIZE 16
#define GOEP_MAX_REALM_SIZE 20
#define GOEP_MAX_USERID_SIZE 20
#define GOEP_MAX_OBJ_NAME (256 * 2)
#define GOEP_MAX_FOLDER_NAME (256 * 2)
#define GOEP_MAX_DEV_NAME 80
#define GOEP_MAX_DESCRIPTION 80
#define GOEP_MAX_MIME_TYPE 80
#define GOEP_MAX_SERVER_NUM 16
#define GOEP_MAX_CLIENT_NUM 16
#define GOEP_CONNECTION_NUM (GOEP_MAX_SERVER_NUM + GOEP_MAX_CLIENT_NUM)
/* The function call was successful. */
#define GOEP_STATUS_SUCCESS 0
/* The operation has failed to start. */
#define GOEP_STATUS_FAILED 1
/* The operation is pending to wait for authentication information */
#define GOEP_STATUS_PENDING 2
/* The transport layer link is disconnected. */
#define GOEP_STATUS_DISCONNECT 3
/* No connection exists, when one is required */
#define GOEP_STATUS_NO_CONNECT 4
/* A request is pending or resources are in use. */
#define GOEP_STATUS_BUSY 11
/* The necessary resources are not available. */
#define GOEP_STATUS_NO_RESOURCES 12
/* An invalid function parameter was provided. */
#define GOEP_STATUS_INVALID_PARM 18
/*
* Bluetooth Only: The request failed because the specified device
* is in the process of being disconnected.
*/
#define GOEP_STATUS_IN_PROGRESS 19
/* Feature not supported */
#define GOEP_STATUS_NOT_SUPPORTED 23
/*
* Bluetooth Only : Feature is restricted, due to a
* Bluetooth security failure
*/
#define GOEP_STATUS_RESTRICTED 20
/* The OBEX packet is too small to support the request. */
#define GOEP_STATUS_PACKET_TOO_SMALL 31
/* No active session exists, when one is required. */
#define GOEP_STATUS_NO_SESSION 32
/* SCO_REJECT */
#define GOEP_STATUS_SCO_REJECT 25
#define GOEP_CREATED 0x21 /* Created */
#define GOEP_ACCEPTED 0x22 /* Accepted */
#define GOEP_NON_AUTHOR_INFO 0x23 /* Non-Authoritative Information */
#define GOEP_NO_CONTENT 0x24 /* No Content */
#define GOEP_RESET_CONTENT 0x25 /* Reset Content */
#define GOEP_PARTIAL_CONTENT 0x26 /* Partial Content */
#define GOEP_MULTIPLE_CHOICES 0x30 /* Multiple Choices */
#define GOEP_MOVED_PERMANENT 0x31 /* Moved Permanently */
#define GOEP_MOVED_TEMPORARY 0x32 /* Moved Temporarily */
#define GOEP_SEE_OTHER 0x33 /* See Other */
#define GOEP_NOT_MODIFIED 0x34 /* Not Modified */
#define GOEP_USE_PROXY 0x35 /* Use Proxy */
#define GOEP_BAD_REQUEST 0x40 /* Bad Request */
#define GOEP_UNAUTHORIZED 0x41 /* Unauthorized */
#define GOEP_PAYMENT_REQUIRED 0x42 /* Payment Required */
#define GOEP_FORBIDDEN 0x43 /* Forbidden - operation is understood but refused */
#define GOEP_NOT_FOUND 0x44 /* Not Found */
#define GOEP_METHOD_NOT_ALLOWED 0x45 /* Method Not Allowed */
#define GOEP_NOT_ACCEPTABLE 0x46 /* Not Acceptable */
#define GOEP_PROXY_AUTHEN_REQ 0x47 /* Proxy Authentication Required */
#define GOEP_REQUEST_TIME_OUT 0x48 /* Request Timed Out */
#define GOEP_CONFLICT 0x49 /* Conflict */
#define GOEP_GONE 0x4a /* Gone */
#define GOEP_LENGTH_REQUIRED 0x4b /* Length Required */
#define GOEP_PRECONDITION_FAILED 0x4c /* Precondition Failed */
#define GOEP_REQ_ENTITY_TOO_LARGE 0x4d /* Requested entity is too large */
#define GOEP_REQ_URL_TOO_LARGE 0x4e /* Requested URL is too large */
#define GOEP_UNSUPPORT_MEDIA_TYPE 0x4f /* Unsupported Media Type */
#define GOEP_INTERNAL_SERVER_ERR 0x50 /* Internal Server Error */
#define GOEP_NOT_IMPLEMENTED 0x51 /* Not Implemented */
#define GOEP_BAD_GATEWAY 0x52 /* Bad Gateway */
#define GOEP_SERVICE_UNAVAILABLE 0x53 /* Service Unavailable */
#define GOEP_GATEWAY_TIMEOUT 0x54 /* Gateway Timeout */
#define GOEP_HTTP_VER_NO_SUPPORT 0x55 /* HTTP version not supported */
#define GOEP_DATABASE_FULL 0x60 /* Database Full */
#define GOEP_DATABASE_LOCKED 0x61 /* Database Locked */
/* End of GOEPStatus */
/* GOEP ENUM */
typedef enum
{
GOEP_TP_BT = 0,
GOEP_TP_IRDA
} goep_tp_type_enum;
typedef enum
{
GOEP_FIRST_PKT = 0,
GOEP_NORMAL_PKT,
GOEP_FINAL_PKT,
GOEP_SINGLE_PKT
} goep_pkt_type_enum;
typedef enum
{
GOEP_FORWARD_FOLDER = 0,
GOEP_BACK_FOLDER,
GOEP_ROOT_FOLDER,
GOEP_CREATE_FOLDER
} goep_set_folder_type_enum;
typedef enum
{
GOEP_PUT_NORMAL = 0,
GOEP_PUT_DELETE,
GOEP_CREATEEMPTY
} goep_put_type_enum;
typedef enum
{
GOEP_SERVER_ROLE = 0,
GOEP_CLIENT_ROLE
} goep_role_enum;
#ifdef __BT_BPP_PROFILE__
typedef enum
{
BPP_IMAGE_JPEG_TYPE,
BPP_IMAGE_GIF_TYPE,
BPP_IMAGE_BMP_TYPE,
BPP_IMAGE_WBMP_TYPE,
BPP_IMAGE_PNG_TYPE,
BPP_IMAGE_SVG_TYPE,
BPP_IMAGE_TYPE_MAX_ENUM
} bpp_image_type_enum;
typedef enum
{
BPP_PRINTER_STATE_IDLE,
BPP_PRINTER_STATE_PROCESSING,
BPP_PRINTER_STATE_STOPPED
} bpp_printer_state_enum;
typedef enum
{
BPP_JOB_STATE_PRINTING,
BPP_JOB_STATE_WAITING,
BPP_JOB_STATE_STOPPED,
BPP_JOB_STATE_COMPLETED,
BPP_JOB_STATE_ABORTED,
BPP_JOB_STATE_CANCELED,
BPP_JOB_STATE_UNKNOWN
} bpp_job_state_enum;
typedef enum
{
BPP_DOCUMENT_FORMAT_XHTML_095,
BPP_DOCUMENT_FORMAT_XHTML_100,
BPP_DOCUMENT_FORMAT_XHTML_MULTI,
BPP_DOCUMENT_FORMAT_MAX_ENUM
} bpp_docu_format_enum;
typedef enum
{
ONE_SIDED,
TWO_SIDED_LONG_EDGE,
TWO_SIDED_SHORT_EDGE,
BPP_SIDED_MAX_ENUM
} bpp_sided_enum;
typedef enum
{
PORTRAIT,
LANDSCAPE,
REVERSE_PORTRAIT,
REVERSE_LANDSCAPE,
BPP_ORIENTATION_MAX_ENUM
} bpp_orientation_enum;
typedef enum
{
QUALITY_DRAFT,
QUALITY_NORMAL,
QUALITY_HIGHT,
BPP_QUALITY_MAX_ENUM
} bpp_print_quality_enum;
typedef enum
{
ONE_PAGE_PEER_SHEET = 1,
TWO_PAGE_PEER_SHEET = 2,
FOUR_PAGE_PEER_SHEET = 4,
BPP_NUMBERUP_MAX_ENUM
} bpp_numberup_enum;
typedef enum
{
BPP_ATTR_PRINTERNAME,
BPP_ATTR_PRINTERLOCATION,
BPP_ATTR_PRINTERSTATE,
BPP_ATTR_PRINTERSTATEREASONS,
BPP_ATTR_PRINTERGENERALCURRENTOPERATOR,
BPP_ATTR_DOCUMENTFORMATSSUPPORTED,
BPP_ATTR_IMAGEFORMATSSUPPORTED,
BPP_ATTR_COLORSUPPORTED,
BPP_ATTR_MAXCOPIESSUPPORTED,
BPP_ATTR_SIDESSUPPORTED,
BPP_ATTR_NUMBERUPSUPPORTED,
BPP_ATTR_ORIENTATIONSSUPPORTED,
BPP_ATTR_MEDIASIZESSUPPORTED,
BPP_ATTR_MEDIATYPESSUPPORTED,
BPP_ATTR_MEDIALOADED,
BPP_ATTR_PRINTQUALITYSUPPORTED,
BPP_ATTR_QUEUEDJOBCOUNT,
BPP_ATTR_OPERATIONSTATUS,
BPP_ATTR_MAX_ATTRIBUTE
} bpp_attribute_enum;
typedef enum
{
MEDIA_TYPE_STATIONERY,
MEDIA_TYPE_STATIONERY_COATED,
MEDIA_TYPE_STATIONERY_INKJET,
MEDIA_TYPE_STATIONERY_PREPRINTED,
MEDIA_TYPE_STATIONERY_LETTERHEAD,
MEDIA_TYPE_STATIONERY_PREPUNCHED,
MEDIA_TYPE_STATIONERY_FINE,
MEDIA_TYPE_STATIONERY_HEAVYWEIGHT,
MEDIA_TYPE_STATIONERY_LIGHTWEIGHT,
MEDIA_TYPE_TRANSPARENCY,
MEDIA_TYPE_ENVELOPE,
MEDIA_TYPE_ENVELOPE_PLAIN,
MEDIA_TYPE_ENVELOPE_WINDOW,
MEDIA_TYPE_CONTINUOUS,
MEDIA_TYPE_CONTINUOUS_LONG,
MEDIA_TYPE_CONTINUOUS_SHORT,
MEDIA_TYPE_TAB_STOCK,
MEDIA_TYPE_PRE_CUT_TABS,
MEDIA_TYPE_FULL_CUT_TABS,
MEDIA_TYPE_MULTI_PART_FORM,
MEDIA_TYPE_LABELS,
MEDIA_TYPE_MULTI_LAYER,
MEDIA_TYPE_SCREEN,
MEDIA_TYPE_SCREEN_PAGED,
MEDIA_TYPE_PHOTOGRAPHIC,
MEDIA_TYPE_PHOTOGRAPHIC_GLOSSY,
MEDIA_TYPE_PHOTOGRAPHIC_HIGH_GLOSS,
MEDIA_TYPE_PHOTOGRAPHIC_SEMI_GLOSS,
MEDIA_TYPE_PHOTOGRAPHIC_SATIN,
MEDIA_TYPE_PHOTOGRAPHIC_MATTE,
MEDIA_TYPE_PHOTOGRAPHIC_FILM,
MEDIA_TYPE_BACK_PRINT_FILM,
MEDIA_TYPE_CARDSTOCK,
MEDIA_TYPE_ROLL,
BPP_MEDIA_TYPE_MAX_ENUM
} bpp_media_type_enum;
typedef enum
{
BPP_MEDIA_SIZE_A10,
BPP_MEDIA_SIZE_A9,
BPP_MEDIA_SIZE_A8,
BPP_MEDIA_SIZE_A7,
BPP_MEDIA_SIZE_A6,
BPP_MEDIA_SIZE_A5,
BPP_MEDIA_SIZE_A5_EXTRA,
BPP_MEDIA_SIZE_A4,
BPP_MEDIA_SIZE_A4_TAB,
BPP_MEDIA_SIZE_A4_EXTRA,
BPP_MEDIA_SIZE_A3,
BPP_MEDIA_SIZE_A2,
BPP_MEDIA_SIZE_A1,
BPP_MEDIA_SIZE_A0,
BPP_MEDIA_SIZE_2A0,
BPP_MEDIA_SIZE_B10,
BPP_MEDIA_SIZE_B9,
BPP_MEDIA_SIZE_B8,
BPP_MEDIA_SIZE_B7,
BPP_MEDIA_SIZE_B6,
BPP_MEDIA_SIZE_B6_C4,
BPP_MEDIA_SIZE_B5,
BPP_MEDIA_SIZE_B5_EXTRA,
BPP_MEDIA_SIZE_B4,
BPP_MEDIA_SIZE_B3,
BPP_MEDIA_SIZE_B2,
BPP_MEDIA_SIZE_B1,
BPP_MEDIA_SIZE_B0,
BPP_MEDIA_SIZE_C10,
BPP_MEDIA_SIZE_C9,
BPP_MEDIA_SIZE_C8,
BPP_MEDIA_SIZE_C7,
BPP_MEDIA_SIZE_C7_C6,
BPP_MEDIA_SIZE_C6,
BPP_MEDIA_SIZE_C6_C5,
BPP_MEDIA_SIZE_C5,
BPP_MEDIA_SIZE_C4,
BPP_MEDIA_SIZE_C3,
BPP_MEDIA_SIZE_C2,
BPP_MEDIA_SIZE_C1,
BPP_MEDIA_SIZE_C0,
BPP_MEDIA_SIZE_4X6_POSTCARD,
BPP_MEDIA_SIZE_LETTER,
BPP_MEIDA_SIZE_MAX_ENUM
} bpp_media_size_enum;
typedef enum
{
BPP_ADP_ERROR_LINK_DISC = -127,
BPP_ADP_ERROR_PEER_ABORT,
BPP_ADP_ERROR_USER_ABORT,
BPP_ADP_ERROR_CREATE_JOB_FAILED,
BPP_ADP_ERROR_SCO_REJECT,
BPP_ADP_ERROR_SERVICE_NOT_FOUND,
BPP_ADP_ERROR_INTERNAL_ERR,
BPP_ADP_ERROR_DEVICE_BUSY,
BPP_ADP_ERROR_DISC_STATUS_FIRST,
BPP_ADP_ERROR_INVALID_PARAM,
BPP_ADP_ERROR = -1,
BPP_ADP_SUCCESS = 0,
BPP_ADP_PENDING
} BPP_ADP_ERROR_CODE;
typedef enum
{
BPP_SIMPLE_PUSH_PRINT,
BPP_JOB_BASE_DEFAULT_PRINT, /* use default attribute */
BPP_JOB_BASE_NOT_DEFAULT_PRINT
} bpp_mode_enum;
#endif /* __BT_BPP_PROFILE__ */
/**** End of BPP Enum ****/
/**** Start of BIP Enum ****/
typedef enum
{
BT_BIP_IMAGE_PUSH = 0x01,
BT_BIP_IMAGE_PULL = 0x02,
BT_BIP_ADVANCED_PRINTING = 0x04,
BT_BIP_REMOTE_CAMERA = 0x08,
BT_BIP_AUTO_ARCHIVE = 0x10,
BT_BIP_REMOTE_DISPLAY = 0x20
} bt_bip_service_enum;
typedef enum
{
BT_BIP_CNF_SUCCESS = 0x70,
BT_BIP_CNF_FAILED,
BT_BIP_PARTIAL_CONTENT,
BT_BIP_XML_GEN_FAIL,
BT_BIP_FILE_OPEN_FAIL,
BT_BIP_FILE_READ_FAIL,
BT_BIP_FILE_WRITE_FAIL,
BT_BIP_FILE_MOVE_FAIL,
BT_BIP_INVALID_PARM,
BT_BIP_DISK_FULL,
BT_BIP_ROOT_DIR_FULL,
BT_BIP_FS_MEDIA_CHANGED,
BT_BIP_FS_DEVICE_BUSY,
BT_BIP_SCO_REJECT,
BT_BIP_BTCHIP_REJECT,
BT_BIP_XML_PARSE_FAIL,
BT_BIP_FS_QUOTA_FULL,
BT_BIP_DISCONNECTED,
BT_BIP_FS_WRITE_PROTECTION,
BT_BIP_DRM_NO_RIGHTS,
BT_BIP_LAST_CNF_CODE
} bt_bip_cnf_enum;
typedef enum
{
BT_BIP_IMG_TYPE_UNSUPPORT = 0x00000000,
BT_BIP_IMG_TYPE_JPEG = 0x00000001,
BT_BIP_IMG_TYPE_BMP = 0x00000002,
BT_BIP_IMG_TYPE_GIF = 0x00000004,
BT_BIP_IMG_TYPE_WBMP = 0x00000008,
BT_BIP_IMG_TYPE_PNG = 0x00000010
} bt_bip_img_format_enum;
/**** End of BIP Enum ****/
/* GOEP structure */
#define GOEP2MMI_MSG_COMM \
kal_uint8 ref_count; \
kal_uint16 msg_len; \
kal_uint8 uuid[GOEP_MAX_UUID_SIZE];\
kal_uint8 uuid_len;\
kal_uint8 goep_conn_id\
typedef struct
{
kal_uint32 lap;
kal_uint8 uap;
kal_uint16 nap;
} goep_bd_addr_struct;
typedef struct
{
GOEP2MMI_MSG_COMM;
}goep_2mmi_common_msg;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 uuid[GOEP_MAX_UUID_SIZE];
kal_uint8 uuid_len;
kal_uint8 req_id;
goep_tp_type_enum tp_type;
kal_bool need_auth;
kal_uint8 *buf_ptr;
kal_uint16 buf_size;
} goep_register_server_req_struct;
typedef struct
{
GOEP2MMI_MSG_COMM;
kal_uint8 req_id;
kal_uint8 rsp_code;
} goep_register_server_rsp_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 goep_conn_id;
} goep_deregister_server_req_struct;
typedef struct
{
GOEP2MMI_MSG_COMM;
goep_bd_addr_struct bd_addr;
kal_uint8 dev_name[GOEP_MAX_DEV_NAME];
} goep_authorize_ind_struct;
typedef struct
{
GOEP2MMI_MSG_COMM;
goep_bd_addr_struct bd_addr;
kal_uint8 dev_name[GOEP_MAX_DEV_NAME];
kal_uint16 peer_mru;
kal_uint32 cm_conn_id;
} goep_connect_ind_struct;
typedef struct
{
GOEP2MMI_MSG_COMM;
goep_pkt_type_enum pkt_type;
goep_put_type_enum put_type;
kal_uint32 total_obj_len;
kal_uint8 obj_name[GOEP_MAX_OBJ_NAME];
kal_uint8 obj_mime_type[GOEP_MAX_MIME_TYPE];
kal_uint8 *frag_ptr;
kal_uint16 frag_len;
} goep_push_ind_struct;
typedef struct
{
GOEP2MMI_MSG_COMM;
kal_uint8 obj_name[GOEP_MAX_OBJ_NAME];
kal_uint8 obj_mime_type[GOEP_MAX_MIME_TYPE];
goep_pkt_type_enum pkt_type;
} goep_pull_ind_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 goep_conn_id;
goep_pkt_type_enum pkt_type;
kal_uint8 rsp_code;
kal_uint8 obj_mime_type[GOEP_MAX_MIME_TYPE];
kal_uint32 total_obj_len;
kal_uint8 *frag_ptr;
kal_uint16 frag_len;
} goep_pull_res_struct;
typedef struct
{
GOEP2MMI_MSG_COMM;
kal_uint8 folder_name[GOEP_MAX_FOLDER_NAME];
goep_set_folder_type_enum setpath_flag;
} goep_set_folder_ind_struct;
typedef struct
{
GOEP2MMI_MSG_COMM;
} goep_abort_ind_struct;
typedef struct
{
GOEP2MMI_MSG_COMM;
kal_uint8 server_supported_formats;
} goep_opp_supported_formats_ind_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 uuid[GOEP_MAX_UUID_SIZE];
kal_uint8 uuid_len;
kal_uint8 req_id;
kal_uint8 goep_conn_id;
kal_uint8 passwd[GOEP_MAX_PASSWD_SIZE];
kal_uint8 passwd_len;
kal_uint8 realm_str[GOEP_MAX_REALM_SIZE];
kal_uint8 realm_len;
goep_role_enum goep_role;
} goep_auth_req_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 uuid[GOEP_MAX_UUID_SIZE];
kal_uint8 uuid_len;
kal_uint8 req_id;
goep_bd_addr_struct bd_addr;
goep_tp_type_enum tp_type;
kal_uint8 *buf_ptr;
kal_uint16 buf_size;
kal_bool auth_use;
kal_uint8 passwd[GOEP_MAX_PASSWD_SIZE];
kal_uint8 passwd_len;
kal_uint8 realm[GOEP_MAX_REALM_SIZE];
kal_uint8 realm_len;
} goep_connect_req_struct;
typedef struct
{
GOEP2MMI_MSG_COMM;
kal_uint8 req_id;
kal_uint8 rsp_code;
kal_uint16 peer_mru;
kal_uint32 cm_conn_id;
} goep_connect_rsp_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 goep_conn_id;
goep_pkt_type_enum pkt_type;
goep_put_type_enum put_type;
kal_uint8 obj_mime_type[GOEP_MAX_MIME_TYPE];
kal_uint32 total_obj_len;
kal_uint8 obj_name[GOEP_MAX_OBJ_NAME];
kal_uint8 *frag_ptr;
kal_uint16 frag_len;
} goep_push_req_struct;
typedef struct
{
GOEP2MMI_MSG_COMM;
kal_uint8 rsp_code;
kal_uint8 reason; /* failed reason. added for application */
} goep_push_rsp_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 goep_conn_id;
goep_pkt_type_enum pkt_type;
kal_uint8 obj_mime_type[GOEP_MAX_MIME_TYPE];
kal_uint8 obj_name[GOEP_MAX_OBJ_NAME];
} goep_pull_req_struct;
typedef struct
{
GOEP2MMI_MSG_COMM;
goep_pkt_type_enum pkt_type;
kal_uint8 rsp_code;
kal_uint32 total_obj_len;
kal_uint8 *frag_ptr;
kal_uint16 frag_len;
kal_bool to_self; /* added for continue parsing large folder content */
kal_uint8 reason; /* failed reason. added for application */
} goep_pull_rsp_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 goep_conn_id;
goep_set_folder_type_enum setpath_flag;
kal_uint8 folder_name[GOEP_MAX_FOLDER_NAME];
} goep_set_folder_req_struct;
typedef struct
{
GOEP2MMI_MSG_COMM;
kal_uint8 rsp_code;
kal_uint8 reason; /* failed reason. added for application */
} goep_set_folder_rsp_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 goep_conn_id;
} goep_abort_req_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 req_id;
kal_uint8 goep_conn_id;
} goep_disconnect_req_struct;
typedef struct
{
GOEP2MMI_MSG_COMM;
kal_uint8 rsp_code;
} goep_disconnect_rsp_struct;
typedef struct
{
GOEP2MMI_MSG_COMM;
kal_uint8 req_id;
} goep_disconnect_ind_struct;
typedef struct
{
GOEP2MMI_MSG_COMM;
kal_uint8 req_id;
kal_uint8 realm[GOEP_MAX_REALM_SIZE];
kal_uint8 realm_len;
kal_uint8 dev_name[GOEP_MAX_DEV_NAME];
goep_bd_addr_struct bd_addr;
} goep_auth_ind_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 goep_conn_id;
kal_uint8 passwd[GOEP_MAX_PASSWD_SIZE];
kal_uint8 passwd_len;
kal_uint8 userid[GOEP_MAX_USERID_SIZE];
kal_uint8 userid_len;
} goep_auth_res_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 uuid[GOEP_MAX_UUID_SIZE];
kal_uint8 uuid_len;
kal_uint8 goep_conn_id;
kal_uint8 rsp_code;
} goep_rsp_struct;
/**** BPP Structure ****/
#ifdef __BT_BPP_PROFILE__
/*****************************************************************
BPP MSG STRUCT
*******************************************************************/
typedef kal_int32 PRT_HANDLE;
typedef struct
{
kal_char special_char;
const kal_char *replace_str;
} bpp_xhtml_special_char_struct;
typedef struct
{
LOCAL_PARA_HDR
PRT_HANDLE hprinter;
} bt_bpp_common_ind_struct;
typedef struct
{
LOCAL_PARA_HDR
PRT_HANDLE hprinter;
kal_int32 ret;
} bt_bpp_common_ret_struct;
typedef struct
{
LOCAL_PARA_HDR
goep_bd_addr_struct add;
kal_int32 prt_handle;
} bt_bpp_open_req_struct;
typedef struct
{
LOCAL_PARA_HDR
PRT_HANDLE hprinter;
} bt_bpp_close_req_struct;
typedef struct
{
LOCAL_PARA_HDR
PRT_HANDLE hprinter;
kal_int32 ret;
goep_bd_addr_struct addr;
kal_uint32 cm_conn_id;
} bt_bpp_close_cnf_struct;
typedef struct
{
LOCAL_PARA_HDR
PRT_HANDLE hprinter;
kal_int32 ret;
goep_bd_addr_struct addr;
kal_uint32 cm_conn_id;
} bt_bpp_open_cnf_struct;
typedef struct
{
LOCAL_PARA_HDR
PRT_HANDLE hpriter;
WCHAR file_name[BPP_MAX_TMP_FILE_NAME];
kal_uint32 total_data_len;
bpp_mode_enum print_mode;
kal_char *pjob_name;
kal_char *puser_name;
kal_uint8 copies;
bpp_sided_enum side;
bpp_numberup_enum numberup;
bpp_orientation_enum orientation;
bpp_media_size_enum media_size;
bpp_print_quality_enum quality;
bpp_media_type_enum media_type;
} bt_bpp_print_doc_req_struct;
typedef struct
{
LOCAL_PARA_HDR
PRT_HANDLE hpriter;
kal_uint8 attr_req[BPP_ATTR_MAX_ATTRIBUTE];
} bt_bpp_get_attr_req_struct;
typedef struct
{
kal_uint32 copies;
kal_uint32 numberup;
kal_uint32 basictextpagewidth;
kal_uint32 basictextpageheight;
kal_uint8 doc_format[BPP_DOCUMENT_FORMAT_MAX_ENUM];
kal_uint8 sides[BPP_SIDED_MAX_ENUM];
kal_uint8 orientation[BPP_ORIENTATION_MAX_ENUM];
kal_uint8 media_size[BPP_MEIDA_SIZE_MAX_ENUM];
kal_uint8 media_type[BPP_MEDIA_TYPE_MAX_ENUM];
kal_uint8 quality[BPP_QUALITY_MAX_ENUM];
kal_uint8 imagetype[BPP_IMAGE_TYPE_MAX_ENUM];
} bt_bpp_prt_capability;
typedef struct
{
LOCAL_PARA_HDR
PRT_HANDLE hprinter;
kal_int32 ret;
kal_uint16 printer_state;
kal_uint16 state_reson;
bt_bpp_prt_capability capability;
} bt_bpp_get_attr_cnf_struct;
typedef struct
{
LOCAL_PARA_HDR
PRT_HANDLE hprinter;
kal_uint32 precent;
} bt_bpp_progress_ind_struct;
typedef struct
{
LOCAL_PARA_HDR
PRT_HANDLE hprinter;
bpp_printer_state_enum printer_state;
bpp_job_state_enum job_state;
kal_int16 state_reson;
} bt_bpp_job_state_ind_struct;
typedef struct
{
LOCAL_PARA_HDR
PRT_HANDLE hprinter;
goep_bd_addr_struct bt_addr;
kal_uint8 realm[GOEP_MAX_REALM_SIZE];
kal_uint16 realm_len;
} bt_bpp_authen_ind_struct;
typedef struct
{
LOCAL_PARA_HDR
PRT_HANDLE hprinter;
goep_bd_addr_struct bt_addr;
kal_bool cancel;
kal_uint8 passwd[GOEP_MAX_PASSWD_SIZE];
kal_uint16 passwd_len;
kal_uint8 userid[GOEP_MAX_USERID_SIZE];
kal_uint16 userid_len;
} bt_bpp_authen_rsp_struct;
typedef struct
{
LOCAL_PARA_HDR
PRT_HANDLE hprinter;
goep_bd_addr_struct addr;
kal_uint32 cm_conn_id;
} bt_bpp_disc_ind_struct;
typedef bt_bpp_common_ind_struct bt_bpp_common_req_struct;
typedef bt_bpp_common_ind_struct bt_bpp_common_rsp_struct;
typedef bt_bpp_common_rsp_struct bt_bpp_status_rsp_struct;
typedef bt_bpp_common_rsp_struct bt_bpp_progress_rsp_struct;
typedef bt_bpp_common_ret_struct bt_bpp_print_doc_cnf_struct;
#endif /* __BT_BPP_PROFILE__ */
/**** End of BPP Structure ****/
typedef goep_rsp_struct goep_deregister_server_rsp_struct;
typedef goep_rsp_struct goep_auth_rsp_struct;
typedef goep_rsp_struct goep_abort_rsp_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 goep_conn_id;
kal_uint8 rsp_code;
} goep_res_struct;
typedef goep_res_struct goep_authorize_res_struct;
typedef goep_res_struct goep_connect_res_struct;
typedef goep_res_struct goep_push_res_struct;
typedef goep_res_struct goep_set_folder_res_struct;
typedef goep_res_struct goep_abort_res_struct;
/* The following defined structs for SIM Access Profile (SAP) */
/* Bingyi 20091225: Move BT-SIM interface to SIM header files (APDU_REQ_MAX_LEN, APDU_RSP_MAX_LEN, ATR_MAX_LEN). */
/* SIM Card ID */
#define BT_SIM_CARD_ID_1 0x01
#define BT_SIM_CARD_ID_2 0x02
#define BT_SIM_CARD_ID_3 0x04
#define BT_SIM_CARD_ID_4 0x08
/* MSG_ID_BT_SIMAP_CONNECT_IND */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 cid; /* connection id */
kal_uint32 lap;
kal_uint8 uap;
kal_uint16 nap;
} bt_simap_connect_ind_struct;
/* MSG_ID_BT_SIMAP_DISCONNECT_IND */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 cid; /* connection id */
} bt_simap_disconnect_ind_struct;
/* MSG_ID_BT_SIMAP_DISCONNECT_CNF */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_bool result;
kal_uint8 cid; /* connection id */
} bt_simap_disconnect_cnf_struct;
/* MSG_ID_BT_SIMAP_DEACTIVATE_CNF */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_bool result;
} bt_simap_deactivate_cnf_struct;
/* MSG_ID_BT_SIMAP_AUTH_REQ */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 lap;
kal_uint8 uap;
kal_uint16 nap;
} bt_simap_auth_req_struct;
/* MSG_ID_BT_SIMAP_AUTH_RSP */
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_bool result;
#ifdef __GEMINI__
kal_uint8 sim_card_id; // Used SIM card ID; BT_SIM_CARD_ID_1 for SIM_1, BT_SIM_CARD_ID_2 for SIM_2
#endif
} bt_simap_auth_rsp_struct;
/* Bingyi 20091225: Move BT-SIM interface to SIM header files. */
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 result;
kal_uint32 handle;
} bt_app_sdpdb_get_handle_cnf_struct;
/* MSG_ID_BT_SDPDB_REGISTER_REQ */
typedef struct
{
LOCAL_PARA_HDR
kal_uint32 handle;
kal_uint8 type;
kal_uint8 *record_raw;
kal_uint16 record_raw_length;
kal_uint8 *attribs_buffer;
kal_uint16 attribs_buffer_size;
} bt_app_sdpdb_register_req_struct;
/* MSG_ID_BT_SDPDB_REGISTER_CNF */
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 result;
kal_uint32 handle;
} bt_app_sdpdb_register_cnf_struct;
/* MSG_ID_BT_SDPDB_DEREGISTER_REQ */
typedef struct
{
LOCAL_PARA_HDR
kal_uint32 handle;
} bt_app_sdpdb_deregister_req_struct;
/* MSG_ID_BT_SDPDB_DEREGISTER_CNF */
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 result;
kal_uint32 handle;
} bt_app_sdpdb_deregister_cnf_struct;
/* MSG_ID_BT_SDPDB_RETRIEVE_RECOED_REQ */
typedef struct
{
LOCAL_PARA_HDR
kal_uint32 handle;
} bt_app_sdpdb_retrieve_record_req_struct;
/* MSG_ID_BT_SDPDB_RETRIEVE_RECOED_CNF */
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 result;
kal_uint32 handle;
kal_uint8 *record;
kal_uint16 record_size;
} bt_app_sdpdb_retrieve_record_cnf_struct;
#define BTSDPDBAPP_SUCCESS (0)
#define BTSDPDBAPP_FAILED (1)
#define BTSDPDBAPP_SDP_REGISTER_FAILED (2)
#define BTSDPDBAPP_INVALID_HANDLE (3)
#define BTSDPDBAPP_SDP_DEREGISTER_FAILED (4)
#define BTSDPDBAPP_SDP_DDB_FULL (5)
#define BTSDPDBAPP_SDP_RECORD_SYNTAX_ERROR (6)
#define BTSDPDBAPP_SDP_RECORD_TOO_LARGE (7)
#define BTSDPDBAPP_SDP_RECORD_ATTRIBUTE_BUFFER_TOO_SMALL (8)
#define BT_APP_REGISTER_RECORD (0x01)
#define BT_APP_UPDATE_RECORD (0x02)
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 bd_addr[6];
kal_uint8 ps_type;
kal_uint16 mtu;
kal_uint16 channel;
kal_uint32 identify; /* Modify to uint32: 2007-0917 */
kal_uint8 security_value;
kal_uint8 *channel_context;
} bt_jsr82_connect_req_struct;
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 bd_addr[6];
kal_uint16 mtu;
kal_uint8 ps_type;
kal_uint16 channel;
kal_uint8 index;
kal_uint32 identify;
kal_uint16 l2cap_id;
kal_uint8 result;
} bt_jsr82_connect_cnf_struct;
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 ps_type;
kal_uint16 mtu;
kal_uint32 identify;
kal_uint8 security_value;
kal_uint8 *channel_context;
/* To support same channel number can be connected via different client devices on multiple MUX */
kal_uint16 existing_psm_chnl_num;
} bt_jsr82_enable_service_req_struct;
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 result;
kal_uint8 ps_type;
kal_uint16 channel;
kal_uint8 index; /* When the service is registered, the session_inx must be returned */
kal_uint32 identify;
} bt_jsr82_enable_service_cnf_struct;
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 index;
kal_uint8 ps_type;
kal_uint32 identify;
} bt_jsr82_turnon_service_req_struct;
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 index;
kal_uint8 ps_type;
kal_uint32 identify;
} bt_jsr82_turnoff_service_req_struct;
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 result;
kal_uint8 index;
kal_uint32 identify;
kal_uint8 ps_type;
} bt_jsr82_turnon_service_cnf_struct;
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 result;
kal_uint8 index;
kal_uint32 identify;
kal_uint8 ps_type;
} bt_jsr82_turnoff_service_cnf_struct;
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 index; /* Modified from identify to index: For Read and Write Procedure, only session_inx is needed 2007-0917 */
kal_uint32 identify;
} bt_jsr82_disable_service_req_struct;
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 result;
kal_uint8 ps_type;
kal_uint8 index;
kal_uint32 identify;
} bt_jsr82_disable_service_cnf_struct;
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 bd_addr[6];
kal_uint8 ps_type;
kal_uint16 mtu;
kal_uint16 channel;
kal_uint8 index;
kal_uint32 identify;
kal_uint8 friendly_name[BT_BIP_MAX_IMG_NAME_LEN];
kal_uint16 l2cap_id;
kal_uint8 rsp_result;
} bt_jsr82_connect_ind_struct;
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 bd_addr[6];
kal_uint8 ps_type;
kal_uint16 mtu;
kal_uint16 channel;
kal_uint8 index;
kal_uint32 identify;
kal_uint16 l2cap_id;
kal_uint8 result;
} bt_jsr82_connect_rsp_struct;
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 ps_type;
kal_uint8 index;
kal_uint32 identify;
kal_uint16 l2cap_id;
} bt_jsr82_disconnect_req_struct;
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 ps_type;
kal_uint32 identify;
kal_uint8 index; /* session_inx */
kal_uint16 l2cap_id;
} bt_jsr82_disconnect_ind_struct;
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 index; /* Modified from identify to index: For Read and Write Procedure, only session_inx is needed 2007-0917 */
kal_uint16 length;
kal_uint16 l2cap_id;
kal_uint8 *data;
} bt_jsr82_tx_data_req_struct;
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 index; /* Modified from identify to index: For Read and Write Procedure, only session_inx is needed 2007-0917 */
kal_uint16 l2cap_id;
kal_uint8 result;
} bt_jsr82_tx_data_cfn_struct;
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 index; /* index is con_id */
kal_uint16 length;
kal_uint16 l2cap_id;
kal_uint8 *data;
} bt_jsr82_rx_data_ind_struct;
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 index; /* Modified as session_index for RX operation : 2007-0917 */
kal_uint16 l2cap_id;
} bt_jsr82_tx_ready_ind_struct;
/* Add MSG_ID_BT_JSR82_RX_READY_IND */
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 index; /* Modified as session_index for RX operation : 2007-0917 */
kal_uint16 length;
kal_uint16 l2cap_id;
} bt_jsr82_rx_ready_ind_struct;
/* Add MSG_ID_BT_JSR82_SPP_GET_DATA_REQ */
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 index;
kal_uint32 identify;
kal_uint16 length;
kal_uint16 l2cap_id;
} bt_jsr82_spp_get_data_req_struct;
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 index;
kal_uint16 l2cap_id;
} bt_jsr82_rx_data_rsp_struct;
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 ps_type;
kal_uint8 index;
kal_uint16 l2cap_id;
kal_uint16 psm_chnl_num;
} bt_jsr82_allocate_txrx_buf_req_struct;
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 result;
kal_uint8 ps_type;
kal_uint8 index;
kal_uint16 l2cap_id;
kal_uint16 psm_chnl_num;
} bt_jsr82_allocate_txrx_buf_cnf_struct;
typedef struct
{
LOCAL_PARA_HDR
kal_uint32 transaction_id;
kal_uint8 bd_addr[6];
kal_uint8 security_mode;
} bt_jsr82_set_acl_security_req_struct;
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 result;
kal_uint32 transaction_id;
kal_uint8 bdAddr[6];
} bt_jsr82_set_acl_security_cnf_struct;
/**** Start of BIP Structure ****/
typedef enum
{
BT_BIP_NULL,
BT_BIP_INITIATOR_ROLE,
BT_BIP_RESPONDER_ROLE
} bt_bip_session_role_enum;
typedef struct
{
bt_bip_img_format_enum encoding;
kal_bool define_pixel_with_range;
kal_uint16 max_pixel_width;
kal_uint16 min_pixel_width;
kal_uint16 max_pixel_height;
kal_uint16 min_pixel_height;
kal_uint16 specified_pixel_width;
kal_uint16 specified_pixel_height;
kal_uint8 img_handle[8];
kal_uint8 friendly_name[BT_BIP_MAX_IMG_NAME_LEN];
kal_uint32 size;
kal_uint8 created[BT_BIP_MAX_TIME_LEN]; /* (YYYYMMDDTHHMMSS)(Z) */
kal_uint8 modified[BT_BIP_MAX_TIME_LEN]; /* (YYYYMMDDTHHMMSS)(Z) */
} bt_bip_img_info_struct;
typedef goep_bd_addr_struct bt_bip_bd_addr_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 req_id;
bt_bip_bd_addr_struct bd_addr;
bt_bip_service_enum bip_service;
} bt_bip_connect_req_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 req_id;
kal_uint8 cnf_code;
kal_uint32 cm_conn_id;
} bt_bip_connect_cnf_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
} bt_bip_get_capabilities_req_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
kal_uint8 cnf_code;
bt_bip_img_format_enum supported_img_formats[BT_BIP_MAX_IMG_FORMATS];
bt_bip_img_format_enum preferred_format;
kal_bool created_time_filter;
kal_bool modified_time_filter;
kal_bool encoding_filter;
kal_bool pixel_filter;
} bt_bip_get_capabilities_cnf_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
kal_uint16 img_path[BT_BIP_MAX_PATH_LEN];
kal_uint8 img_name[BT_BIP_MAX_IMG_NAME_LEN];
kal_uint32 img_size;
bt_bip_img_info_struct img_descriptor;
} bt_bip_put_img_req_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
kal_uint8 img_handle[BT_BIP_IMG_HANDLE_LEN];
kal_uint8 cnf_code;
} bt_bip_put_img_cnf_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
kal_uint16 img_path[BT_BIP_MAX_PATH_LEN];
kal_uint8 img_handle[BT_BIP_IMG_HANDLE_LEN];
} bt_bip_put_linked_thumbnail_req_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
kal_uint8 cnf_code;
} bt_bip_put_linked_thumbnail_cnf_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
bt_bip_img_info_struct img_list_descriptor;
kal_uint16 max_img_handle_number;
kal_uint16 start_index;
kal_bool latest_captured;
} bt_bip_get_img_list_req_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
kal_uint16 img_list_path[BT_BIP_MAX_PATH_LEN];
kal_uint16 img_count;
kal_uint8 cnf_code;
} bt_bip_get_img_list_cnf_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
kal_uint8 img_handle[BT_BIP_IMG_HANDLE_LEN];
} bt_bip_get_img_prop_req_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
bt_bip_img_info_struct native_img;
bt_bip_img_info_struct *variant_img_p;
bt_bip_img_info_struct *attachment_p;
kal_uint8 cnf_code;
} bt_bip_get_img_prop_cnf_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
kal_uint16 img_path[BT_BIP_MAX_PATH_LEN];
kal_uint8 img_handle[BT_BIP_IMG_HANDLE_LEN];
bt_bip_img_info_struct img_descriptor;
} bt_bip_get_img_req_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
kal_uint8 cnf_code;
kal_uint32 data_len;
} bt_bip_get_img_cnf_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
kal_uint16 img_path[BT_BIP_MAX_PATH_LEN];
kal_uint8 img_handle[BT_BIP_IMG_HANDLE_LEN];
} bt_bip_get_linked_thumbnail_req_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
kal_uint8 cnf_code;
} bt_bip_get_linked_thumbnail_cnf_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
kal_uint16 img_path[BT_BIP_MAX_PATH_LEN];
kal_uint8 store_flag;
} bt_bip_get_monitoring_img_req_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
kal_uint8 cnf_code;
} bt_bip_get_monitoring_img_cnf_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
} bt_bip_abort_req_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
kal_uint8 cnf_code;
} bt_bip_abort_cnf_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 req_id;
kal_uint8 bip_service_set;
} bt_bip_activate_req_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 req_id;
kal_uint8 cnf_code;
} bt_bip_activate_cnf_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 req_id;
kal_uint8 bip_service_set;
} bt_bip_deactivate_req_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 req_id;
kal_uint8 cnf_code;
} bt_bip_deactivate_cnf_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
bt_bip_bd_addr_struct bd_addr;
kal_uint8 dev_name[BT_BIP_MAX_DEV_NAME_LEN];
} bt_bip_authorize_ind_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 cnf_code;
} bt_bip_authorize_rsp_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
bt_bip_bd_addr_struct bd_addr;
kal_uint8 dev_name[BT_BIP_MAX_DEV_NAME_LEN];
} bt_bip_connect_ind_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
kal_uint8 cnf_code;
} bt_bip_connect_rsp_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
} bt_bip_get_capabilities_ind_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
kal_uint8 cnf_code;
bt_bip_img_format_enum supported_img_formats[BT_BIP_MAX_IMG_FORMATS];
bt_bip_img_format_enum preferred_format;
kal_bool created_time_filter;
kal_bool modified_time_filter;
kal_bool encoding_filter;
kal_bool pixel_filter;
} bt_bip_get_capabilities_rsp_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
kal_uint8 img_name[BT_BIP_MAX_IMG_NAME_LEN];
kal_uint32 img_size;
bt_bip_img_info_struct img_descriptor;
kal_bool r_last_pkt;
} bt_bip_put_img_ind_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
kal_uint16 img_path[BT_BIP_MAX_PATH_LEN]; /* checked done */
kal_uint8 img_handle[BT_BIP_IMG_HANDLE_LEN];
kal_uint8 cnf_code;
} bt_bip_put_img_rsp_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
kal_uint8 img_handle[BT_BIP_IMG_HANDLE_LEN];
kal_bool r_last_pkt;
} bt_bip_put_linked_thumbnail_ind_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
kal_uint16 img_path[BT_BIP_MAX_PATH_LEN]; /* checked done */
kal_uint8 cnf_code;
} bt_bip_put_linked_thumbnail_rsp_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
bt_bip_img_info_struct img_list_descriptor;
kal_uint16 max_img_handle_number;
kal_uint16 start_index;
kal_bool latest_captured;
} bt_bip_get_img_list_ind_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
kal_uint16 img_list_path[BT_BIP_MAX_PATH_LEN];
kal_uint16 img_count;
kal_uint8 cnf_code;
} bt_bip_get_img_list_rsp_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
kal_uint8 img_handle[BT_BIP_IMG_HANDLE_LEN];
} bt_bip_get_img_prop_ind_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
kal_uint8 img_handle[BT_BIP_IMG_HANDLE_LEN];
bt_bip_img_info_struct native_img;
bt_bip_img_info_struct *variant_img_p;
bt_bip_img_info_struct *attachment_p;
kal_uint8 cnf_code;
} bt_bip_get_img_prop_rsp_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
kal_uint8 img_handle[BT_BIP_IMG_HANDLE_LEN];
bt_bip_img_info_struct img_descriptor;
} bt_bip_get_img_ind_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
kal_uint16 img_path[BT_BIP_MAX_PATH_LEN];
kal_uint8 img_handle[BT_BIP_IMG_HANDLE_LEN];
kal_uint8 cnf_code;
} bt_bip_get_img_rsp_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
kal_uint8 img_handle[BT_BIP_IMG_HANDLE_LEN];
} bt_bip_get_linked_thumbnail_ind_struct;
/*
* typedef struct
* {
* kal_uint8 ref_count;
* kal_uint16 msg_len;
* kal_uint32 cm_conn_id;
* kal_uint8 cnf_code;
* kal_uint16 thumbnail_path[BT_BIP_MAX_PATH_LEN];
* } bt_bip_get_linked_thumbnail_rsp_struct;
*/
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
kal_uint8 store_flag;
} bt_bip_get_monitoring_img_ind_struct;
/*
* typedef struct
* {
* kal_uint8 ref_count;
* kal_uint16 msg_len;
* kal_uint32 cm_conn_id;
* kal_uint8 cnf_code;
* kal_uint16 img_path[BT_BIP_MAX_PATH_LEN];
* kal_uint8 img_handle[BT_BIP_IMG_HANDLE_LEN];
* } bt_bip_get_monitoring_img_rsp_struct;
*/
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
kal_uint8 ind_code;
} bt_bip_abort_ind_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
} bt_bip_complete_ind_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
kal_uint32 obj_len;
kal_uint32 data_len;
kal_bool r_last_pkt;
} bt_bip_continue_ind_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
kal_uint8 cnf_code;
} bt_bip_continue_rsp_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 req_id;
kal_uint32 cm_conn_id;
kal_bool disconnect_tp_directly;
bt_bip_session_role_enum session_role;
} bt_bip_disconnect_req_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
bt_bip_session_role_enum session_role;
} bt_bip_disconnect_ind_struct;
typedef struct
{
kal_uint8 img_handle[BT_BIP_IMG_HANDLE_LEN];
kal_uint8 created[BT_BIP_MAX_TIME_LEN]; /* (YYYYMMDDTHHMMSS)(Z) */
kal_uint8 modified[BT_BIP_MAX_TIME_LEN]; /* (YYYYMMDDTHHMMSS)(Z) */
} bt_bip_img_min_info_struct;
typedef bt_bip_get_img_rsp_struct bt_bip_get_linked_thumbnail_rsp_struct;
typedef bt_bip_get_img_rsp_struct bt_bip_get_monitoring_img_rsp_struct;
/**** End of BIP Structure ****/
/* for OBEX authentication */
typedef struct
{
kal_uint8 uuid[GOEP_MAX_UUID_SIZE];
kal_uint8 uuid_len;
kal_uint8 passwd[GOEP_MAX_PASSWD_SIZE];
kal_uint8 passwd_len;
kal_uint8 realm_str[GOEP_MAX_REALM_SIZE];
kal_uint8 realm_len;
} auth_chal_struct;
typedef kal_uint8(*AUTH_IND_HANDLER) (goep_auth_ind_struct *auth_ind);
struct auth_ind_handler_struct
{
kal_uint8 uuid[GOEP_MAX_UUID_SIZE];
kal_uint8 uuid_len;
AUTH_IND_HANDLER auth_ind_handler;
struct auth_ind_handler_struct *next;
};
typedef struct auth_ind_handler_struct auth_ind_handler_struct;
/* END for OBEX authentication */
/* csj */
/* struct used by pbap */
/*#if defined(__BT_PBAP_NEW_PROFILE__) || defined(__MMI_PBAP_NEW_SUPPORT__) */
#if defined(__BT_PBAP_PROFILE__) || defined(__BT_PBAP_CLIENT__)
#define PBAP_FILTER_SIZE 8
#define BT_PBAP_MAX_DEV_NAME_LEN 80
#define PBAP_INVALID_COUNT 0xFFFF
typedef struct _PbapVcardFilter
{
/* Array of 8 bytes for this 64-bit filter value */
kal_uint8 byte[PBAP_FILTER_SIZE];
} PbapVcardFilter;
typedef kal_uint8 PbapVcardFormat;
#define VCARD_FORMAT_21 0x00 /* Version 2.1 format */
#define VCARD_FORMAT_30 0x01 /* Version 3.0 format */
/*SearchAttributes*/
#define PBAP_SEARCH_ATTRIB_NAME 0x00 /* Search by Name */
#define PBAP_SEARCH_ATTRIB_NUMBER 0x01 /* Search by Number */
#define PBAP_SEARCH_ATTRIB_SOUND 0x02 /* Search by Sound */
/*vcard sort order in listing*/
#define PBAP_SORT_ORDER_INDEXED 0x00 /* Indexed sorting */
#define PBAP_SORT_ORDER_ALPHA 0x01 /* Alphabetical sorting */
#define PBAP_SORT_ORDER_PHONETICAL 0x02 /* Phonetical sorting */
/*---------------------------------------------------------------------------
* PB_MAX_NAME_LEN constant
*
* Maximum number of characters allowed for pathnames + 1 (null-
* terminating character).
*/
#define PBAP_MAX_NAME_LEN 128
#define MAX_PBAP_SEARCH_VALUE_LENGTH PBAP_MAX_NAME_LEN
#define MAX_PBAP_CLIENT_SEARCH_VALUE_LENGTH 32
/* PBAP MAX length of file path */
#define BT_PBAP_MAX_FILEPATH_NAME_LEN 256
/*---------------------------------------------------------------------------
* PbStatus type
*
* This type is returned from most phonebook APIs to indicate the success
* or failure of the operation. In many cases, BT_STATUS_PENDING
* is returned, meaning that a future callback will indicate the
* result of the operation.
*/
typedef kal_uint8 PbStatus;
#define PB_STATUS_SUCCESS 0 /* XA_STATUS_SUCCESS */
#define PB_STATUS_FAILED 1 /* XA_STATUS_FAILED */
#define PB_STATUS_NO_RESOURCES 12 /* XA_STATUS_NO_RESOURCES */
#define PB_STATUS_NOT_FOUND 13 /* XA_STATUS_NOT_FOUND */
#define PB_STATUS_UNKNOWN_REMOTE 14 /* XA_STATUS_DEVICE_NOT_FOUND */
#define PB_STATUS_INUSE 5 /* XA_STATUS_IN_USE */
#define PB_STATUS_NOT_SUPPORTED 23 /* XA_STATUS_NOT_SUPPORTED */
#define PB_STATUS_PENDING 2 /* XA_STATUS_PENDING */
/* End of PbStatus */
typedef kal_uint8 PbapRespCode;
/* Group: Successful response codes */
#define PBRC_CONTINUE 0x10 /* Continue */
#define PBRC_STATUS_SUCCESS 0x20 /* Success */
/* Group: Failure response codes */
#define PBRC_BAD_REQUEST 0x40 /* Bad Request */
#define PBRC_UNAUTHORIZED 0x41 /* Unauthorized */
#define PBRC_FORBIDDEN 0x43 /* Forbidden - operation is understood */
#define PBRC_NOT_FOUND 0x44 /* Not Found */
#define PBRC_NOT_ACCEPTABLE 0x46 /* Not Acceptable */
#define PBRC_PRECONDITION_FAILED 0x4c /* Precondition Failed */
#define PBRC_NOT_IMPLEMENTED 0x51 /* Not Implemented */
#define PBRC_SERVICE_UNAVAILABLE 0x53 /* Service Unavailable */
#define PBRC_LINK_DISCONNECT 0x80 /* Transport connection has been disconnected. */
#define PBRC_INTERNAL_SERVER_ERR 0x50 /* OBRC_INTERNAL_SERVER_ERR */
/* End of PbapRespCode */
#define PBAP_ADP_WORK_FOLDER (L"Z:\\@pbap\\")
#define PBAP_ADP_FOLDER_FILE (L"Z:\\@pbap\\folder.tmp")
#define PBAP_ADP_LIST_FILE (L"Z:\\@pbap\\list.tmp")
#define PBAP_ADP_ENTRY_FILE (L"Z:\\@pbap\\entry.tmp")
/*---------------------------------------------------------------------------
* PbapAppParmsTag type
*
* Describes the tag values used in the Application Parameters OBEX header
* that are used on both the Phonebook Access client and server side.
*/
typedef kal_uint8 PbapAppParmsTag;
#define PBAP_TAG_ORDER 0x01 /* 1-byte, 0x00 (indexed), 0x01 (alpha), or 0x02 (phonetic) */
#define PBAP_TAG_SEARCH_VALUE 0x02 /* Variable length text string */
#define PBAP_TAG_SEARCH_ATTRIB 0x03 /* 1-byte, 0x00 (Name), 0x01 (Number), or 0x02 (Sound) */
#define PBAP_TAG_MAX_LIST_COUNT 0x04 /* 2-bytes, 0x0000 to 0xFFFF */
#define PBAP_TAG_LIST_OFFSET 0x05 /* 2-bytes, 0x0000 to 0xFFFF */
#define PBAP_TAG_FILTER 0x06 /* 8-bytes, 64 bit mask */
#define PBAP_TAG_FORMAT 0x07 /* 1-byte, 0x00 = 2.1, 0x01 = 3.0 */
#define PBAP_TAG_PHONEBOOK_SIZE 0x08 /* 2-bytes, 0x0000 to 0xFFFF */
#define PBAP_TAG_MISSED_CALLS 0x09 /* 1-byte, 0x00 to 0xFF */
/* End of PbapAppParmsTag */
/*---------------------------------------------------------------------------
* pbap_set_folder_type_enum type
*
* Flags used in the SetFolder operation. PBAP specification requires
* that the PBAP_SETPB_DONT_CREATE flag is always set.
*/
typedef enum
{
PBAP_FORWARD_FOLDER = 0,
PBAP_BACK_FOLDER,
PBAP_ROOT_FOLDER
} pbap_set_folder_type_enum;
typedef enum
{
PBAP_CNF_SUCCESS,
PBAP_CNF_FAILED,
PBAP_CNF_TOTAL
} bt_pbap_cnf_enum;
typedef goep_bd_addr_struct bt_pbap_bd_addr_struct;
#endif /* defined(__BT_PBAP_PROFILE__) || defined(__BT_PBAP_CLIENT__) */
#ifdef __BT_PBAP_PROFILE__
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 security_level;
} bt_pbap_register_req_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 register_result;
} bt_pbap_register_rsp_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
} bt_pbap_deregister_req_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 register_result;
} bt_pbap_deregister_rsp_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
} bt_pbap_abort_ind_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
} bt_pbap_disconnect_ind_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
bt_pbap_bd_addr_struct bd_addr;
kal_uint8 dev_name[BT_PBAP_MAX_DEV_NAME_LEN];
} bt_pbap_authorize_ind_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 cnf_code;
} bt_pbap_authorize_rsp_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
bt_pbap_bd_addr_struct bd_addr;
kal_uint8 dev_name[BT_PBAP_MAX_DEV_NAME_LEN];
} bt_pbap_connect_ind_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
kal_bool disconnect_tp_directly;
} bt_pbap_disconnect_req_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
} bt_pbap_disconnect_rsp_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint32 cm_conn_id;
kal_uint8 cnf_code;
} bt_pbap_connect_rsp_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 dev_name[BT_PBAP_MAX_DEV_NAME_LEN];
} bt_pbap_auth_ind_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 cancel;
/* OBEX Authentication password */
kal_uint8 password[20];
/* OBEX Authentication userId */
kal_uint8 userId[20];
/* OBEX Authentication realm */
kal_uint8 realm[20];
} bt_pbap_auth_cnf_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
pbap_set_folder_type_enum type;
kal_uint16 name[PBAP_MAX_NAME_LEN/2 + 1];
} bt_pbap_set_path_ind_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 result;
} bt_pbap_set_path_rsp_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint16 objectName[PBAP_MAX_NAME_LEN/2 + 1]; /* (*.vcf) */
PbapVcardFilter filter;
PbapVcardFormat format;
} bt_pbap_read_entry_ind_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 result; /* PBSTATUS */
} bt_pbap_read_entry_rsp_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint16 pbName[PBAP_MAX_NAME_LEN/2 + 1];
PbapVcardFilter filter;
PbapVcardFormat format;
kal_uint16 maxListCount;
kal_uint16 listStartOffset;
kal_uint8 to_self;
} bt_pbap_read_folder_ind_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint16 folderName[PBAP_MAX_NAME_LEN/2 + 1];
kal_uint8 searchAttribute;
kal_uint8 searchValue[MAX_PBAP_SEARCH_VALUE_LENGTH + 1];
kal_uint8 searchValueLength;
kal_uint8 order;
kal_uint16 maxListCount;
kal_uint16 listStartOffset;
kal_uint8 to_self;
} bt_pbap_read_list_ind_struct;
typedef struct
{
kal_uint8 ref_count;
kal_uint16 msg_len;
kal_uint8 result;
kal_uint16 phoneBookSize; /*0xFFFF indicates have only data*/
kal_uint16 newMissedCalls; /*0xFFFF indicates the type is not MCH*/
} bt_pbap_read_rsp_struct;
typedef bt_pbap_read_rsp_struct bt_pbap_read_folder_rsp_struct;
typedef bt_pbap_read_rsp_struct bt_pbap_read_list_rsp_struct;
#endif /* __BT_PBAP_PROFILE__ */
#ifdef __BT_PBAP_CLIENT__
/*--------------------------- Begin of the PBAP Client ------------------*/
/*------------------------------------------------------------------------
* For PBAP Client
* Add for the PCE Role of BT dialer(MTK 54345, 2012.11 ~ 2012.12)
*-----------------------------------------------------------------------*/
#ifndef PBAP_MAX_PASSWORD_LEN
#define PBAP_MAX_PASSWORD_LEN 20
#endif
#ifndef PBAP_MAX_USERID_LEN
#define PBAP_MAX_USERID_LEN 20
#endif
#ifndef FHANDLE
typedef signed int FHANDLE;
#endif /* FHANDLE */
#ifndef FHANDLE_INVALID_VALUE
#define FHANDLE_INVALID_VALUE -10
#endif /* FHANDLE_INVALID_VALUE */
/* Puplic Data Structures */
typedef enum
{
PBAPC_REQ_NONE,
PBAPC_REQ_ENABLE,
PBAPC_REQ_DISABLE,
PBAPC_REQ_CONNECT,
PBAPC_REQ_SET_PATH,
PBAPC_REQ_PULL_ENTRY,
PBAPC_REQ_PULL_LIST,
PBAPC_REQ_PULL_PB,
PBAPC_REQ_ABORT,
PBAPC_REQ_DISCONNECT,
PBAPC_REQ_LAST
} bt_pbapc_request_type;
typedef enum
{
PBAP_STATE_IDLE,
PBAP_STATE_TP_CONNECTING,
PBAP_STATE_OBEX_CONNECTING,
PBAP_STATE_CONNECTED,
PBAP_STATE_PULLING,
PBAP_STATE_SETTING_PATH,
PBAP_STATE_DISCONNECTING,
PBAP_STATE_MAX
} bt_pbap_conn_state;
/* Activate the PCE */
typedef struct
{
LOCAL_PARA_HDR
} bt_pbapc_enable_req_struct;
typedef struct
{
LOCAL_PARA_HDR
bt_pbap_cnf_enum register_result;
} bt_pbapc_enable_cnf_struct;
/* Deactivate the PCE */
typedef struct
{
LOCAL_PARA_HDR
} bt_pbapc_disable_req_struct;
typedef struct
{
LOCAL_PARA_HDR
bt_pbap_cnf_enum deregister_result;
} bt_pbapc_disable_cnf_struct;
/* PCE Connect Request */
typedef struct
{
LOCAL_PARA_HDR
bt_pbap_bd_addr_struct bd_addr;/* local bt device address(lap, uap, nap) */
} bt_pbapc_connect_req_struct;
typedef struct
{
LOCAL_PARA_HDR
/* allocated during the connection establishmen to indicate the connection */
kal_uint32 cm_conn_id;
bt_pbap_cnf_enum cnf_code;
} bt_pbapc_connect_cnf_struct;
/* Client Disconnect confirmation(Confirmation of disconnect indication and request) */
typedef struct
{
LOCAL_PARA_HDR
bt_pbap_cnf_enum cnf_code;
} bt_pbapc_disconnect_cnf_struct;
/* Client Disconnect Indication */
typedef struct
{
LOCAL_PARA_HDR
}bt_pbapc_disconnect_ind_struct;
typedef struct
{
LOCAL_PARA_HDR
bt_pbap_cnf_enum cnf_code;
} bt_pbapc_abort_cnf_struct;
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 cancel;
/* OBEX Authentication password */
kal_uint8 password[PBAP_MAX_PASSWORD_LEN];
/* OBEX Authentication userId */
kal_uint8 userId[PBAP_MAX_USERID_LEN];
} bt_pbapc_auth_challenge_rsp_struct;
typedef struct
{
LOCAL_PARA_HDR
/*don't use the following two paramters now please */
kal_uint8 dev_name[BT_PBAP_MAX_DEV_NAME_LEN]; /* UTF8 zero-terminated string */
kal_uint8 auth_option;
} bt_pbapc_auth_challenge_ind_struct;
/* PCE SetPath Request(SetPhoneBook) */
typedef struct
{
LOCAL_PARA_HDR
pbap_set_folder_type_enum type; /* Forward, Back or Root folder */
/* Maximum number of characters allowed for pathnames + 1 (null-
* terminating character */
kal_uint8 name[PBAP_MAX_NAME_LEN/2+1];
} bt_pbapc_set_path_req_struct;
typedef struct
{
LOCAL_PARA_HDR
bt_pbap_cnf_enum cnf_code;
} bt_pbapc_set_path_cnf_struct;
/* PCE get vCard Request(PullvCardEntry) */
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 pbap_data_file[BT_PBAP_MAX_FILEPATH_NAME_LEN]; // UCS-2
kal_uint8 objectName[PBAP_MAX_NAME_LEN/2+1]; // UCS-2
PbapVcardFilter filter;
PbapVcardFormat format;
} bt_pbapc_read_entry_req_struct;
typedef struct
{
LOCAL_PARA_HDR
bt_pbap_cnf_enum cnf_code;
} bt_pbapc_read_entry_cnf_struct;
/* PCE get vCard Listing(PullvCardListing) */
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 pbap_data_file[BT_PBAP_MAX_FILEPATH_NAME_LEN]; // UCS-2
kal_uint8 folderName[PBAP_MAX_NAME_LEN/2+1]; // UCS-2
kal_uint8 searchAttribute;
kal_uint8 searchValue[MAX_PBAP_CLIENT_SEARCH_VALUE_LENGTH + 1]; // UTF-8
kal_uint8 searchValueLength;
kal_uint8 order;
kal_uint16 maxListCount;
kal_uint16 listStartOffset;
} bt_pbapc_read_list_req_struct;
typedef struct
{
LOCAL_PARA_HDR
bt_pbap_cnf_enum cnf_code;
kal_uint16 phoneBookSize; /*0xFFFF indicates have only data*/
kal_uint16 newMissedCalls; /*0xFFFF indicates the type is not MCH*/
} bt_pbapc_read_list_cnf_struct;
/* PCE get PhoneBook(PullPhoneBook) */
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 pbap_data_file[BT_PBAP_MAX_FILEPATH_NAME_LEN]; // UCS-2
kal_uint8 folderName[PBAP_MAX_NAME_LEN/2+1]; // UCS-2
PbapVcardFilter filter;
PbapVcardFormat format;
kal_uint16 maxListCount;
kal_uint16 listStartOffset;
} bt_pbapc_read_folder_req_struct;
typedef struct
{
LOCAL_PARA_HDR
bt_pbap_cnf_enum cnf_code;
kal_uint16 phoneBookSize; /*0xFFFF indicates have only data*/
kal_uint16 newMissedCalls; /*0xFFFF indicates the type is not MCH*/
} bt_pbapc_read_folder_cnf_struct;
#define PBAPC_ADP_WORK_FOLDER L"Z:\\@pbapc\\"
#define PBAPC_ADP_FOLDER_FILE L"Z:\\@pbapc\\folder.tmp"
#define PBAPC_ADP_LIST_FILE L"Z:\\@pbapc\\list.tmp"
#define PBAPC_ADP_ENTRY_FILE L"Z:\\@pbapc\\entry.tmp"
/*--------------------------- end of the PBAP Client --------------------*/
#endif /* __BT_PBAP_PROFILE__ */
/*----------------------- Begin of the MAP Client -----------------------*/
/*------------------------------------------------------------------------
* For MAP Client
* Add for the MCE Role of BT dialer(MTK 54345, 2012.11 ~ 2012.12)
*-----------------------------------------------------------------------*/
#define BT_MAP_MAX_DEV_NAME_LEN 80
#define BT_MAP_MAX_FOLDER_NAME_LEN 256
#define BT_MAP_MAX_PATH_NAME_LEN 512
#define BT_MAP_MAX_TEMP_FILE_NAME_LEN 160
#define BT_MAP_MAX_DATE_STR_LEN 16
#define BT_MAP_MAX_DATETIME_STR_LEN 20
#define BT_MAP_MAX_CONTACT_STR_LEN 80
#define BT_MAP_MAX_HANDLE_STR_LEN 32
#define MAP_MAX_HANDLE_STR_UCS2_LEN 64
typedef enum
{
BT_MAP_MSG_NONE = 0x0,
BT_MAP_MSG_SMS_GSM = 0x1,
BT_MAP_MSG_SMS_CDMA = 0x2,
BT_MAP_MSG_EMAIL = 0x4,
BT_MAP_MSG_MMS = 0x8,
BT_MAP_MSG_END
} bt_map_msg_enum;
typedef enum
{
BT_MAP_FOLDER_OP_ROOT, /* set to root folder */
BT_MAP_FOLDER_OP_NEXT, /* set to peer folder ex. cd ../xxx */
BT_MAP_FOLDER_OP_DOWN, /* set to child folder */
BT_MAP_FOLDER_OP_UP, /* set to parent folder */
BT_MAP_FOLDER_OP_END
} bt_map_folder_op_enum;
typedef enum
{
BT_MAP_SUCCESS = 0,
BT_MAP_FAIL = 1,
BT_MAP_FAIL_BUSY = 2,
BT_MAP_FAIL_NOT_FOUND = 3,
BT_MAP_FAIL_NOT_SUPPORT = 4,
BT_MAP_FAIL_FORBIDDEN = 5,
BT_MAP_FAIL_TIMEOUT = 6,
BT_MAP_FAIL_NO_RESOURCE = 7,
BT_MAP_FAIL_UNAUTHORIZED = 8,
BT_MAP_FAIL_BAD_FORMAT = 9,
BT_MAP_FAIL_INVALID_PARAMETER = 10,
BT_MAP_FAIL_BAD_STATE = 11,
BT_MAP_FAIL_STORAGE_FULL = 12,
BT_MAP_RESULT_END
} bt_map_result_enum;
typedef enum
{
BT_MAP_MSGLIST_MASK_NONE = 0x0000,
BT_MAP_MSGLIST_MASK_SUBJECT = 0x0001, /* REQUIRED */
BT_MAP_MSGLIST_MASK_DATETIME = 0x0002, /* REQUIRED */
BT_MAP_MSGLIST_MASK_SENDER_N = 0x0004,
BT_MAP_MSGLIST_MASK_SENDER_ADDR = 0x0008,
BT_MAP_MSGLIST_MASK_REC_N = 0x0010,
BT_MAP_MSGLIST_MASK_REC_ADDR = 0x0020, /* REQUIRED */
BT_MAP_MSGLIST_MASK_TYPE = 0x0040, /* REQUIRED */
BT_MAP_MSGLIST_MASK_SIZE = 0x0080, /* REQUIRED */
BT_MAP_MSGLIST_MASK_REC_STATUS = 0x0100, /* REQUIRED */
BT_MAP_MSGLIST_MASK_TEXT = 0x0200, /* default: no */
BT_MAP_MSGLIST_MASK_ATTACH_SIZE = 0x0400, /* REQUIRED */
BT_MAP_MSGLIST_MASK_PRIO = 0x0800, /* default: no */
BT_MAP_MSGLIST_MASK_READ = 0x1000, /* default: no */
BT_MAP_MSGLIST_MASK_SENT = 0x2000, /* default: no */
BT_MAP_MSGLIST_MASK_DRM = 0x4000, /* default: no */
BT_MAP_MSGLIST_MASK_REPLY_ADDR = 0x8000,
BT_MAP_MSGLIST_MASK_ALL = 0xFFFF
} bt_map_msg_list_mask_enum;
typedef enum
{
BT_MAP_FILTER_MSG_SMS_GSM = 0x1,
BT_MAP_FILTER_MSG_SMS_CDMA = 0x2,
BT_MAP_FILTER_MSG_EMAIL = 0x4,
BT_MAP_FILTER_MSG_MMS = 0x8
} bt_map_filter_msg_enum;
typedef enum
{
BT_MAP_FILTER_STATUS_ALL = 0x0, /* no-filtering, get both ready and unready messages */
BT_MAP_FILTER_STATUS_UNREAD = 0x1, /* get unread message only */
BT_MAP_FILTER_STATUS_READ = 0x2 /* get read status only */
} bt_map_filter_status_enum;
typedef enum
{
BT_MAP_FILTER_PRIO_ALL = 0x0, /* no-filtering */
BT_MAP_FILTER_PRIO_HIGH = 0x1, /* get high priority message only */
BT_MAP_FILTER_PRIO_NOT_HIGH = 0x2 /* get non-high priority message only */
} bt_map_filter_prio_enum;
typedef enum
{
BT_MAP_CHARSET_NATIVE = 0x0,
BT_MAP_CHARSET_UTF8 = 0x1
} bt_map_charset_enum;
typedef enum
{
BT_MAP_FRACTION_REQ_FIRST = 0x0,
BT_MAP_FRACTION_REQ_NEXT = 0x1,
BT_MAP_FRACTION_REQ_NO
} bt_map_fraction_req_enum;
typedef enum
{
BT_MAP_FRACTION_RSP_MORE = 0x0,
BT_MAP_FRACTION_RSP_LAST = 0x1,
BT_MAP_FRACTION_RSP_NO
} bt_map_fraction_rsp_enum;
typedef enum
{
BT_MAP_MSG_STATUS_READ = 0x0,
BT_MAP_MSG_STATUS_UNREAD = 0x1,
BT_MAP_MSG_STATUS_DELETE = 0x2,
BT_MAP_MSG_STATUS_UNDELETE
} bt_map_msg_status_enum;
typedef enum
{
BT_MAP_SAVE_AND_SENT,
BT_MAP_SENT
} bt_map_sent_op_enum;
/* Activate the MCE */
typedef struct
{
LOCAL_PARA_HDR
bt_map_result_enum result;
} bt_mapc_activate_cnf_struct;
/* Deactive the MCE */
typedef struct
{
LOCAL_PARA_HDR
bt_map_result_enum result;
} bt_mapc_deactivate_cnf_struct;
typedef goep_bd_addr_struct bt_map_addr_struct;
typedef struct
{
LOCAL_PARA_HDR
bt_map_addr_struct addr;
kal_uint8 mas_id; /* Range 0~255 */
} bt_mapc_connect_req_struct;
typedef struct
{
LOCAL_PARA_HDR
bt_map_addr_struct addr;
kal_uint8 dev_name[BT_MAP_MAX_DEV_NAME_LEN + 1]; /* UTF8 zero-terminated string */
} bt_mapc_mns_authorize_ind_struct;
typedef struct
{
LOCAL_PARA_HDR
kal_bool accept; /* TRUE: accept, FALSE: reject */
bt_map_addr_struct addr;
} bt_mapc_mns_authorize_rsp_struct;
typedef struct
{
LOCAL_PARA_HDR
bt_map_result_enum result;
bt_map_addr_struct addr;
kal_uint8 mas_id; /* Range 0~255 */
kal_uint8 dev_name[BT_MAP_MAX_DEV_NAME_LEN + 1]; /* UTF8 zero-terminated string */
} bt_mapc_connect_cnf_struct;
/* MCE sends the gracefully disconnect request */
typedef struct
{
LOCAL_PARA_HDR
bt_map_addr_struct addr;
kal_uint8 mas_id; /* Range 0~255 */
} bt_mapc_disconnect_req_struct;
typedef struct
{
LOCAL_PARA_HDR
bt_map_result_enum result;
bt_map_addr_struct addr;
kal_uint8 mas_id; /* Range 0~255 */
} bt_mapc_disconnect_cnf_struct;
/* MCE receives the disconnect indication */
typedef struct
{
LOCAL_PARA_HDR
bt_map_addr_struct addr;
kal_uint8 mas_id; /* Range 0~255 */
} bt_mapc_disconnect_ind_struct;
/* MCE sends the forcibly disconnect request */
typedef struct
{
LOCAL_PARA_HDR
bt_map_addr_struct addr;
} bt_mapc_mns_disconnect_req_struct;
typedef struct
{
LOCAL_PARA_HDR
bt_map_result_enum result;
bt_map_addr_struct addr;
} bt_mapc_mns_disconnect_cnf_struct;
/* MCE sends the SetFolder request */
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 mas_id; /* Range 0~255 */
bt_map_addr_struct addr;
bt_map_folder_op_enum flag;
kal_uint8 folder[BT_MAP_MAX_FOLDER_NAME_LEN + 2]; /* UCS2, null terminated, only used when NEXT and DOWN */
} bt_mapc_set_folder_req_struct;
typedef struct
{
LOCAL_PARA_HDR
bt_map_result_enum result;
kal_uint8 mas_id; /* Range 0~255 */
bt_map_addr_struct addr;
} bt_mapc_set_folder_cnf_struct;
/* Get the floder listing size */
typedef struct
{
LOCAL_PARA_HDR
bt_map_addr_struct addr;
kal_uint8 mas_id; /* Range 0~255 */
} bt_mapc_get_folder_listing_size_req_struct;
typedef struct
{
LOCAL_PARA_HDR
bt_map_result_enum result;
bt_map_addr_struct addr;
kal_uint8 mas_id; /* Range 0~255 */
kal_uint16 list_size;
} bt_mapc_get_folder_listing_size_cnf_struct;
/* Get the folder listing request*/
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 mas_id; /* Range 0~255 */
bt_map_addr_struct addr;
kal_uint16 list_size;
kal_uint16 list_offset;
} bt_mapc_get_folder_listing_req_struct;
typedef struct
{
LOCAL_PARA_HDR
bt_map_result_enum result;
kal_uint8 mas_id; /* Range 0~255 */
bt_map_addr_struct addr;
kal_uint16 list_size;
kal_uint16 data_size;
kal_uint8 file[BT_MAP_MAX_TEMP_FILE_NAME_LEN + 2]; /* UCS2, null terminated */
} bt_mapc_get_folder_listing_cnf_struct;
/* Get the message listing size */
typedef struct
{
LOCAL_PARA_HDR
bt_map_addr_struct addr;
kal_uint8 mas_id; /* Range 0~255 */
kal_uint8 child_folder[BT_MAP_MAX_FOLDER_NAME_LEN + 2]; /* UCS2, null terminated, empty if current folder */
} bt_mapc_get_message_listing_size_req_struct;
typedef struct
{
LOCAL_PARA_HDR
bt_map_result_enum result;
bt_map_addr_struct addr;
kal_uint8 mas_id; /* Range 0~255 */
kal_uint16 list_size;
kal_bool unread;
kal_uint8 datetime[BT_MAP_MAX_DATETIME_STR_LEN + 1]; /* UTF8, zero-terminated string */
} bt_mapc_get_message_listing_size_cnf_struct;
/* Get the message listing */
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 mas_id; /* Range 0~255 */
bt_map_addr_struct addr;
kal_uint8 child_folder[BT_MAP_MAX_FOLDER_NAME_LEN + 2];/* UCS2, null terminated, empty if current folder */
kal_uint16 list_size;
kal_uint16 list_offset;
kal_uint8 max_subject_len; /* Range 1~255 */
kal_uint32 mask;
kal_uint8 filter_msg;
kal_uint8 filter_begin[BT_MAP_MAX_DATE_STR_LEN + 1];/* UTF8 zero-terminated string */
kal_uint8 filter_end[BT_MAP_MAX_DATE_STR_LEN + 1]; /* UTF8 zero-terminated string */
bt_map_filter_status_enum filter_status;
kal_uint8 filter_rec[BT_MAP_MAX_CONTACT_STR_LEN]; /* UTF8 zero-terminated string */
kal_uint8 filter_orig[BT_MAP_MAX_CONTACT_STR_LEN]; /* UTF8 zero-terminated string */
bt_map_filter_prio_enum filter_prio;
} bt_mapc_get_message_listing_req_struct;
typedef struct
{
LOCAL_PARA_HDR
bt_map_result_enum result;
kal_uint8 mas_id; /* Range 0~255 */
bt_map_addr_struct addr;
kal_bool unread; /* TRUE: unread, FALSE: read */
kal_uint8 datetime[BT_MAP_MAX_DATETIME_STR_LEN + 1];/* UTF8, zero-terminated string */
kal_uint16 list_size;
kal_uint16 data_size;
kal_uint8 file[BT_MAP_MAX_TEMP_FILE_NAME_LEN + 2];/* UCS2, null terminated */
} bt_mapc_get_message_listing_cnf_struct;
/* Get message request */
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 mas_id; /* Range 0~255 */
bt_map_addr_struct addr;
kal_uint8 handle[MAP_MAX_HANDLE_STR_UCS2_LEN + 2]; /* UCS2, null terminated */
kal_bool attachment; /* TRUE: has attachment, FALSE: no attachment */
bt_map_charset_enum charset;
bt_map_fraction_req_enum fraction_req;
} bt_mapc_get_message_req_struct;
typedef struct
{
LOCAL_PARA_HDR
bt_map_result_enum result;
kal_uint8 mas_id; /* Range 0~255 */
bt_map_addr_struct addr;
bt_map_fraction_rsp_enum fraction_rsp;
kal_uint16 data_size;
kal_uint8 file[BT_MAP_MAX_TEMP_FILE_NAME_LEN + 2]; /* UCS2, null terminated */
} bt_mapc_get_message_cnf_struct;
/* Set notification registration request */
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 mas_id; /* Range 0~255 */
bt_map_addr_struct addr;
kal_bool on; /* TRUE: on, FALSE: off */
} bt_mapc_set_notify_registration_req_struct;
typedef struct
{
LOCAL_PARA_HDR
bt_map_result_enum result;
kal_uint8 mas_id; /* Range 0~255 */
bt_map_addr_struct addr;
} bt_mapc_set_notify_registration_cnf_struct;
/* Set message status */
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 mas_id; /* Range 0~255 */
bt_map_addr_struct addr;
kal_uint8 handle[MAP_MAX_HANDLE_STR_UCS2_LEN + 2]; /* UCS2, null terminated */
bt_map_msg_status_enum status;
} bt_mapc_set_message_status_req_struct;
typedef struct
{
LOCAL_PARA_HDR
bt_map_result_enum result;
kal_uint8 mas_id; /* Range 0~255 */
bt_map_addr_struct addr;
} bt_mapc_set_message_status_cnf_struct;
/* Push the message to the MSE */
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 mas_id; /* Range 0~255 */
bt_map_addr_struct addr;
kal_uint8 child_folder[BT_MAP_MAX_FOLDER_NAME_LEN + 2]; /* UCS2, null terminated, empty if current folder */
bt_map_sent_op_enum sent_op;
kal_bool retry; /* FALSE: no retry, TRUE: retry */
bt_map_charset_enum charset;
kal_uint8 file[BT_MAP_MAX_TEMP_FILE_NAME_LEN + 2]; /* UCS2, null terminated */
kal_uint16 data_size;
} bt_mapc_push_message_req_struct;
typedef struct
{
LOCAL_PARA_HDR
bt_map_result_enum result;
kal_uint8 mas_id; /* Range 0~255 */
bt_map_addr_struct addr;
kal_uint8 handle[MAP_MAX_HANDLE_STR_UCS2_LEN + 2]; /* UCS2 , null terminated */
} bt_mapc_push_message_cnf_struct;
/* Update the input inbox */
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 mas_id; /* Range 0~255 */
bt_map_addr_struct addr;
} bt_mapc_update_inbox_req_struct;
typedef struct
{
LOCAL_PARA_HDR
bt_map_result_enum result;
kal_uint8 mas_id; /* Range 0~255 */
bt_map_addr_struct addr;
} bt_mapc_update_inbox_cnf_struct;
/* MCE sends the Abort request */
typedef struct
{
LOCAL_PARA_HDR
bt_map_addr_struct addr;
kal_uint8 mas_id; /* Range 0~255 */
} bt_mapc_abort_req_struct;
typedef struct
{
LOCAL_PARA_HDR
bt_map_result_enum result;
bt_map_addr_struct addr;
kal_uint8 mas_id; /* Range 0~255 */
} bt_mapc_abort_cnf_struct;
/* MCE receive the MSE notification event */
typedef struct
{
LOCAL_PARA_HDR
kal_uint8 mas_id; /* Range 0~255 */
bt_map_addr_struct addr;
kal_uint16 data_size;
kal_uint8 file[BT_MAP_MAX_TEMP_FILE_NAME_LEN + 2]; /* UCS2, null terminated */
} bt_mapc_mns_send_event_ind_struct;
typedef struct
{
LOCAL_PARA_HDR
bt_map_result_enum result;
kal_uint8 mas_id; /* Range 0~255 */
bt_map_addr_struct addr;
} bt_mapc_mns_send_event_rsp_struct;
/*------------------------- End of the MAP Client -----------------------*/
#endif /* __BLUETOOTH_STRUCT_H_ */