Adaptation/GUID-FDAED7A7-3D93-5B57-9879-DF8BDBE8A9BD.dita
author Graeme Price <GRAEME.PRICE@NOKIA.COM>
Fri, 15 Oct 2010 14:32:18 +0100
changeset 15 307f4279f433
permissions -rw-r--r--
Initial contribution of the Adaptation Documentation.

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->
<!-- This component and the accompanying materials are made available under the terms of the License 
"Eclipse Public License v1.0" which accompanies this distribution, 
and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
<!-- Initial Contributors:
    Nokia Corporation - initial contribution.
Contributors: 
-->
<!DOCTYPE concept
  PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<concept xml:lang="en" id="GUID-FDAED7A7-3D93-5B57-9879-DF8BDBE8A9BD"><title>Load and Open a USB Channel </title><shortdesc>Before configuration the Logical Device Driver (LDD) must be loaded and opened. </shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody><section><title>Load the USB LDD</title> <p>Before a channel can be opened the Logical Device Driver (LDD) must be loaded. Load a logical device using <xref href="GUID-C197C9A7-EA05-3F24-9854-542E984C612D.dita#GUID-C197C9A7-EA05-3F24-9854-542E984C612D/GUID-AE0D51B7-7ADC-3C9F-ACAA-8F6D9EA0AEFA"><apiname>User::LoadLogicalDevice()</apiname></xref> passing it the file name of the LDD you wish to load. </p> <codeblock id="GUID-E7E137E3-3E68-5545-9100-A327EEC9092A" xml:space="preserve">_LIT(KLddName, "eusbcsc.ldd");
TInt r = User::LoadLogicalDevice(KLddName);</codeblock> </section> <section><title>Open a USB Channel</title> <p>Open your USB channel using the LDD open function <xref href="GUID-4D1AE286-41EE-3361-948A-3E8634D81DBA.dita#GUID-4D1AE286-41EE-3361-948A-3E8634D81DBA/GUID-F4611D22-8893-3A1D-8B76-18045707DF63"><apiname>RDevUsbcScClient::Open()</apiname></xref>. </p> <codeblock id="GUID-EB86689D-EB77-53CE-84AE-E7AE3AE2E7CB" xml:space="preserve">RDevUsbcScClient gPort;
TInt r = gPort.Open(0);</codeblock> </section> <section><p>After you have loaded and opened the USB LDD you should <xref href="GUID-18DD4FE5-6641-5A0E-A00E-DC0C00639CE4.dita">Set the Configuration Descriptors</xref>. </p> </section> </conbody></concept>