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_C RUsbIsocTransferDescriptor ( TInt aMaxPacketSize,
TInt aMaxNumPackets
)

Parameters

TInt aMaxPacketSize
TInt aMaxNumPackets

Member Functions Documentation

Lengths()

IMPORT_C TPacketLengths Lengths ( )

MaxPacketSize()

IMPORT_C TInt MaxPacketSize ( )

Packets(TInt, TInt, TInt &)

IMPORT_C TPtrC8 Packets ( TInt aFirstPacketIndex,
TInt aNumPacketsRequested,
TInt & aNumOfPacketsReturned
) const

Parameters

TInt aFirstPacketIndex
TInt aNumPacketsRequested
TInt & aNumOfPacketsReturned

ReceivePackets(TInt)

IMPORT_C void ReceivePackets ( TInt aNumOfPackets )

Parameters

TInt aNumOfPackets

Reset()

IMPORT_C void Reset ( )

Results()

IMPORT_C TPacketResults Results ( )

SaveMultiple(TInt)

IMPORT_C void SaveMultiple ( TInt aNumOfPackets )

Parameters

TInt aNumOfPackets

WritablePackets(TInt, TInt &)

IMPORT_C TPtr8 WritablePackets ( TInt aNumPacketsRequested,
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.