<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forums.obdev.at/app.php/feed/topic/3466" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2009-11-01T10:58:06+02:00</updated>

	<author><name><![CDATA[Objective Development Forums]]></name></author>
	<id>https://forums.obdev.at/app.php/feed/topic/3466</id>

		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2009-11-01T10:58:06+02:00</updated>

		<published>2009-11-01T10:58:06+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3466&amp;p=11723#p11723</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3466&amp;p=11723#p11723"/>
		<title type="html"><![CDATA[Re: When the  PC turn on or off?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3466&amp;p=11723#p11723"><![CDATA[
The PC won't tell you directly when it turns on or of. You can check for SOF pulses on D-. They occur every 1 ms if the PC is on. It helps to have D- on an interrupt or even use D- for the USB interrupt in order to detect these pulses.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Sun Nov 01, 2009 10:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dehghanimeh]]></name></author>
		<updated>2009-10-30T23:18:14+02:00</updated>

		<published>2009-10-30T23:18:14+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3466&amp;p=11676#p11676</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3466&amp;p=11676#p11676"/>
		<title type="html"><![CDATA[When the  PC turn on or off?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3466&amp;p=11676#p11676"><![CDATA[
hi<br />I want to know that When the  PC turn on or off (hid-data sampel)<br />i am using this macro<br /><div class="codebox"><p>Code: </p><pre><code>#define USB_RX_USER_HOOK(data, len)     if(usbRxToken == (uchar)USBPID_SETUP) blinkLED(data, len);<br />--------------------------------------------<br />void blinkLED(uchar *data, uchar len)<br />{<br />usbRequest_t    *rq = (void *)data;<br /><br />ledRedOff();<br />}<br /><br /></code></pre></div> <br />i changed the input blinkLED function for accept  any setup control transfer  data<br />but i don't know which field of usbRequest_t  and value means that the PC turn on or off.<br /><br />thank you<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1681">dehghanimeh</a> — Fri Oct 30, 2009 11:18 pm</p><hr />
]]></content>
	</entry>
	</feed>
