|
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalComponent |
|
19 */ |
|
20 |
|
21 #ifndef L2CAPDEBUGINFO_H |
|
22 #define L2CAPDEBUGINFO_H |
|
23 |
|
24 #include <e32base.h> |
|
25 |
|
26 // L2CAP DEBUG P&S |
|
27 const TUint KUidBluetoothDebugPubSubKeyBase = 0x10272368; // Range of 550 values registered |
|
28 |
|
29 // L2CAP debug P&S keys. |
|
30 const TUint KPropertyKeyBluetoothL2CapDebugBase = (KUidBluetoothDebugPubSubKeyBase + 0); |
|
31 |
|
32 const TUint KPropertyKeyBluetoothBasePDUAlloc = (KUidBluetoothDebugPubSubKeyBase + 0x00); |
|
33 const TUint KPropertyKeyBluetoothBasePDUDel = (KUidBluetoothDebugPubSubKeyBase + 0x01); |
|
34 const TUint KPropertyKeyBluetoothBasePDUPeak = (KUidBluetoothDebugPubSubKeyBase + 0x02); |
|
35 |
|
36 const TUint KPropertyKeyBluetoothBFrameAlloc = (KUidBluetoothDebugPubSubKeyBase + 0x10); |
|
37 const TUint KPropertyKeyBluetoothBFrameDel = (KUidBluetoothDebugPubSubKeyBase + 0x11); |
|
38 const TUint KPropertyKeyBluetoothBFramePeak = (KUidBluetoothDebugPubSubKeyBase + 0x12); |
|
39 const TUint KPropertyKeyBluetoothIFrameAlloc = (KUidBluetoothDebugPubSubKeyBase + 0x20); |
|
40 const TUint KPropertyKeyBluetoothIFrameDel = (KUidBluetoothDebugPubSubKeyBase + 0x21); |
|
41 const TUint KPropertyKeyBluetoothIFramePeak = (KUidBluetoothDebugPubSubKeyBase + 0x22); |
|
42 const TUint KPropertyKeyBluetoothSFrameAlloc = (KUidBluetoothDebugPubSubKeyBase + 0x30); |
|
43 const TUint KPropertyKeyBluetoothSFrameDel = (KUidBluetoothDebugPubSubKeyBase + 0x31); |
|
44 const TUint KPropertyKeyBluetoothSFramePeak = (KUidBluetoothDebugPubSubKeyBase + 0x32); |
|
45 const TUint KPropertyKeyBluetoothCFrameAlloc = (KUidBluetoothDebugPubSubKeyBase + 0x40); |
|
46 const TUint KPropertyKeyBluetoothCFrameDel = (KUidBluetoothDebugPubSubKeyBase + 0x41); |
|
47 const TUint KPropertyKeyBluetoothCFramePeak = (KUidBluetoothDebugPubSubKeyBase + 0x42); |
|
48 const TUint KPropertyKeyBluetoothGFrameAlloc = (KUidBluetoothDebugPubSubKeyBase + 0x50); |
|
49 const TUint KPropertyKeyBluetoothGFrameDel = (KUidBluetoothDebugPubSubKeyBase + 0x51); |
|
50 const TUint KPropertyKeyBluetoothGFramePeak = (KUidBluetoothDebugPubSubKeyBase + 0x52); |
|
51 const TUint KPropertyKeyBluetoothDataFrameAlloc = (KUidBluetoothDebugPubSubKeyBase + 0x60); |
|
52 const TUint KPropertyKeyBluetoothDataFrameDel = (KUidBluetoothDebugPubSubKeyBase + 0x61); |
|
53 const TUint KPropertyKeyBluetoothDataFramePeak = (KUidBluetoothDebugPubSubKeyBase + 0x62); |
|
54 const TUint KPropertyKeyBluetoothFragFrameAlloc = (KUidBluetoothDebugPubSubKeyBase + 0x70); |
|
55 const TUint KPropertyKeyBluetoothFragFrameDel = (KUidBluetoothDebugPubSubKeyBase + 0x71); |
|
56 const TUint KPropertyKeyBluetoothFragFramePeak = (KUidBluetoothDebugPubSubKeyBase + 0x72); |
|
57 |
|
58 const TUint KPropertyKeyBluetoothSDUAlloc = (KUidBluetoothDebugPubSubKeyBase + 0x80); |
|
59 const TUint KPropertyKeyBluetoothSDUDel = (KUidBluetoothDebugPubSubKeyBase + 0x81); |
|
60 const TUint KPropertyKeyBluetoothSDUPeak = (KUidBluetoothDebugPubSubKeyBase + 0x82); |
|
61 |
|
62 const TUint KPropertyKeyBluetoothMuxerAlloc = (KUidBluetoothDebugPubSubKeyBase + 0x90); |
|
63 const TUint KPropertyKeyBluetoothMuxerDel = (KUidBluetoothDebugPubSubKeyBase + 0x91); |
|
64 const TUint KPropertyKeyBluetoothMuxerPeak = (KUidBluetoothDebugPubSubKeyBase + 0x92); |
|
65 |
|
66 const TUint KPropertyKeyBluetoothLSAPAlloc = (KUidBluetoothDebugPubSubKeyBase + 0xa0); |
|
67 const TUint KPropertyKeyBluetoothLSAPDel = (KUidBluetoothDebugPubSubKeyBase + 0xa1); |
|
68 const TUint KPropertyKeyBluetoothLSAPPeak = (KUidBluetoothDebugPubSubKeyBase + 0xa2); |
|
69 |
|
70 const TUint KPropertyKeyBluetoothASAPAlloc = (KUidBluetoothDebugPubSubKeyBase + 0xb0); |
|
71 const TUint KPropertyKeyBluetoothASAPDel = (KUidBluetoothDebugPubSubKeyBase + 0xb1); |
|
72 const TUint KPropertyKeyBluetoothASAPPeak = (KUidBluetoothDebugPubSubKeyBase + 0xb2); |
|
73 |
|
74 const TUint KPropertyKeyBluetoothPSAPAlloc = (KUidBluetoothDebugPubSubKeyBase + 0xc0); |
|
75 const TUint KPropertyKeyBluetoothPSAPDel = (KUidBluetoothDebugPubSubKeyBase + 0xc1); |
|
76 const TUint KPropertyKeyBluetoothPSAPPeak = (KUidBluetoothDebugPubSubKeyBase + 0xc2); |
|
77 |
|
78 const TUint KPropertyKeyBluetoothCommandAlloc = (KUidBluetoothDebugPubSubKeyBase + 0xd0); |
|
79 const TUint KPropertyKeyBluetoothCommandDel = (KUidBluetoothDebugPubSubKeyBase + 0xd1); |
|
80 const TUint KPropertyKeyBluetoothCommandPeak = (KUidBluetoothDebugPubSubKeyBase + 0xd2); |
|
81 |
|
82 const TUint KPropertyKeyBluetoothL2DBGGetTimerGrpCID = (KUidBluetoothDebugPubSubKeyBase + 0x100); |
|
83 const TUint KPropertyKeyBluetoothL2DBGSetTimerGrpCID = (KUidBluetoothDebugPubSubKeyBase + 0x101); |
|
84 |
|
85 const TUint KPropertyKeyBluetoothL2DBGMinPDUGetTime = (KUidBluetoothDebugPubSubKeyBase + 0x110); |
|
86 const TUint KPropertyKeyBluetoothL2DBGMaxPDUGetTime = (KUidBluetoothDebugPubSubKeyBase + 0x111); |
|
87 |
|
88 const TUint KPropertyKeyBluetoothL2DBGMinPDUSentTime = (KUidBluetoothDebugPubSubKeyBase + 0x112); |
|
89 const TUint KPropertyKeyBluetoothL2DBGMaxPDUSentTime = (KUidBluetoothDebugPubSubKeyBase + 0x113); |
|
90 |
|
91 const TUint KPropertyKeyBluetoothL2DBGAvePDUGetTime = (KUidBluetoothDebugPubSubKeyBase + 0x114); |
|
92 const TUint KPropertyKeyBluetoothL2DBGAvePDUSentTime = (KUidBluetoothDebugPubSubKeyBase + 0x115); |
|
93 |
|
94 |
|
95 const TUint KPropertyKeyBluetoothQueuedSDUFlushedCounter = (KUidBluetoothDebugPubSubKeyBase + 0x200); |
|
96 const TUint KPropertyKeyBluetoothPartialSentSDUFlushedCounter = (KUidBluetoothDebugPubSubKeyBase + 0x201); |
|
97 const TUint KPropertyKeyBluetoothSentSDUFlushedCounter = (KUidBluetoothDebugPubSubKeyBase + 0x202); |
|
98 const TUint KPropertyKeyBluetoothFlushedPDUMuxerResend = (KUidBluetoothDebugPubSubKeyBase + 0x203); |
|
99 const TUint KPropertyKeyBluetoothFlushedPDUDataFlowResend = (KUidBluetoothDebugPubSubKeyBase + 0x204); |
|
100 const TUint KPropertyKeyBluetoothFlushedPDUIFrame = (KUidBluetoothDebugPubSubKeyBase + 0x205); |
|
101 const TUint KPropertyKeyBluetoothIncompleteErroredSDUReceived = (KUidBluetoothDebugPubSubKeyBase + 0x206); |
|
102 |
|
103 namespace L2capDebugInfo |
|
104 { |
|
105 enum TAllocationType |
|
106 { |
|
107 EAllocated = 0, |
|
108 EDeleted, |
|
109 EPeak, |
|
110 EMaxAllocationType, |
|
111 }; |
|
112 |
|
113 enum TObjectType |
|
114 { |
|
115 EBasePDU = 0, |
|
116 EBFrame, |
|
117 EIFrame, |
|
118 ESFrame, |
|
119 ECFrame, |
|
120 EGFrame, |
|
121 EDataFrame, |
|
122 EFragFrame, |
|
123 ESDU, |
|
124 EMuxes, |
|
125 ESAP, |
|
126 ESigHandlers, |
|
127 EDataPlanes, |
|
128 EL2CapCommand, |
|
129 EMaxType, |
|
130 }; |
|
131 |
|
132 enum TPDUTimerEvent |
|
133 { |
|
134 EBFrameCreated, |
|
135 EUnsegmentedFrameCreated, |
|
136 EIFrameCreated, |
|
137 EGetPDUCalled, |
|
138 EPDUSent, |
|
139 }; |
|
140 |
|
141 enum TFlushCountersEvent |
|
142 { |
|
143 ESDUFlushQueuedSDUFlushed, |
|
144 ESDUFlushPartialSentSDUFlushed, |
|
145 ESDUFlushSentSDUFlushed, |
|
146 EFlushedPDUMuxerResend, |
|
147 EFlushedPDUDataFlowResend, |
|
148 EFlushedPDUIFrame, |
|
149 EIncompleteErroredSDUReceived, |
|
150 }; |
|
151 } |
|
152 |
|
153 #endif |