|
1 // Copyright (c) 2007-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 the License "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 #ifndef D32OTGDI_ERRORS_H |
|
17 #define D32OTGDI_ERRORS_H |
|
18 |
|
19 #ifndef __KERNEL_MODE__ |
|
20 #include <e32std.h> |
|
21 #else |
|
22 #include <kernel/kernel.h> |
|
23 #endif |
|
24 |
|
25 /** |
|
26 @file |
|
27 @publishedPartner |
|
28 @prototype |
|
29 */ |
|
30 |
|
31 /** |
|
32 The messages which indicate problem conditions are reported as a based set |
|
33 of numbers derived from the basic USB+Host set (-6670 -> -6699) |
|
34 */ |
|
35 const TInt KErrUsbOtgEventQueueOverflow = -6670; |
|
36 const TInt KErrUsbOtgStateQueueOverflow = -6671; |
|
37 const TInt KErrUsbOtgMessageQueueOverflow = -6672; |
|
38 |
|
39 const TInt KErrUsbOtgBadState = -6675; |
|
40 |
|
41 const TInt KErrUsbOtgStackNotStarted = -6680; |
|
42 const TInt KErrUsbOtgVbusAlreadyRaised = -6681; |
|
43 const TInt KErrUsbOtgSrpForbidden = -6682; |
|
44 |
|
45 const TInt KErrUsbOtgHnpNotResponding = -6683; |
|
46 const TInt KErrUsbOtgHnpBusDrop = -6684; |
|
47 |
|
48 const TInt KErrUsbOtgBusControlProblem = -6685; |
|
49 |
|
50 const TInt KErrUsbOtgVbusPowerUpError = -6686; |
|
51 |
|
52 const TInt KErrUsbOtgHnpEnableProblem = -6687; |
|
53 const TInt KErrUsbOtgPeriphNotSupported = -6688; |
|
54 |
|
55 const TInt KErrUsbOtgVbusError = -6690; |
|
56 const TInt KErrUsbOtgSrpTimeout = -6691; |
|
57 const TInt KErrUsbOtgSrpActive = -6692; |
|
58 const TInt KErrUsbOtgSrpNotPermitted = -6693; |
|
59 const TInt KErrUsbOtgHnpNotPermitted = -6694; |
|
60 const TInt KErrUsbOtgHnpNotEnabled = -6695; |
|
61 const TInt KErrUsbOtgHnpNotSuspended = -6696; |
|
62 const TInt KErrUsbOtgVbusPowerUpNotPermitted = -6697; |
|
63 const TInt KErrUsbOtgVbusPowerDownNotPermitted = -6698; |
|
64 const TInt KErrUsbOtgVbusClearErrorNotPermitted = -6699; |
|
65 |
|
66 /** |
|
67 The OTG Panic categories are a zero-based contiguous set of |
|
68 numbers whose meaning is private to OTGDI |
|
69 */ |
|
70 namespace OtgdiPanics |
|
71 { |
|
72 _LIT(KUsbOtgDriverPanicCat, "USB OTG Driver"); |
|
73 |
|
74 enum TUsbOtgDriverPanics |
|
75 { |
|
76 EUsbOtgDriverNoDfcQueue, |
|
77 |
|
78 EUsbOtgDriverNotYetInitialised, |
|
79 EUsbOtgDriverAlreadyOpened, |
|
80 |
|
81 EUsbOtgDriverStackNotStarted, |
|
82 |
|
83 EUsbOtgUnknownErrorReported, |
|
84 |
|
85 EUsbOtgDriverEventRequestAlreadyRegistered, |
|
86 EUsbOtgDriverStateRequestAlreadyRegistered, |
|
87 EUsbOtgDriverMessageRequestAlreadyRegistered, |
|
88 |
|
89 EUsbOtgDriverIdPinNotificationAlreadyRegistered, |
|
90 EUsbOtgDriverVbusNotificationAlreadyRegistered, |
|
91 EUsbOtgDriverConnectionNotificationAlreadyRegistered, |
|
92 EUsbOtgDriverStateNotificationAlreadyRegistered, |
|
93 |
|
94 EUsbOtgDriverIdPinNotificationWriteFailed, |
|
95 EUsbOtgDriverVbusNotificationWriteFailed, |
|
96 EUsbOtgDriverConnectionNotificationWriteFailed, |
|
97 EUsbOtgDriverStateNotificationWriteFailed, |
|
98 |
|
99 EUsbOtgBadStateFunction |
|
100 }; |
|
101 } |
|
102 |
|
103 #endif // D32OTGDI_ERRORS_H |