<?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>EP 8 IN enabled check when writing a USB audio device (microphone)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52457/ep-8-in-enabled-check-when-writing-a-usb-audio-device-microphone</link><description>Hi, 
 When I write a very simple USB audio device that just pass a sinuous wave created in a timer that runs at a 16KHz freq - how can I tell &amp;quot;someone&amp;quot; on the host listens to it and that I should keep passing data to the app_usbd_audio_class_tx_start</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 23 Sep 2019 13:59:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52457/ep-8-in-enabled-check-when-writing-a-usb-audio-device-microphone" /><item><title>RE: EP 8 IN enabled check when writing a USB audio device (microphone)</title><link>https://devzone.nordicsemi.com/thread/211315?ContentTypeID=1</link><pubDate>Mon, 23 Sep 2019 13:59:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bd25348-cd77-4c73-95f5-43b3587c528d</guid><dc:creator>Or</dc:creator><description>&lt;p&gt;Look at the reply I wrote for &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/52335/passing-audio-data-pcm-16-bit-to-a-usb-audio-device-not-from-headphones"&gt;this&lt;/a&gt; question.&lt;/p&gt;
&lt;p&gt;You can find source code that shows this behavior in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/52242/passing-data-from-pdm-callback-to-usb-audio-device"&gt;this&lt;/a&gt; question (the full main.c was posted 6 days ago by me)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: EP 8 IN enabled check when writing a USB audio device (microphone)</title><link>https://devzone.nordicsemi.com/thread/211307?ContentTypeID=1</link><pubDate>Mon, 23 Sep 2019 13:51:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18c6aacb-6150-44e0-82e3-abba75a8b3fe</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;How do you decide that the EP is disabled? Is it because it returns NRF_ERROR_INVALID_STATE? if so, do you know what check inside app_usbd_ep_transfer() or what function call that returns this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: EP 8 IN enabled check when writing a USB audio device (microphone)</title><link>https://devzone.nordicsemi.com/thread/211267?ContentTypeID=1</link><pubDate>Mon, 23 Sep 2019 12:51:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc1c9f64-512a-4a1f-b9d2-fffd5678b7b3</guid><dc:creator>Or</dc:creator><description>&lt;p&gt;What can disable an endpoint ?&lt;/p&gt;
&lt;p&gt;Why does it gets disabled in the middle of operation ?&lt;/p&gt;
&lt;p&gt;Is there a driver event for an endpoint getting enabled/disabled ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: EP 8 IN enabled check when writing a USB audio device (microphone)</title><link>https://devzone.nordicsemi.com/thread/211226?ContentTypeID=1</link><pubDate>Mon, 23 Sep 2019 11:56:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:501d5165-ff9d-45ad-b745-3536be36bb4f</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;If you look into:&lt;/p&gt;
&lt;p&gt;app_usbd_audio_class_tx_start() -&amp;gt;&amp;nbsp;app_usbd_ep_transfer()&lt;/p&gt;
&lt;p&gt;This function will check the EP:&amp;nbsp;nrf_drv_usbd_ep_enable_check(ep), and it will return NRF_ERROR_INVALID_STATE. So it basically checks what you want to know, but if you like, you can use nrf_drv_usbd_ep_enable_check(ep); before calling app_usbd_audio_class_tx_start().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>