author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 23 Jun 2010 19:44:53 +0300 | |
changeset 200 | 73ea206103e6 |
parent 102 | ef2a444a7410 |
child 285 | ff5437e4337c |
permissions | -rw-r--r-- |
102
ef2a444a7410
Revision: 201018
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
1 |
// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). |
0 | 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 |
||
102
ef2a444a7410
Revision: 201018
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
39 |
const TInt KErrUsbOtgBadDeviceAttached = -6673; |
ef2a444a7410
Revision: 201018
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
40 |
const TInt KEventUsbOtgBadDeviceDetached = -6674; |
ef2a444a7410
Revision: 201018
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
41 |
|
0 | 42 |
const TInt KErrUsbOtgBadState = -6675; |
43 |
||
102
ef2a444a7410
Revision: 201018
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
44 |
const TInt KErrUsbOtgInOPTTestingMode = -6676; |
ef2a444a7410
Revision: 201018
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
45 |
|
0 | 46 |
const TInt KErrUsbOtgStackNotStarted = -6680; |
47 |
const TInt KErrUsbOtgVbusAlreadyRaised = -6681; |
|
48 |
const TInt KErrUsbOtgSrpForbidden = -6682; |
|
49 |
||
50 |
const TInt KErrUsbOtgHnpNotResponding = -6683; |
|
51 |
const TInt KErrUsbOtgHnpBusDrop = -6684; |
|
52 |
||
53 |
const TInt KErrUsbOtgBusControlProblem = -6685; |
|
54 |
||
55 |
const TInt KErrUsbOtgVbusPowerUpError = -6686; |
|
56 |
||
57 |
const TInt KErrUsbOtgHnpEnableProblem = -6687; |
|
58 |
const TInt KErrUsbOtgPeriphNotSupported = -6688; |
|
59 |
||
60 |
const TInt KErrUsbOtgVbusError = -6690; |
|
61 |
const TInt KErrUsbOtgSrpTimeout = -6691; |
|
62 |
const TInt KErrUsbOtgSrpActive = -6692; |
|
63 |
const TInt KErrUsbOtgSrpNotPermitted = -6693; |
|
64 |
const TInt KErrUsbOtgHnpNotPermitted = -6694; |
|
65 |
const TInt KErrUsbOtgHnpNotEnabled = -6695; |
|
66 |
const TInt KErrUsbOtgHnpNotSuspended = -6696; |
|
67 |
const TInt KErrUsbOtgVbusPowerUpNotPermitted = -6697; |
|
68 |
const TInt KErrUsbOtgVbusPowerDownNotPermitted = -6698; |
|
69 |
const TInt KErrUsbOtgVbusClearErrorNotPermitted = -6699; |
|
70 |
||
71 |
/** |
|
72 |
The OTG Panic categories are a zero-based contiguous set of |
|
73 |
numbers whose meaning is private to OTGDI |
|
74 |
*/ |
|
75 |
namespace OtgdiPanics |
|
76 |
{ |
|
77 |
_LIT(KUsbOtgDriverPanicCat, "USB OTG Driver"); |
|
78 |
||
79 |
enum TUsbOtgDriverPanics |
|
80 |
{ |
|
81 |
EUsbOtgDriverNoDfcQueue, |
|
82 |
||
83 |
EUsbOtgDriverNotYetInitialised, |
|
84 |
EUsbOtgDriverAlreadyOpened, |
|
85 |
||
86 |
EUsbOtgDriverStackNotStarted, |
|
87 |
||
88 |
EUsbOtgUnknownErrorReported, |
|
89 |
||
90 |
EUsbOtgDriverEventRequestAlreadyRegistered, |
|
91 |
EUsbOtgDriverStateRequestAlreadyRegistered, |
|
92 |
EUsbOtgDriverMessageRequestAlreadyRegistered, |
|
93 |
||
94 |
EUsbOtgDriverIdPinNotificationAlreadyRegistered, |
|
95 |
EUsbOtgDriverVbusNotificationAlreadyRegistered, |
|
96 |
EUsbOtgDriverConnectionNotificationAlreadyRegistered, |
|
97 |
EUsbOtgDriverStateNotificationAlreadyRegistered, |
|
98 |
||
99 |
EUsbOtgDriverIdPinNotificationWriteFailed, |
|
100 |
EUsbOtgDriverVbusNotificationWriteFailed, |
|
101 |
EUsbOtgDriverConnectionNotificationWriteFailed, |
|
102 |
EUsbOtgDriverStateNotificationWriteFailed, |
|
103 |
||
104 |
EUsbOtgBadStateFunction |
|
105 |
}; |
|
106 |
} |
|
107 |
||
108 |
#endif // D32OTGDI_ERRORS_H |