<?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>nRF5340: Interrupt on VBUS detection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94813/nrf5340-interrupt-on-vbus-detection</link><description>Hi, 
 I want to get the VBUS input detection status (USB detected or removed). 
 I have confirmed that the current state can be known by reading the value of the register USBREGSTATUS. 
 Is there a way to detect state changes and raise an interrupt event</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Dec 2022 23:44:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94813/nrf5340-interrupt-on-vbus-detection" /><item><title>RE: nRF5340: Interrupt on VBUS detection</title><link>https://devzone.nordicsemi.com/thread/400488?ContentTypeID=1</link><pubDate>Tue, 13 Dec 2022 23:44:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f33dad98-0d7d-4e20-8cc5-4c6b782f5a88</guid><dc:creator>gocchan</dc:creator><description>&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;I was able to get VBUS events by using&amp;nbsp;&lt;span&gt;usb_dc_attach&lt;/span&gt;() and u&lt;span&gt;sb_dc_set_status_callback&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340: Interrupt on VBUS detection</title><link>https://devzone.nordicsemi.com/thread/400346?ContentTypeID=1</link><pubDate>Tue, 13 Dec 2022 10:25:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db995e46-834f-4bee-87ca-98abeb7843a3</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;You can just use the USB device controller status callback, which can be set via usb_dc_set_status_callback(...) function. The callback will get the USB_DC_CONNECTED and USB_DC_DISCONNECTED events.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340: Interrupt on VBUS detection</title><link>https://devzone.nordicsemi.com/thread/400343?ContentTypeID=1</link><pubDate>Tue, 13 Dec 2022 10:24:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d2b3bb4-58c3-48fb-a147-5c35305c85ea</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hi Gotoda, just letting you know I have started looking into this.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>