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_CTUsbcScChunkHeader(RChunkaChunk)

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(TIntaAltSetting,
TIntaEndpoint,
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 aAltSettingThe alternate setting, for which the provided endpoint number, is a member of.
TInt aEndpointThe endpoint, who's buffer geometry is required.
TUsbcScHdrEndpointRecord *& aEndpointInfThe provided record is filled in with details of the endpoint, who's number was given.

GetNumberOfEndpoints(TInt)

IMPORT_C TIntGetNumberOfEndpoints(TIntaAltSetting)

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

Parameters

TInt aAltSettingThe 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