<?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>USB - assigning custom endpoints</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90380/usb---assigning-custom-endpoints</link><description>Hi, I need to setup a vendor specific class USB device driver. The driver shall present the following data endpoint: 
 0x84 for Bulk IN endpoint 0x03 for Bulk OUT endpoint 
 Most of the available Zephyr samples have a data endpoint with address 0x81 and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Aug 2022 05:59:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90380/usb---assigning-custom-endpoints" /><item><title>RE: USB - assigning custom endpoints</title><link>https://devzone.nordicsemi.com/thread/379609?ContentTypeID=1</link><pubDate>Tue, 02 Aug 2022 05:59:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffbb5b1e-47c9-44fb-bbfa-aa2adfa40230</guid><dc:creator>Gabriele</dc:creator><description>&lt;p&gt;Really device and host communicate over my desk. My conclusion is that the initial requirement of constrained endpoint numbering was unfounded.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB - assigning custom endpoints</title><link>https://devzone.nordicsemi.com/thread/378956?ContentTypeID=1</link><pubDate>Wed, 27 Jul 2022 14:40:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87301099-8844-407a-ad94-567064f3f03e</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;You are right, it looks like&amp;nbsp;usb_validate_ep_cfg_data() in&amp;nbsp;usb_fix_descriptor() from usb_descriptor.c does ensure ep_addr are sequentially mapped. So I guess you will need to edit that implementation in &lt;span&gt;usb_validate_ep_cfg_data() if you want to override this in some way.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB - assigning custom endpoints</title><link>https://devzone.nordicsemi.com/thread/378762?ContentTypeID=1</link><pubDate>Tue, 26 Jul 2022 14:49:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e11b84d1-d779-4bc3-8327-4111f52991a7</guid><dc:creator>Gabriele</dc:creator><description>&lt;p&gt;It doesn&amp;#39;t work .I already checked it out.&lt;br /&gt;If I set&lt;br /&gt;&lt;br /&gt;#define LOOPBACK_OUT_EP_ADDR 0x03&lt;br /&gt;#define LOOPBACK_IN_EP_ADDR 0x84&lt;br /&gt;&lt;br /&gt;I always get&lt;br /&gt;$ lsusb -d 1211:000B -v&lt;br /&gt; Endpoint Descriptor:&lt;br /&gt; ..&lt;br /&gt; bEndpointAddress 0x81 EP 1 IN&lt;br /&gt; ..&lt;br /&gt; bEndpointAddress 0x01 EP 1 OUT&lt;br /&gt;&lt;br /&gt;Gabriele&lt;/p&gt;
&lt;pre id="codecell1"&gt;&lt;span class="n"&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB - assigning custom endpoints</title><link>https://devzone.nordicsemi.com/thread/378735?ContentTypeID=1</link><pubDate>Tue, 26 Jul 2022 13:31:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f97930a-a399-4e5b-9870-bfd837afe1c6</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I did a quick search for&amp;nbsp;ep_addr, and could find that most USB class drivers seems to have defines for this,&amp;nbsp;I don&amp;#39;t see any reason why you can&amp;#39;t change them. Also see:&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/latest/services/usb/uds.html"&gt;https://docs.zephyrproject.org/latest/services/usb/uds.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>