Adaptation/GUID-FDAED7A7-3D93-5B57-9879-DF8BDBE8A9BD.dita
changeset 15 307f4279f433
equal deleted inserted replaced
14:578be2adaf3e 15:307f4279f433
       
     1 <?xml version="1.0" encoding="utf-8"?>
       
     2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->
       
     3 <!-- This component and the accompanying materials are made available under the terms of the License 
       
     4 "Eclipse Public License v1.0" which accompanies this distribution, 
       
     5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
       
     6 <!-- Initial Contributors:
       
     7     Nokia Corporation - initial contribution.
       
     8 Contributors: 
       
     9 -->
       
    10 <!DOCTYPE concept
       
    11   PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
       
    12 <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");
       
    13 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;
       
    14 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>