|
1 /** |
|
2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * Internal interface and structures for sending vendor specific frames |
|
16 * and receiving associated events |
|
17 * |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 |
|
23 /** |
|
24 @publishedPartner |
|
25 @released |
|
26 */ |
|
27 |
|
28 #ifndef __VENDORSPECIFIC_H__ |
|
29 #define __VENDORSPECIFIC_H__ |
|
30 |
|
31 #include <e32std.h> |
|
32 #include <bluetooth/hci/hcitypes.h> |
|
33 |
|
34 #include <bluetooth/hci/hciconsts.h> |
|
35 #include <bluetooth/hci/hciframe.h> |
|
36 |
|
37 // |
|
38 // Vendor specific ioctl values |
|
39 // |
|
40 static const TUint KHCIWriteVendorSpecificFrameIoctl = 28; |
|
41 //writes a command to hci and completes on command complete event |
|
42 static const TUint KHCIWriteVendorSpecificFrameNoEventExpectedIoctl = 29; |
|
43 //writes a command to hci and completes immediately |
|
44 static const TUint KHCIWaitForVendorSpecificDebugEventIoctl = 32; |
|
45 //waits for a vendor debug event before completion |
|
46 |
|
47 // |
|
48 // Baseband SAP type for a vendor specific SAP |
|
49 // |
|
50 static const TUint KSockBluetoothTypeVendorSpecific = KMaxTUint - 3; |
|
51 |
|
52 struct THCIWriteVendorSpecificFrameIoctl |
|
53 /** |
|
54 * Structure for writing a vendor-specific frame to |
|
55 * the host controller. Specify the OCF required |
|
56 * along with an OGF of KVendorDebugOGF in iOpcode |
|
57 * and the correctly formatted parameters in iParams |
|
58 * |
|
59 * Use with KHCIWriteVendorSpecificFrameIoctl |
|
60 * |
|
61 * @publishedPartner |
|
62 * @released |
|
63 */ |
|
64 { |
|
65 THCIOpcode iOpcode; |
|
66 TBuf8<CHctlCommandFrame::KHCIMaxCommandLength> iParams; |
|
67 }; |
|
68 |
|
69 // |
|
70 // Package for sending a THCIWriteVendorSpecificFrameIoctl via IPC |
|
71 // |
|
72 typedef TPckgBuf<THCIWriteVendorSpecificFrameIoctl> THCIWriteVendorSpecificFrameBuf; |
|
73 |
|
74 #endif //__VENDORSPECIFIC_H__ |