usbmgmt/usbmgr/device/classdrivers/ncm/classimplementation/ncmpktdrv/pktdrv/inc/ncmnotificationdescriptor.h
author hgs
Wed, 07 Jul 2010 14:16:40 +0800
changeset 28 f1fd07aa74c9
permissions -rw-r--r--
201025_08
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
28
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
     1
/*
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
     2
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
     3
* All rights reserved.
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
     8
*
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
     9
* Initial Contributors:
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    11
*
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    12
* Contributors:
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    13
*
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    14
* Description:
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    15
* header file for NCM notification message class 
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    16
*
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    17
*/
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    18
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    19
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    20
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    21
#ifndef NCMNOTIFICATIONDESCRIPTOR_H
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    22
#define NCMNOTIFICATIONDESCRIPTOR_H
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    23
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    24
#include <e32std.h>
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    25
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    26
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    27
const TUint KUSBNotificationNetworkConnection = 8;
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    28
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    29
/**
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    30
 * USB NetworkConnection Notification
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    31
 */
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    32
 
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    33
NONSHARABLE_CLASS(TUSBNotificationNetworkConnection)
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    34
    {
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    35
public:
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    36
    TUint8    iRequestType;   ///< Request type
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    37
    TUint8    iNotification;  ///< Notification number
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    38
    TUint16   iValue;         ///< Notification value
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    39
    TUint16   iIndex;         ///< Notification index
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    40
    TUint16   iLength;        ///< Notification length
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    41
public:
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    42
    TDes8&    Des();
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    43
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    44
private:
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    45
    TBuf8<KUSBNotificationNetworkConnection> iBuffer;
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    46
    };
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    47
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    48
const TUint KUSBNotificationConnectionSpeedChange = 16;
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    49
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    50
/**
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    51
 * USB ConnectionSpeedChange Notification
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    52
 */
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    53
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    54
NONSHARABLE_CLASS(TUSBNotificationConnectionSpeedChange)
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    55
    {
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    56
public:
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    57
    TUint8    iRequestType;   ///< Request type
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    58
    TUint8    iNotification;  ///< Notification number
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    59
    TUint16   iValue;         ///< Notification value
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    60
    TUint16   iIndex;         ///< Notification index
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    61
    TUint16   iLength;        ///< Notification length
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    62
    TUint32   iUSBitRate;     ///< upstream bit rate, in bits per second 
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    63
    TUint32   iDSBitRate;     ///< downstream bit rate, in bits per second
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    64
public:
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    65
    TDes8&    Des();
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    66
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    67
private:
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    68
    TBuf8<KUSBNotificationConnectionSpeedChange> iBuffer;
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    69
    };
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    70
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    71
#endif // NCMNOTIFICATIONDESCRIPTOR_H
f1fd07aa74c9 201025_08
hgs
parents:
diff changeset
    72