sl@0: // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: // sl@0: sl@0: #ifndef __global_H__ sl@0: #define __global_H__ sl@0: sl@0: sl@0: #define WM_USER_PRINTOUT (WM_USER+100) sl@0: sl@0: // The version of this program sl@0: #define VERSION_MAJOR 1 sl@0: #define VERSION_MINOR 2 sl@0: #define VERSION_MICRO 0 sl@0: sl@0: // The version of the USBIO driver this program is compiled against sl@0: #define USBIO_VERSION_MAJOR 2 sl@0: #define USBIO_VERSION_MINOR 41 sl@0: sl@0: #define VERSION_DATAOUT_SIZE 5 sl@0: #define VERSION_DATAIN_SIZE 96 sl@0: sl@0: #define MAX_DESCRIPTOR_BUFFER_SIZE 2047 sl@0: sl@0: #define MAX_INTERFACES 128 sl@0: #define MAX_SETTINGS 10 sl@0: #define MAX_ENDPOINTS 5 sl@0: sl@0: #define MAX_THREADS 10 sl@0: sl@0: #define WAIT_SETTING_BUFFER_SIZE 8 sl@0: #define WAIT_SETTING_TIMEOUT 250 sl@0: #define WAIT_BEFORETHREAD_TIMEOUT 30000 sl@0: #define READWRITE_TIMEOUT 10000 sl@0: #define FIRSTFILEREAD_TIMEOUT 500000 sl@0: #define WAITDISCONNECT_TIMEOUT 10000 sl@0: sl@0: #define FIRST_SETTING_THREAD_MASK 0x8000 sl@0: #define LAST_SETTING_THREAD_MASK 0x4000 sl@0: sl@0: #define HOST_ERROR_INDEX 0xFFF sl@0: sl@0: // a number of definitions for using the Aten USB switch sl@0: #define SWITCH_REQUEST 0x09 sl@0: #define SWITCH_INDEX 0x0001 sl@0: #define SWITCH_VALUE 0x0202 sl@0: #define SWITCH_DATA0 0x02 sl@0: #define SWITCH_DATA1 0x03 sl@0: sl@0: // delays sl@0: #define WAIT_TEST_COMPLETE 50 sl@0: #define WAIT_SETTING_DELAY 50 sl@0: #define BEFORE_SWITCH_DELAY 3000 sl@0: #define AFTER_SWITCH_DELAY 5000 sl@0: #define DEVICE_CONFIG_DELAY 2000 sl@0: sl@0: #define NL "\r\n" sl@0: sl@0: // Helper #defines for print messages sl@0: #define PRINT_ALWAYS PrintOut (TRUE,TRUE,FALSE, sl@0: #define PRINT_TIME PrintOut (TRUE,TRUE,TRUE, sl@0: #define PRINT_NOLOG PrintOut (TRUE,FALSE,FALSE, sl@0: #define PRINT_IF_VERBOSE PrintOut (gVerboseMode,gVerboseMode,FALSE, sl@0: sl@0: #endif //__global_H__