|
1 /* |
|
2 * Copyright (c) 2010 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 /** @file |
|
19 @internalComponent |
|
20 */ |
|
21 |
|
22 |
|
23 #ifndef NCMCLASSDESCRIPTOR_H |
|
24 #define NCMCLASSDESCRIPTOR_H |
|
25 |
|
26 #include <e32std.h> |
|
27 |
|
28 |
|
29 const TUint KUSBNcmClassSpecificBufferSize = 29; |
|
30 |
|
31 |
|
32 /** |
|
33 * Defined NCM Class Descriptor |
|
34 */ |
|
35 NONSHARABLE_CLASS(TNcmClassDescriptor) ///< Class-specific descriptor |
|
36 { |
|
37 public: |
|
38 |
|
39 //Header Functional Descriptor |
|
40 TUint8 iHdrSize; ///< Header size |
|
41 TUint8 iHdrType; ///< Type |
|
42 TUint8 iHdrSubType; ///< Sub-type |
|
43 TUint16 iHdrBcdCDC; ///< CDC version no in binary coded decimal |
|
44 |
|
45 //Union Functional Descriptor |
|
46 TUint8 iUnSize; ///< Union descriptor size |
|
47 TUint8 iUnType; ///< Union descriptor type |
|
48 TUint8 iUnSubType; ///< Union descriptor sub-type |
|
49 TUint8 iUnMasterInterface; ///< Master interface number |
|
50 TUint8 iUnSlaveInterface; ///< Slave interface number |
|
51 |
|
52 //Ethernet Networking Functional Descriptor |
|
53 TUint8 iEthFunLength; ///< Size of this functional descriptor |
|
54 TUint8 iEthFunType; ///< CS_INTERFACE |
|
55 TUint8 iEthFunSubtype; ///< Ethernet Networking functional descriptor subtype as defined in [USBCDC1.2] |
|
56 TUint8 iMACAddress; ///< Index of string descriptor. The string descriptor holds the 48bit Ethernet MAC address. |
|
57 TUint iEthernetStatistics; ///< Indicates which Ethernet statistics functions the device collects. |
|
58 TUint16 iMaxSegmentSize; ///< The maximum segment size that the Ethernet device is capable of supporting. |
|
59 TUint16 iNumberMCFilters; ///< Contains the number of multicast filters that can be configured by the host. |
|
60 TUint8 iNumberPowerFilters; ///< Contains the number of pattern filters that are available for causing wake-up of the host. |
|
61 |
|
62 |
|
63 //NCM Functional Descriptor |
|
64 TUint8 iNcmFunLength; ///< Size of this functional descriptor |
|
65 TUint8 iNcmFunType; ///< CS_INTERFACE |
|
66 TUint8 iNcmFunSubtype; ///< NCM Functional Descriptor subtype |
|
67 TUint16 iNcmVersion; ///< Release number of this specification in BCD |
|
68 TUint8 iNetworkCapabilities; ///< Specifies the capabilities of this function |
|
69 |
|
70 public: |
|
71 TDes8& Des(); |
|
72 |
|
73 private: |
|
74 |
|
75 TBuf8<KUSBNcmClassSpecificBufferSize> iBuffer; |
|
76 }; |
|
77 |
|
78 #endif // NCMCLASSDESCRIPTOR_H |
|
79 |