<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Composite device starting from USBD example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68914/composite-device-starting-from-usbd-example</link><description>Hi everyone, 
 I&amp;#39;m starting from USBD example and I want to implement a composite device. 
 If I want to implement a composite device I have to add one interface and then the related descriptor, is it enough? 
 Thanks 
 BR</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Dec 2020 07:36:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68914/composite-device-starting-from-usbd-example" /><item><title>RE: Composite device starting from USBD example</title><link>https://devzone.nordicsemi.com/thread/282585?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2020 07:36:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c13ba405-0eb6-4762-a37e-fde008ff9494</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;There is a composite example in the SDK showing how to add two different USB interfaces in the same example:&lt;br /&gt;&lt;em&gt;\nRF5_SDK_17.0.2_d674dde\examples\peripheral\usbd_hid_composite&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The principle is the same for other USB classes (such as CDC or MSC), you just need to initialize multiple USB classes in the init phase.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You also need to ensure that you assign unique USB endpoints to the different classes, so there is no conflict.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As I mentioned in the other case I think it is important first to investigate if a composite device is really needed in your application. It might be a single CDC class is sufficient.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>