TUsbEndpointDescriptor Class Reference

class TUsbEndpointDescriptor : public TUsbGenericDescriptor

Endpoint descriptor.

See section 9.6.6 of the USB 2.0 specification. Note these exclude support support for: 'Standard AC Interrupt Endpoint Descriptor' 'Standard AS Isochronous Synch Endpoint Descriptor' 'Standard AS Isochronous Audio Data Endpoint Descriptor' as defined in USB Audio Device Class Spec v1.0 which are all 9 bytes in size. To support these custom descriptors may be registered with the parser.

Intended to be available to 3rd parties later

Inherits from

Constructor & Destructor Documentation

TUsbEndpointDescriptor()

IMPORT_C TUsbEndpointDescriptor ( )

Member Functions Documentation

Attributes()

IMPORT_C TUint8 Attributes ( ) const

Cast(TUsbGenericDescriptor *)

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

Parameters

TUsbGenericDescriptor * aOriginal

EndpointAddress()

IMPORT_C TUint8 EndpointAddress ( ) const

Interval()

IMPORT_C TUint8 Interval ( ) const

IsParent(TUsbGenericDescriptor &)

TBool IsParent ( TUsbGenericDescriptor & aPotentialParent ) [virtual]

Parameters

TUsbGenericDescriptor & aPotentialParent

IsPeer(TUsbGenericDescriptor &)

TBool IsPeer ( TUsbGenericDescriptor & aPotentialPeer ) [virtual]

Parameters

TUsbGenericDescriptor & aPotentialPeer

MaxPacketSize()

IMPORT_C TUint16 MaxPacketSize ( ) const

ParseL(TPtrC8 &, TUsbGenericDescriptor *)

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

The parsing routine for endpoint descriptors.

Parameters

TPtrC8 & aUsbDes
TUsbGenericDescriptor * aPreviousDesc

Member Enumerations Documentation

Enum TFieldOffsets

Enumerators

EbEndpointAddress = 2
EbmAttributes = 3
EwMaxPacketSize = 4
EbInterval = 6

Member Data Documentation

const TInt KSizeInOctets

const TInt KSizeInOctets [static]