MTransportLayer Class Reference

class MTransportLayer

Transport layer interface class Interface allowing the generic HID layer to pass data to a Transport layer All commands are asynchronous. The results are returned via the

Since
S60 v5.0

Member Functions Documentation

CountryCodeL(TInt)

TUint CountryCodeL(TIntaConnID)[pure virtual]

Request for the country code of the given device.

Since
S60 v5.0

Parameters

TInt aConnIDThe device identifier

DataOutL(TInt, TUint8, TUint16, const TDesC8 &)

voidDataOutL(TIntaConnID,
TUint8aReportID,
TUint16aInterface,
const TDesC8 &aReport
)[pure virtual]

Request to send data to a device. There are no responses to this report from device.

Since
S60 v5.0

Parameters

TInt aConnIDThe device identifier
TUint8 aReportIDThe specific report required
TUint16 aInterfaceThe interface we want to send the report to
const TDesC8 & aReportThe report payload to be sent to the device

GetIdleL(TInt, TUint8, TUint16)

voidGetIdleL(TIntaConnID,
TUint8aReportID,
TUint16aInterface
)[pure virtual]

Request for the current idle rate of a report from the device. The response will be recevied via the CHidTransport::DataIn function

Since
S60 v5.0

Parameters

TInt aConnIDThe device identifier
TUint8 aReportIDThe specific report to be queried
TUint16 aInterfaceThe interface we want to query for idle rate

GetProtocolL(TInt, TUint16)

voidGetProtocolL(TIntaConnID,
TUint16aInterface
)[pure virtual]

Request for the current device report protocol. The protocol will be received as a control report via the CHidTransport::DataIn function

Since
S60 v5.0

Parameters

TInt aConnIDThe device identifier
TUint16 aInterfaceThe interface we want to get the protocol from

GetReportL(TInt, TUint8, TUint8, TUint16, TUint16)

voidGetReportL(TIntaConnID,
TUint8aReportType,
TUint8aReportID,
TUint16aInterface,
TUint16aLength
)[pure virtual]

Request for a device report. The data will be received as a control report via the CHidTransport::DataIn function

Since
S60 v5.0

Parameters

TInt aConnIDThe device identifier
TUint8 aReportTypeThe type of report (input/output/feature) requested
TUint8 aReportIDThe specific report required
TUint16 aInterfaceThe interface we want the report from
TUint16 aLengthThe expected length of the report buffer

ProductIdL(TInt)

TUint ProductIdL(TIntaConnID)[pure virtual]

Request for the product identifier for the given device.

Since
S60 v5.0

Parameters

TInt aConnIDThe device identifier

SetIdleL(TInt, TUint8, TUint8, TUint16)

voidSetIdleL(TIntaConnID,
TUint8aDuration,
TUint8aReportID,
TUint16aInterface
)[pure virtual]

Request to set the current idle rate for a report on the device. The response will be received via the CHidTransport::CommandResult function

Since
S60 v5.0

Parameters

TInt aConnIDThe device identifier
TUint8 aDurationThe time period between idle reports (4ms per bit. An interval of 0 disables idle reports so that Interrupt reports are only ever received when the reported data has changed
TUint8 aReportIDThe specific report to be queried
TUint16 aInterfaceThe interface we want to query for idle rate

SetProtocolL(TInt, TUint16, TUint16)

voidSetProtocolL(TIntaConnID,
TUint16aValue,
TUint16aInterface
)[pure virtual]

Request to put the device in the specified protocol

Since
S60 v5.0

Parameters

TInt aConnIDThe device identifier
TUint16 aValueThe requested protocol for the device (boot or report)
TUint16 aInterfaceThe interface we want to set the protocol for

SetReportL(TInt, TUint8, TUint8, TUint16, const TDesC8 &)

voidSetReportL(TIntaConnID,
TUint8aReportType,
TUint8aReportID,
TUint16aInterface,
const TDesC8 &aReport
)[pure virtual]

Request to send a report to a device. The response will be reported via the CHidTransport::CommandResult function

Since
S60 v5.0

Parameters

TInt aConnIDThe device identifier
TUint8 aReportTypeThe type of report (input/output/feature) requested
TUint8 aReportIDThe specific report required to set
TUint16 aInterfaceThe interface we want to send the report to
const TDesC8 & aReportThe report payload to be sent to the device

VendorIdL(TInt)

TUint VendorIdL(TIntaConnID)[pure virtual]

Request for the vendor identifier for the given device.

Since
S60 v5.0

Parameters

TInt aConnIDThe device identifier