RUsbIsocTransferDescriptor Class Reference

class RUsbIsocTransferDescriptor : public RUsbTransferDescriptor

Provides *SEQUENTIAL* access to the packet slots in an isochronous transfer descriptor. As some HCs may pack the buffer space tightly, with one packet starting immediately after the preceeding one, random access is not possible -- in this implementation, even replacing the content of a slot with another packet of the same size is not 'intentionally' possible. Note that reading data is possible in a random access manner -- the sequential constraint only applies to writing. Intended to be available to 3rd parties later

Inherits from

Constructor & Destructor Documentation

RUsbIsocTransferDescriptor(TInt, TInt)

IMPORT_CRUsbIsocTransferDescriptor(TIntaMaxPacketSize,
TIntaMaxNumPackets
)

Parameters

TInt aMaxPacketSize
TInt aMaxNumPackets

Member Functions Documentation

Lengths()

IMPORT_C TPacketLengthsLengths()

MaxPacketSize()

IMPORT_C TIntMaxPacketSize()

Packets(TInt, TInt, TInt &)

IMPORT_C TPtrC8Packets(TIntaFirstPacketIndex,
TIntaNumPacketsRequested,
TInt &aNumOfPacketsReturned
)const

Parameters

TInt aFirstPacketIndex
TInt aNumPacketsRequested
TInt & aNumOfPacketsReturned

ReceivePackets(TInt)

IMPORT_C voidReceivePackets(TIntaNumOfPackets)

Parameters

TInt aNumOfPackets

Reset()

IMPORT_C voidReset()

Results()

IMPORT_C TPacketResultsResults()

SaveMultiple(TInt)

IMPORT_C voidSaveMultiple(TIntaNumOfPackets)

Parameters

TInt aNumOfPackets

WritablePackets(TInt, TInt &)

IMPORT_C TPtr8WritablePackets(TIntaNumPacketsRequested,
TInt &aMaxNumOfPacketsAbleToWrite
)

Parameters

TInt aNumPacketsRequested
TInt & aMaxNumOfPacketsAbleToWrite

Member Data Documentation

TInt iWriteHandle

TInt iWriteHandle[private]

The handle to represent the current point in writing an isoc. transfer.