MDriverAccess Class Reference
Driver access interface Interface allowing drivers to request data from and send data to devices via the Generic HID layer.
Public Member Functions
|
TUint
|
CountryCodeL
(
TInt
)
|
void
|
DataOutL
(
TInt
,
TUint8
, const
TDesC8
&,
TUint16
)
|
void
|
GetIdleL
(
TInt
,
TUint8
,
TUint16
)
|
void
|
GetProtocolL
(
TInt
,
TUint16
)
|
void
|
GetReportL
(
TInt
,
TUint8
,
TUint16
,
TUint16
)
|
TUint
|
ProductIdL
(
TInt
)
|
CReportRoot
*
|
ReportDescriptor
(
TInt
)
|
void
|
SetIdleL
(
TInt
,
TUint8
,
TUint8
,
TUint16
,
CHidDriver
*)
|
void
|
SetProtocolL
(
TInt
,
TUint16
,
TProtocols
,
CHidDriver
*)
|
void
|
SetReportL
(
TInt
,
TUint8
,
TReportType
, const
TDesC8
&,
TUint16
,
CHidDriver
*)
|
TUint
|
VendorIdL
(
TInt
)
|
Member Functions Documentation
CountryCodeL(TInt)
TUint
|
CountryCodeL
|
(
|
TInt
|
aConnID
|
)
|
[pure virtual]
|
Retrieves the country code for the HID device
Parameters
TInt
aConnID
|
The device identifier
|
DataOutL(TInt, TUint8, const TDesC8 &, TUint16)
Sends a report to the device (from host) using Interrupt Channel as DATA
Parameters
TInt
aConnectionId
|
The device ID
|
TUint8
aReportId
|
The report to receive the setup report
|
const
TDesC8
& aPayload
|
The report being sent to the device
|
TUint16
aInterface
|
The current interface being used by the driver
|
GetIdleL(TInt, TUint8, TUint16)
void
|
GetIdleL
|
(
|
TInt
|
aConnectionId,
|
|
TUint8
|
aReportId,
|
|
TUint16
|
aInterface
|
|
)
|
[pure virtual]
|
Requests the current Idle setting for the device Leaves whit KErrInUse The request was not successful because the transport layer is busy with previous request and KErrNotReady The request failed because the device is currently unavailable
Parameters
TInt
aConnectionId
|
The device ID
|
TUint8
aReportId
|
The report required from the device
|
TUint16
aInterface
|
The current interface being used by the driver
|
GetProtocolL(TInt, TUint16)
void
|
GetProtocolL
|
(
|
TInt
|
aConnectionID,
|
|
TUint16
|
aInterface
|
|
)
|
[pure virtual]
|
Requests the current protocol for the device (boot or report) Leaves whit KErrInUse The request was not successful because the transport layer is busy with previous request and KErrNotReady The request failed because the device is currently unavaila
Parameters
TInt
aConnectionID
|
The connection id
|
TUint16
aInterface
|
The current interface being used by the driver
|
GetReportL(TInt, TUint8, TUint16, TUint16)
Requests a report from the device Leaves whit KErrInUse The request was not successful because the transport layer is busy with previous request and KErrNotReady The request failed because the device is currently unavailable
Parameters
TInt
aConnectionId
|
The connection id
|
TUint8
aReportId
|
The report required from the device
|
TUint16
aInterface
|
The current interface being used by the driver
|
TUint16
aLength
|
** NOT USED **
|
ProductIdL(TInt)
TUint
|
ProductIdL
|
(
|
TInt
|
aConnID
|
)
|
[pure virtual]
|
Retrieves the product identifier for the HID device
Parameters
TInt
aConnID
|
The device identifier
|
ReportDescriptor(TInt)
A request for the parsed descriptor container object so the driver can retrieve the report format(s)
Parameters
TInt
aConnectionId
|
The device ID
|
SetIdleL(TInt, TUint8, TUint8, TUint16, CHidDriver *)
Sets the idle interval for interrupt data. Leaves whit KErrInUse The request was not successful because the transport layer is busy with previous request and KErrNotReady The request failed because the device is currently unavailable
Parameters
TInt
aConnectionId
|
The device ID
|
TUint8
aDuration
|
The idle interval, in steps of 0.04ms intervals (where 1 = 0.04ms, 2=0.08ms). 0 will disable idle so reports are only sent when the state of the device changes
|
TUint8
aReportId
|
The report whose idle rate is being set
|
TUint16
aInterface
|
The current interface being used by the driver aDriver Calling driver
|
CHidDriver
* aDriver
|
|
SetProtocolL(TInt, TUint16, TProtocols, CHidDriver *)
Sets the protocol to be used for reports Leaves whit KErrInUse The request was not successful because the transport layer is busy with previous request and KErrNotReady The request failed because the device is currently unavailable
Parameters
TInt
aConnectionId
|
The device ID
|
TUint16
aInterface
|
The current interface being used by the driver
|
TProtocols
aProtocol
|
The required protocol (boot or report) aDriver Calling driver
|
CHidDriver
* aDriver
|
|
SetReportL(TInt, TUint8, TReportType, const TDesC8 &, TUint16, CHidDriver *)
Sends a report to the device
Parameters
TInt
aConnectionId
|
The device ID
|
TUint8
aReportId
|
The report to receive the setup report
|
TReportType
aReportType
|
The type of report being sent to the device (input, output or Feature)
|
const
TDesC8
& aPayload
|
The report being sent to the device aDriver Calling driver
|
TUint16
aInterface
|
The current interface being used by the driver
|
CHidDriver
* aDriver
|
|
VendorIdL(TInt)
TUint
|
VendorIdL
|
(
|
TInt
|
aConnID
|
)
|
[pure virtual]
|
Retrieves the for the HID device
Parameters
TInt
aConnID
|
The device identifier
|
Member Enumerations Documentation
Enum TProtocols
Return codes from the Generic HID to the device drivers Note: The enumeration values map directly to the HID equivalent values (Passed as TUint8 values to the transport layer)
Enumerators
EBoot = 0
|
Boot Protocol
|
EReport = 1
|
Report Protocol
|
Enum TReportType
The type of report requested from the device Note: The enumeration values map directly to the HID equivalent values (Passed as TUint16 values to the transport layer)
Enumerators
EInput = 1
|
Input report
|
EOutput
|
Output report
|
EFeature
|
Feature report
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.