|
1 // Copyright (c) 2006-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 "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 /** |
|
17 @file |
|
18 @internalComponent |
|
19 */ |
|
20 |
|
21 #ifndef MTPUSBPROTOCOLCONSTANTS_H |
|
22 #define MTPUSBPROTOCOLCONSTANTS_H |
|
23 |
|
24 #include <e32def.h> |
|
25 |
|
26 /** |
|
27 Defines constant values specified USB MTP device class protocol. |
|
28 @internalComponent |
|
29 */ |
|
30 |
|
31 /** |
|
32 MTP USB device class device status datacodes. For a description of these |
|
33 datacodes, please refer to the "Universal Serial Bus Still Image Capture |
|
34 Device Definition" specification. |
|
35 */ |
|
36 enum TMTPUsbContainerTypeCode |
|
37 { |
|
38 EMTPUsbContainerTypeUndefined = 0x0000, |
|
39 EMTPUsbContainerTypeCommandBlock = 0x0001, |
|
40 EMTPUsbContainerTypeDataBlock = 0x0002, |
|
41 EMTPUsbContainerTypeResponseBlock = 0x0003, |
|
42 EMTPUsbContainerTypeEventBlock = 0x0004, |
|
43 }; |
|
44 |
|
45 /** |
|
46 MTP USB device class control request datacodes. For a description of these |
|
47 datacodes, please refer to the "Universal Serial Bus Still Image Capture |
|
48 Device Definition" specification. |
|
49 */ |
|
50 enum TMTPUsbControlRequestCode |
|
51 { |
|
52 EMTPUsbControlRequestCancel = 0x64, |
|
53 EMTPUsbControlRequestDeviceReset = 0x66, |
|
54 EMTPUsbControlRequestDeviceStatus = 0x67, |
|
55 }; |
|
56 |
|
57 /** |
|
58 MTP USB device class device status datacodes. For a description of these |
|
59 datacodes, please refer to the "Universal Serial Bus Still Image Capture |
|
60 Device Definition" specification. |
|
61 */ |
|
62 enum TMTPUsbDeviceCode |
|
63 { |
|
64 EMTPUsbDeviceStatusOK = 0x2001, |
|
65 EMTPUsbDeviceStatusBusy = 0x2019, |
|
66 EMTPUsbDeviceStatusTransactionCancelled = 0x201F, |
|
67 }; |
|
68 |
|
69 /** |
|
70 The MTP USB device class interface description string. |
|
71 */ |
|
72 _LIT16(KMTPUsbInterfaceString, "MTP"); |
|
73 |
|
74 /** |
|
75 Still Image Capture (SIC) device class definitions, as specified in the |
|
76 "Universal Serial Bus Still Image Capture Device Definition" specification. |
|
77 */ |
|
78 const TUint8 KMTPUsbInterfaceClassSIC(0x06); |
|
79 const TUint8 KMTPUsbInterfaceSubClassSIC(0x01); |
|
80 const TUint8 KMTPUsbInterfaceProtocolSIC(0x01); |
|
81 |
|
82 /** |
|
83 MTP device class definitions. |
|
84 */ |
|
85 const TUint8 KMTPUsbInterfaceClassUnknown(0x00); |
|
86 |
|
87 /** |
|
88 The maximum value of the USB generic containrer dataset ContainerLength field. |
|
89 */ |
|
90 const TUint32 KMTPUsbContainerLengthMax(0xFFFFFFFF); |
|
91 |
|
92 /* |
|
93 * Usb transport implementation UID |
|
94 */ |
|
95 const TUint KMTPUsbTransportImplementationUid = 0x102827B2; |
|
96 |
|
97 #endif // MTPUSBPROTOCOLCONSTANTS_H |