RUsbTransferDescriptor Class Reference

class RUsbTransferDescriptor

Base class for all transfer descriptors.

Intended to be available to 3rd parties later

Public Member Functions
voidClose()
Protected Member Functions
RUsbTransferDescriptor(TTransferType, TInt, TInt)
Public Member Enumerations
enumTTransferType { EBulk, EIsochronous, EInterrupt }
enumTZlpStatus { ESuppressZlp, ESendZlpIfRequired, EAlwaysSendZlp }
Public Attributes
const TIntiMaxNumPackets
const TIntiMaxSize
const TTransferTypeiType
Protected Attributes
const TIntKInvalidHandle
TInt iHandle
RUsbTransferStrategy *iTransferStrategy

Constructor & Destructor Documentation

RUsbTransferDescriptor(TTransferType, TInt, TInt)

RUsbTransferDescriptor(TTransferTypeaType,
TIntaMaxSize,
TIntaMaxNumPackets
)[protected]

Constructor protected to as this class is only intended as a base class.

Parameters

TTransferType aType
TInt aMaxSize
TInt aMaxNumPackets

Member Functions Documentation

Close()

voidClose()[virtual]

Releases resources allocated to this transfer descriptor.

Member Enumerations Documentation

Enum TTransferType

Enumerators

EBulk
EIsochronous
EInterrupt

Enum TZlpStatus

Enumerators

ESuppressZlp
ESendZlpIfRequired
EAlwaysSendZlp

Member Data Documentation

const TInt KInvalidHandle

const TIntKInvalidHandle[protected, static]

TInt iHandle

TInt iHandle[protected]

Handle into the transfer strategy for the descriptor.

const TInt iMaxNumPackets

const TIntiMaxNumPackets

Used to specify the maximum number of packets the descriptor will hold.

const TInt iMaxSize

const TIntiMaxSize

For isochronous transfers this refers to the maximum packet size packets in this descriptor may be. For other transfers this refers to the maximum size of the transfer.

RUsbTransferStrategy * iTransferStrategy

RUsbTransferStrategy *iTransferStrategy[protected]

A pointer to the transfer strategy the descriptor is registered in.

const TTransferType iType

const TTransferTypeiType

The type of transfer descriptor this instance represents.