<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pl-pl">
<link rel="self" type="application/atom+xml" href="https://forum.atnel.pl/feed.php?f=8&amp;t=4919&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2013-11-25T23:22:32+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=8&amp;t=4919&amp;mode</id>
<entry>
<author><name><![CDATA[fosfolipid]]></name></author>
<updated>2013-11-25T23:22:32+01:00</updated>
<published>2013-11-25T23:22:32+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=4919&amp;p=58587#p58587</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=4919&amp;p=58587#p58587"/>
<title type="html"><![CDATA[RFM70 + RSSI]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=4919&amp;p=58587#p58587"><![CDATA[
Cześć,<br />czy ktoś z Was skutecznie załączył pomiar RSSI i wykrył na jego podstawie nośną? Chodzi mi o RFM70 (ewentualnie RFM73) <br /><br />dostosowałem kod stąd: <a href="http://forum.arduino.cc/index.php?topic=107699.0"  class="postlink">http://forum.arduino.cc/index.php?topic=107699.0</a>, wygląda to tak:<br /><br />[syntax=c]void rfm70_setRSSI( unsigned char val, unsigned char enabled )<br />{<br />   unsigned char j;<br />   unsigned char WriteArr&#91; 12 &#93;;<br /><br />   unsigned long mask=0xA67F0600;<br />   if (enabled&gt;0)<br />       mask=0xA67F0200;<br />   if (val&gt;15)<br />       val=15;<br /><br />   mask+=(val&lt;&lt;2);<br /><br />   SwitchCFG(1);<br /><br />   for( j = 0; j &lt; 4; j++ ){<br />     WriteArr&#91; j &#93;=( mask&gt;&gt;(8*(j) ) )&amp;0xff;<br />   }<br />   SPI_Write_Buf( 5, WriteArr, 4 );<br /><br />   SwitchCFG(0);<br />}[/syntax]<br /><br />a w main wywołuje to:<br />[syntax=c]rfm70_setRSSI( 2, 1 );[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=660">fosfolipid</a> — 25 lis 2013, o 23:22</p><hr />
]]></content>
</entry>
</feed>