d32usbcshared.h File Reference

const TInt KErrUsbDriverBase

const TInt KErrUsbDriverBase

USB driver specific error codes start from here

const TInt KErrUsbInterfaceNotReady

const TInt KErrUsbInterfaceNotReady

Attempt at data transfer, or something interface related, when neither an Interface has been set up nor Device Control is owned by the channel

const TInt KErrUsbEpNotInInterface

const TInt KErrUsbEpNotInInterface

Attempt at data transfer on an endpoint that does not belong to the active interface

const TInt KErrUsbEpBadDirection

const TInt KErrUsbEpBadDirection

Attempt at data transfer in a direction not supported by the endpoint

const TInt KErrUsbTransferSize

const TInt KErrUsbTransferSize

The data transfer size specified exceeds that of the source or destination buffer descriptor

const TInt KErrUsbDeviceNotConfigured

const TInt KErrUsbDeviceNotConfigured

This has multiple uses: 1) User request completed because device is no longer in configured state 2) Something endpoint related, stall, unstall, status enquiry etc, that requires the device to be configured

const TInt KErrUsbBadEndpoint

const TInt KErrUsbBadEndpoint

Requested endpoint properties inconsistent during Interface setup

const TInt KErrUsbDeviceClosing

const TInt KErrUsbDeviceClosing

User data request completed because channel is closing (channel destructor called)

const TInt KErrUsbInterfaceChange

const TInt KErrUsbInterfaceChange

User data request completed because current endpoint set is being replaced since alternate setting is changing

const TInt KErrUsbCableDetached

const TInt KErrUsbCableDetached

User data request completed because cable has been detached (or equivalent)

const TInt KErrUsbDeviceBusReset

const TInt KErrUsbDeviceBusReset

User data request completed because cable has been detached (or equivalent)

const TInt KErrUsbEpNotReady

const TInt KErrUsbEpNotReady

This means that read data is still available when a write request is made. Relates to bidirectional eps only (ep0). A bidirectional ep must consume all of its read data before attempting to write.

const TInt KUsbcMaxEndpoints

const TInt KUsbcMaxEndpoints

The maximum number of endpoints supported by the device, excluding ep0.

const TInt KMaxEndpointsPerClient

const TInt KMaxEndpointsPerClient

The maximum number of endpoints per interface, excluding ep0.

const TInt KInvalidEndpointNumber

const TInt KInvalidEndpointNumber

const TUint KUsbAlternateSetting

const TUint KUsbAlternateSetting

The alternate setting flag; when this bit is set the state change notified by RDevUsbcClient::AlternateDeviceStatusNotify() is an alternate setting number.

const TUint KUsbDevCapsFeatureWord1_CableDetectWithoutPower

const TUint KUsbDevCapsFeatureWord1_CableDetectWithoutPower

The USB cable detection feature flag; used by TUsbDeviceCapsV01::iFeatureWord1 . When this bit is set then the USB controller hardware (UDC) supports detection of a plugged-in USB cable even when not powered.

TUsbDeviceCapsV01

const TUint KUsbDevCapsFeatureWord1_EndpointResourceAllocV2

const TUint KUsbDevCapsFeatureWord1_EndpointResourceAllocV2

If this flag is set then the driver supports the new endpoint resource allocation scheme for DMA and Double-buffering via TUsbcEndpointInfo::iFeatureWord1 .

TUsbDeviceCapsV01

Typedef TUsbDeviceCaps

typedef TPckgBuf < TUsbDeviceCapsV01 > TUsbDeviceCaps

Package buffer for a TUsbDeviceCapsV01 object.

TUsbDeviceCapsV01

const TUint KUsbEpNotAvailable

const TUint KUsbEpNotAvailable

Bitmaps for TUsbcEndpointCaps.iSizes .

This endpoint is not available (= no size).

const TUint KUsbEpSizeCont

const TUint KUsbEpSizeCont

Max packet size is continuously variable up to some size specified. (Interrupt and Isochronous endpoints only.)

const TUint KUsbEpSize8

const TUint KUsbEpSize8

Max packet size 8 bytes is supported

const TUint KUsbEpSize16

const TUint KUsbEpSize16

Max packet size 16 bytes is supported

const TUint KUsbEpSize32

const TUint KUsbEpSize32

Max packet size 32 bytes is supported

const TUint KUsbEpSize64

const TUint KUsbEpSize64

Max packet size 64 bytes is supported

const TUint KUsbEpSize128

const TUint KUsbEpSize128

Max packet size 128 bytes is supported

const TUint KUsbEpSize256

const TUint KUsbEpSize256

Max packet size 256 bytes is supported

const TUint KUsbEpSize512

const TUint KUsbEpSize512

Max packet size 512 bytes is supported

const TUint KUsbEpSize1023

const TUint KUsbEpSize1023

Max packet size 1023 bytes is supported

const TUint KUsbEpSize1024

const TUint KUsbEpSize1024

Max packet size 1024 bytes is supported

const TUint KUsbEpTypeControl

const TUint KUsbEpTypeControl

Bitmaps for TUsbcEndpointCaps.iSupportedTypesAndDir.

Endpoint supports Control transfer type.

const TUint KUsbEpTypeIsochronous

const TUint KUsbEpTypeIsochronous

Endpoint supports Isochronous transfer type.

const TUint KUsbEpTypeBulk

const TUint KUsbEpTypeBulk

Endpoint supports Bulk transfer type.

const TUint KUsbEpTypeInterrupt

const TUint KUsbEpTypeInterrupt

Endpoint supports Interrupt transfer type.

const TUint KUsbEpDirIn

const TUint KUsbEpDirIn

Endpoint supports IN transfers.

const TUint KUsbEpDirOut

const TUint KUsbEpDirOut

Endpoint supports OUT transfers.

const TUint KUsbEpDirBidirect

const TUint KUsbEpDirBidirect

Endpoint supports bidirectional (Control) transfers only.

const TUint KUsbcEndpointInfoFeatureWord1_DMA

const TUint KUsbcEndpointInfoFeatureWord1_DMA

The endpoint resource allocation flags; used by TUsbcEndpointInfo::iFeatureWord1 .

TUsbcEndpointInfo

const TUint KUsbcEndpointInfoFeatureWord1_DoubleBuffering

const TUint KUsbcEndpointInfoFeatureWord1_DoubleBuffering

const TUint KUsbcInterfaceInfo_NoEp0RequestsPlease

const TUint KUsbcInterfaceInfo_NoEp0RequestsPlease

The Ep0 Setup request 'unsubscribe' flag; used by TUsbcInterfaceInfo::iFeatureWord. When this bit is set then valid vendor- or class-specific Ep0 requests addressed to this interface or any of its endpoints will be stalled by the USB PDD PIL.

TUsbcInterfaceInfo