|
1 /* |
|
2 * Copyright (c) 2008 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: Definitions for otgwatcher |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef DEFENITIONS_H |
|
19 #define DEFENITIONS_H |
|
20 |
|
21 #include <e32base.h> |
|
22 |
|
23 const TInt KTimeToWaitForDeviceAttachment = 25000000; // 25 sec |
|
24 const TInt KTimeToDiscreteNote = 2000000; // 2 sec |
|
25 const TInt KMaxTimeAllowedForBusInactivity = 10000000; // 10 sec |
|
26 const TInt KUsbIndicatorBlinkingInterval = 600000; // 0.6 sec |
|
27 const TInt KTimeTooMuchPowerRequired = 10000000; // 10 sec |
|
28 const TInt KTimeDriversNotFound = 25000000; // 25 sec |
|
29 |
|
30 const TUint KFirst = 1; |
|
31 |
|
32 /** |
|
33 * Types of states |
|
34 * Types of states are needed here, to make transition from one state to another by state Id |
|
35 * not by setting real state pointer to a state machine. States do not have access to |
|
36 * one another states objects, they just know ids |
|
37 */ |
|
38 enum TUsbStateIds |
|
39 { |
|
40 EUsbStateHostUndefined, |
|
41 |
|
42 EUsbStateHostAInitiate, |
|
43 EUsbStateHostAHost, |
|
44 EUsbStateHostAPeripheral, |
|
45 |
|
46 EUsbStateHostDelayAttachedHandle, |
|
47 EUsbStateHostDelayNotAttachedHandle, |
|
48 EUsbStateHostHandleDropping |
|
49 }; |
|
50 |
|
51 const TInt KUsbWatcherPeripheralIsNotConnected = 0; // means not(KUsbWatcherPeripheralIsConnected) |
|
52 const TInt KUsbWatcherPeripheralIsConnected = 1; // means drivers loaded and session ON at least for one peripheral |
|
53 |
|
54 #endif // DEFENITIONS_H |