sl@0
|
1 |
// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of the License "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
//
|
sl@0
|
15 |
//
|
sl@0
|
16 |
|
sl@0
|
17 |
#ifndef __global_H__
|
sl@0
|
18 |
#define __global_H__
|
sl@0
|
19 |
|
sl@0
|
20 |
|
sl@0
|
21 |
#define WM_USER_PRINTOUT (WM_USER+100)
|
sl@0
|
22 |
|
sl@0
|
23 |
// The version of this program
|
sl@0
|
24 |
#define VERSION_MAJOR 1
|
sl@0
|
25 |
#define VERSION_MINOR 2
|
sl@0
|
26 |
#define VERSION_MICRO 0
|
sl@0
|
27 |
|
sl@0
|
28 |
// The version of the USBIO driver this program is compiled against
|
sl@0
|
29 |
#define USBIO_VERSION_MAJOR 2
|
sl@0
|
30 |
#define USBIO_VERSION_MINOR 41
|
sl@0
|
31 |
|
sl@0
|
32 |
#define VERSION_DATAOUT_SIZE 5
|
sl@0
|
33 |
#define VERSION_DATAIN_SIZE 96
|
sl@0
|
34 |
|
sl@0
|
35 |
#define MAX_DESCRIPTOR_BUFFER_SIZE 2047
|
sl@0
|
36 |
|
sl@0
|
37 |
#define MAX_INTERFACES 128
|
sl@0
|
38 |
#define MAX_SETTINGS 10
|
sl@0
|
39 |
#define MAX_ENDPOINTS 5
|
sl@0
|
40 |
|
sl@0
|
41 |
#define MAX_THREADS 10
|
sl@0
|
42 |
|
sl@0
|
43 |
#define WAIT_SETTING_BUFFER_SIZE 8
|
sl@0
|
44 |
#define WAIT_SETTING_TIMEOUT 250
|
sl@0
|
45 |
#define WAIT_BEFORETHREAD_TIMEOUT 30000
|
sl@0
|
46 |
#define READWRITE_TIMEOUT 10000
|
sl@0
|
47 |
#define FIRSTFILEREAD_TIMEOUT 500000
|
sl@0
|
48 |
#define WAITDISCONNECT_TIMEOUT 10000
|
sl@0
|
49 |
|
sl@0
|
50 |
#define FIRST_SETTING_THREAD_MASK 0x8000
|
sl@0
|
51 |
#define LAST_SETTING_THREAD_MASK 0x4000
|
sl@0
|
52 |
|
sl@0
|
53 |
#define HOST_ERROR_INDEX 0xFFF
|
sl@0
|
54 |
|
sl@0
|
55 |
// a number of definitions for using the Aten USB switch
|
sl@0
|
56 |
#define SWITCH_REQUEST 0x09
|
sl@0
|
57 |
#define SWITCH_INDEX 0x0001
|
sl@0
|
58 |
#define SWITCH_VALUE 0x0202
|
sl@0
|
59 |
#define SWITCH_DATA0 0x02
|
sl@0
|
60 |
#define SWITCH_DATA1 0x03
|
sl@0
|
61 |
|
sl@0
|
62 |
// delays
|
sl@0
|
63 |
#define WAIT_TEST_COMPLETE 50
|
sl@0
|
64 |
#define WAIT_SETTING_DELAY 50
|
sl@0
|
65 |
#define BEFORE_SWITCH_DELAY 3000
|
sl@0
|
66 |
#define AFTER_SWITCH_DELAY 5000
|
sl@0
|
67 |
#define DEVICE_CONFIG_DELAY 2000
|
sl@0
|
68 |
|
sl@0
|
69 |
#define NL "\r\n"
|
sl@0
|
70 |
|
sl@0
|
71 |
// Helper #defines for print messages
|
sl@0
|
72 |
#define PRINT_ALWAYS PrintOut (TRUE,TRUE,FALSE,
|
sl@0
|
73 |
#define PRINT_TIME PrintOut (TRUE,TRUE,TRUE,
|
sl@0
|
74 |
#define PRINT_NOLOG PrintOut (TRUE,FALSE,FALSE,
|
sl@0
|
75 |
#define PRINT_IF_VERBOSE PrintOut (gVerboseMode,gVerboseMode,FALSE,
|
sl@0
|
76 |
|
sl@0
|
77 |
#endif //__global_H__
|