CHidTransport Class Reference

class CHidTransport : public CBase

Hid transport interface Interface allowing the transport layer to pass data to the Generic HID

Since
S60 v5.0

Inherits from

Member Functions Documentation

CommandResult(TInt, TInt)

voidCommandResult(TIntaConnectionId,
TIntaCmdAck
)[pure virtual]

Called by the transport layers to inform the generic HID of the success of the last Set... command.

Since
S60 v5.0

Parameters

TInt aConnectionIdTransport layer connection enumeration
TInt aCmdAckStatus of the last Set... command

ConnectedL(TInt, const TDesC8 &)

TInt ConnectedL(TIntaConnectionId,
const TDesC8 &aDescriptor
)[pure virtual]

Called when a device has connected

Since
S60 v5.0

Parameters

TInt aConnectionIdThe transport-layer enumeration for the connection
const TDesC8 & aDescriptorThe report descriptor for the device

DataIn(TInt, THidChannelType, const TDesC8 &)

TInt DataIn(TIntaConnectionId,
THidChannelTypeaChannel,
const TDesC8 &aPayload
)[pure virtual]

Called when a device has been disconnected

Since
S60 v5.0

Parameters

TInt aConnectionIdTransport layer connection enumeration
THidChannelType aChannelChannel ID (Interrupt or Control)
const TDesC8 & aPayloadThe complete report payload

Disconnected(TInt)

TInt Disconnected(TIntaConnectionId)[pure virtual]

Called when a device has been disconnected

Since
S60 v5.0

Parameters

TInt aConnectionIdThe transport-layer enumeration for the connection

DriverActive(TInt, CHidTransport::TDriverState)

TInt DriverActive(TIntaConnectionId,
CHidTransport::TDriverStateaActive
)[pure virtual]

Suspends or Resumes the driver(s) handling the connection

Since
S60 v5.0

Parameters

TInt aConnectionIdTransport layer connection enumeration
CHidTransport::TDriverState aActiveThe requested state of the driver (active or suspended)

Member Enumerations Documentation

Enum TDriverState

Driver state (active or suspended)

Enumerators

EActive

Driver will handle interrupt data

ESuspend

the driver will not handle interrupt data

Enum THidChannelType

Defines the channel type for the DataIn function

Enumerators

EHidChannelInt

Interrupt channel

EHidChannelCtrl

Control channel