TUsbInterfaceDescriptor Class Reference

class TUsbInterfaceDescriptor : public TUsbGenericDescriptor

Interface descriptor.

See section 9.6.5 of the USB 2.0 specification.

Intended to be available to 3rd parties later

Inherits from

Public Member Functions
TUsbInterfaceDescriptor ()
IMPORT_C TUint8 AlternateSetting ()
IMPORT_C TUsbInterfaceDescriptor * Cast ( TUsbGenericDescriptor *)
IMPORT_C TUint8 Interface ()
IMPORT_C TUint8 InterfaceClass ()
IMPORT_C TUint8 InterfaceNumber ()
IMPORT_C TUint8 InterfaceProtocol ()
IMPORT_C TUint8 InterfaceSubClass ()
TBool IsParent ( TUsbGenericDescriptor &)
TBool IsPeer ( TUsbGenericDescriptor &)
IMPORT_C TUint8 NumEndpoints ()
TUsbInterfaceDescriptor * ParseL ( TPtrC8 &, TUsbGenericDescriptor *)
Inherited Functions
TUsbGenericDescriptor::DestroyTree()
TUsbGenericDescriptor::IsChild(TUsbGenericDescriptor &)
TUsbGenericDescriptor::TUint16At(TInt)const
TUsbGenericDescriptor::TUint32At(TInt)const
TUsbGenericDescriptor::TUint8At(TInt)const
TUsbGenericDescriptor::TUsbGenericDescriptor()
TUsbGenericDescriptor::operator TCleanupItem()
TUsbGenericDescriptor::operator=(const TUsbGenericDescriptor &)
Public Member Enumerations
enum TFieldOffsets {
EbInterfaceNumber  = 2, EbAlternateSetting  = 3, EbNumEndpoints  = 4, EbInterfaceClass  = 5, EbInterfaceSubClass  = 6, EbInterfaceProtocol  = 7, EiInterface  = 8
}
Inherited Enumerations
TUsbGenericDescriptor:TUsbGenericDescriptorFlags
Public Attributes
const TInt KSizeInOctets
Inherited Attributes
TUsbGenericDescriptor::KbDescriptorTypeOffset
TUsbGenericDescriptor::KbLengthOffset
TUsbGenericDescriptor::iBlob
TUsbGenericDescriptor::iFirstChild
TUsbGenericDescriptor::iNextPeer
TUsbGenericDescriptor::iParent
TUsbGenericDescriptor::iRecognisedAndParsed
TUsbGenericDescriptor::ibDescriptorType
TUsbGenericDescriptor::ibLength

Constructor & Destructor Documentation

TUsbInterfaceDescriptor()

IMPORT_C TUsbInterfaceDescriptor ( )

Member Functions Documentation

AlternateSetting()

IMPORT_C TUint8 AlternateSetting ( ) const

Cast(TUsbGenericDescriptor *)

IMPORT_C TUsbInterfaceDescriptor * Cast ( TUsbGenericDescriptor * aOriginal ) [static]

Parameters

TUsbGenericDescriptor * aOriginal

Interface()

IMPORT_C TUint8 Interface ( ) const

InterfaceClass()

IMPORT_C TUint8 InterfaceClass ( ) const

InterfaceNumber()

IMPORT_C TUint8 InterfaceNumber ( ) const

InterfaceProtocol()

IMPORT_C TUint8 InterfaceProtocol ( ) const

InterfaceSubClass()

IMPORT_C TUint8 InterfaceSubClass ( ) const

IsParent(TUsbGenericDescriptor &)

TBool IsParent ( TUsbGenericDescriptor & aPotentialParent ) [virtual]

Parameters

TUsbGenericDescriptor & aPotentialParent

IsPeer(TUsbGenericDescriptor &)

TBool IsPeer ( TUsbGenericDescriptor & aPotentialPeer ) [virtual]

Parameters

TUsbGenericDescriptor & aPotentialPeer

NumEndpoints()

IMPORT_C TUint8 NumEndpoints ( ) const

ParseL(TPtrC8 &, TUsbGenericDescriptor *)

TUsbInterfaceDescriptor * ParseL ( TPtrC8 & aUsbDes,
TUsbGenericDescriptor * aPreviousDesc
) [static]

The parsing routine for interface descriptors.

Parameters

TPtrC8 & aUsbDes
TUsbGenericDescriptor * aPreviousDesc

Member Enumerations Documentation

Enum TFieldOffsets

Enumerators

EbInterfaceNumber = 2
EbAlternateSetting = 3
EbNumEndpoints = 4
EbInterfaceClass = 5
EbInterfaceSubClass = 6
EbInterfaceProtocol = 7
EiInterface = 8

Member Data Documentation

const TInt KSizeInOctets

const TInt KSizeInOctets [static]