TUsbcScChunkHeader Class Reference

class TUsbcScChunkHeader

This class can be used to retrieve the geometry of the structures within a shared chunk, as used by RDevUsbcScClient .

RDevUsbcScClient

Constructor & Destructor Documentation

TUsbcScChunkHeader(RChunk)

IMPORT_C TUsbcScChunkHeader ( RChunk aChunk )

The constructor for the TUsbcScChunkHeader class takes a RChunk object, containing USBcSc data structures, and initialises itself, so that GetNumberOfEndpoints & GetBuffer can be used to interpret the chunk structures.

Parameters

RChunk aChunk

Member Functions Documentation

GetBuffer(TInt, TInt, TUsbcScHdrEndpointRecord *&)

IMPORT_C TUsbcScBufferRecord * GetBuffer ( TInt aAltSetting,
TInt aEndpoint,
TUsbcScHdrEndpointRecord *& aEndpointInf
)

Retrieves the available information in the chunk, about the given endpoint, on the given alternate setting. The returned TUsbcScBufferRecord , represents the buffer geometry, used for for the endpoint, while the filled in TUsbcScHdrEndpointRecord represents additional endpoint information.

Parameters

TInt aAltSetting The alternate setting, for which the provided endpoint number, is a member of.
TInt aEndpoint The endpoint, who's buffer geometry is required.
TUsbcScHdrEndpointRecord *& aEndpointInf The provided record is filled in with details of the endpoint, who's number was given.

GetNumberOfEndpoints(TInt)

IMPORT_C TInt GetNumberOfEndpoints ( TInt aAltSetting )

Retrieves the number of endpoints found in a given alternate setting.

Parameters

TInt aAltSetting The alternate setting number, for which the number of endpoints contained within, is needed.

Member Data Documentation

TUsbcScChunkAltSettingHeader * iAltSettings

TUsbcScChunkAltSettingHeader * iAltSettings

A pointer to the TUsbcScChunkBuffersHeader object, within the chunk header

TUsbcScChunkBuffersHeader * iBuffers

TUsbcScChunkBuffersHeader * iBuffers

RChunk iChunk

RChunk iChunk [private]

A pointer to the TUsbcScChunkAltSettingHeader object, within the chunk header