<?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=4&amp;t=7614&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2014-06-30T17:07:45+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=4&amp;t=7614&amp;mode</id>
<entry>
<author><name><![CDATA[mcu4040]]></name></author>
<updated>2014-06-30T17:07:45+01:00</updated>
<published>2014-06-30T17:07:45+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=7614&amp;p=86175#p86175</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=7614&amp;p=86175#p86175"/>
<title type="html"><![CDATA[Re: Problem z struktura w argumencie funkcji.]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=7614&amp;p=86175#p86175"><![CDATA[
Czy nie prościej napisać:<br />ZROBEFEKT(&amp;jeden);<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=4861">mcu4040</a> — 30 cze 2014, o 17:07</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mirekk36]]></name></author>
<updated>2014-06-30T07:48:30+01:00</updated>
<published>2014-06-30T07:48:30+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=7614&amp;p=86147#p86147</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=7614&amp;p=86147#p86147"/>
<title type="html"><![CDATA[Re: Problem z struktura w argumencie funkcji.]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=7614&amp;p=86147#p86147"><![CDATA[
warto też rzucić okiem tutaj:<br /><br /><!-- m --><a class="postlink" href="http://mirekk36.blogspot.com/2013/07/struktury-w-c-wyjasnijmy-sobie-dokadnie.html" >http://mirekk36.blogspot.com/2013/07/st ... adnie.html</a><!-- m --><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=54">mirekk36</a> — 30 cze 2014, o 07:48</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[xor]]></name></author>
<updated>2014-06-30T07:00:41+01:00</updated>
<published>2014-06-30T07:00:41+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=7614&amp;p=86145#p86145</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=7614&amp;p=86145#p86145"/>
<title type="html"><![CDATA[Re: Problem z struktura w argumencie funkcji.]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=7614&amp;p=86145#p86145"><![CDATA[
Przede wszystkim zapoznaj się z tym: <a href="http://forum.atnel.pl/topic7402.html"  class="postlink">http://forum.atnel.pl/topic7402.html</a>. <br />A potem deklarację struktury przenieś przed prototyp funkcji ZROBEFEKT i spróbuj jeszcze raz <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":-)" title="Szczęśliwy" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1774">xor</a> — 30 cze 2014, o 07:00</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[bartiszosti]]></name></author>
<updated>2014-06-30T00:39:43+01:00</updated>
<published>2014-06-30T00:39:43+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=7614&amp;p=86136#p86136</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=7614&amp;p=86136#p86136"/>
<title type="html"><![CDATA[Problem z struktura w argumencie funkcji.]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=7614&amp;p=86136#p86136"><![CDATA[
Witam, mam dziwny blad, poniewaz robie program ktory bierze w argumencie wskaznik do struktury i odczytuje z niego przebieg efektu jaki maja tworzyc diody w ukladzie z wykorzystaniem rejestru przesuwnego <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /> Wysle kod i wstawie jakie mam bledy, prosze  pomoc poniewaz ja nie wiem juz co tam jest zle, a niby robie wszystko jak w ksiazce, ale jednak cos nie dziala...<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">void ZROBEFEKT(struct efekt *); //* tutaj wyskakuje:<br />Multiple markers at this line<br />   - 'struct efekt' declared inside parameter list &#91;enabled by default&#93;<br />   - expected 'struct efekt *' but argument is of type 'struct efekt *'<br />   - its scope is only this definition or declaration, which is probably not what you want &#91;enabled by <br />    default&#93;<br />*//<br /><br />struct efekt {<br />  uint8_t diody&#91;1&#93;;<br />  uint8_t size;<br />  uint8_t time1;<br />};<br /><br />int main (void) {<br /><br />   struct efekt *wsk,jeden;<br />   wsk = &amp;jeden;<br /><br />   jeden.diody&#91;0&#93; = 0b00000000;<br />   jeden.diody&#91;1&#93; = 0b11111111;<br />   jeden.size = 1;<br />   jeden.time1 = 200;<br /><br />   while(1) {<br />         ZROBEFEKT(wsk); //* tutaj:<br />passing argument 1 of 'ZROBEFEKT' from incompatible pointer type &#91;enabled by default&#93;<br />*//<br />   }<br />}<br /><br />  void ZROBEFEKT(struct efekt * ptr) { //* a tutaj:<br />conflicting types for 'ZROBEFEKT'<br />*//<br />   uint8_t i,k;<br />   for(i=0;i&lt;=ptr-&gt;size;i++) {<br />      for(k=0;k&lt;=ILOSCDIOD;k++) {<br />         if(((ptr-&gt;diody&#91;i&#93;&gt;&gt;k)&amp;(0x01))==1) ON();<br />         if(((ptr-&gt;diody&#91;i&#93;&gt;&gt;k)&amp;(0x01))==0) OFF();<br />      }<br />      ZAPISZ();<br />      _delay_ms(ptr-&gt;time1);<br />   }<br />}<br /></div><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=4976">bartiszosti</a> — 30 cze 2014, o 00:39</p><hr />
]]></content>
</entry>
</feed>