Load and Open a USB Channel

Before configuration the Logical Device Driver (LDD) must be loaded and opened.

Load the USB LDD

Before a channel can be opened the Logical Device Driver (LDD) must be loaded. Load a logical device using User::LoadLogicalDevice() passing it the file name of the LDD you wish to load.

_LIT(KLddName, "eusbcsc.ldd");
TInt r = User::LoadLogicalDevice(KLddName);

Open a USB Channel

Open your USB channel using the LDD open function RDevUsbcScClient::Open().

RDevUsbcScClient gPort;
TInt r = gPort.Open(0);

After you have loaded and opened the USB LDD you should Set the Configuration Descriptors.