usbmgmt/usbmgr/device/classdrivers/ncm/classimplementation/ncmpktdrv/pktdrv/inc/ncmnotificationdescriptor.h
branchRCL_3
changeset 15 f92a4f87e424
equal deleted inserted replaced
14:d3e8e7d462dd 15:f92a4f87e424
       
     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 * header file for NCM notification message class 
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef NCMNOTIFICATIONDESCRIPTOR_H
       
    22 #define NCMNOTIFICATIONDESCRIPTOR_H
       
    23 
       
    24 #include <e32std.h>
       
    25 
       
    26 
       
    27 const TUint KUSBNotificationNetworkConnection = 8;
       
    28 
       
    29 /**
       
    30  * USB NetworkConnection Notification
       
    31  */
       
    32  
       
    33 NONSHARABLE_CLASS(TUSBNotificationNetworkConnection)
       
    34     {
       
    35 public:
       
    36     TUint8    iRequestType;   ///< Request type
       
    37     TUint8    iNotification;  ///< Notification number
       
    38     TUint16   iValue;         ///< Notification value
       
    39     TUint16   iIndex;         ///< Notification index
       
    40     TUint16   iLength;        ///< Notification length
       
    41 public:
       
    42     TDes8&    Des();
       
    43 
       
    44 private:
       
    45     TBuf8<KUSBNotificationNetworkConnection> iBuffer;
       
    46     };
       
    47 
       
    48 const TUint KUSBNotificationConnectionSpeedChange = 16;
       
    49 
       
    50 /**
       
    51  * USB ConnectionSpeedChange Notification
       
    52  */
       
    53 
       
    54 NONSHARABLE_CLASS(TUSBNotificationConnectionSpeedChange)
       
    55     {
       
    56 public:
       
    57     TUint8    iRequestType;   ///< Request type
       
    58     TUint8    iNotification;  ///< Notification number
       
    59     TUint16   iValue;         ///< Notification value
       
    60     TUint16   iIndex;         ///< Notification index
       
    61     TUint16   iLength;        ///< Notification length
       
    62     TUint32   iUSBitRate;     ///< upstream bit rate, in bits per second 
       
    63     TUint32   iDSBitRate;     ///< downstream bit rate, in bits per second
       
    64 public:
       
    65     TDes8&    Des();
       
    66 
       
    67 private:
       
    68     TBuf8<KUSBNotificationConnectionSpeedChange> iBuffer;
       
    69     };
       
    70 
       
    71 #endif // NCMNOTIFICATIONDESCRIPTOR_H
       
    72