<html>
  <head>
    <meta content="text/html; charset=ISO-8859-2"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">To IMHO nejde. Ani nevim, jestli je
      normou dane poradi bitu v tech promennych uchar (a spis tusim, ze
      to je standardne narvane do typu int)<br>
      Ja uz jsem natolik zdegenerovany, ze pro typ BOOL pouzivam
      klasicky po windowsovsku: typedef unsigned char BOOL;  ;-)<br>
      (v pripade vetsiho pocu bitu funkci pro nastaveni a nulovani
      konkretniho bitu)<br>
      <br>
      Dne 12.1.2013 1:19, Miroslav Draxal napsal(a):<br>
    </div>
    <blockquote cite="mid:001201cdf05a$79669020$6c33b060$@cz"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-2">
      <meta name="Generator" content="Microsoft Word 12 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"Formátovaný v HTML Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.FormtovanvHTMLChar
        {mso-style-name:"Formátovaný v HTML Char";
        mso-style-priority:99;
        mso-style-link:"Formátovaný v HTML";
        font-family:"Consolas","serif";
        color:black;}
span.StylE-mailovZprvy19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Já
            bych k tomu potřeboval přistupovat <o:p></o:p></span></p>
        <p class="MsoNormal">SPIout_bity. PoleBitu[2]=1; //nastav 3 bit
          v 23bitovém poli. <o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Samoskou si to můžu rozepsat do
          podprogramu. Jenom mě zajímá, jestli to není nějak
          deklarovatelné. Míra<span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p> </o:p></span></p>
        <div>
          <div style="border:none;border-top:solid #B5C4DF
            1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext">From:</span></b><span
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext">
                <a class="moz-txt-link-abbreviated" href="mailto:hw-list-bounces@list.hw.cz">hw-list-bounces@list.hw.cz</a>
                [<a class="moz-txt-link-freetext" href="mailto:hw-list-bounces@list.hw.cz">mailto:hw-list-bounces@list.hw.cz</a>] <b>On Behalf Of </b>Vláďa
                Anděl<br>
                <b>Sent:</b> Saturday, January 12, 2013 1:14 AM<br>
                <b>To:</b> HW-news<br>
                <b>Subject:</b> Re: pole bitového pole v C<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Já s tím u procesorů 51 nemám problém,
          bitově adresovatelná je tam jen část datové paměti označená
          jako bdata. Tuším že prvních 20 bajtů, v asm jsem s tím už
          stráááášně dlouho nedělal.<br>
          <br>
          unsigned char bdata Bitpr;      <br>
          <br>
          sbit Pinic    =Bitpr^0; <br>
          sbit Pinic1 =Bitpr^1; <br>
          sbit Pinic2 =Bitpr^2;  <br>
          sbit Pinic3 =Bitpr^3;<br>
          sbit Pinic4 =Bitpr^4; <br>
          sbit Piniclc  =Bitpr^5; <br>
          sbit Aut      =Bitpr^6; <br>
          sbit Bloklc   =Bitpr^7; <br>
          <br>
          Anděl<br>
          <br>
          Dne 12.1.2013 1:01, Miroslav Draxal napsal(a): <o:p></o:p></p>
        <pre>Dobrý večer,<o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>Lze v C nadeklerovat pole bitu? Nějak na to nemohu přijít, ni cloudnéno mě<o:p></o:p></pre>
        <pre>nenapadá, google zatím milion odkazů ale bezvýsledně. Jak na to? Míra<o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre> <o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>typedef union {<o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>    uchar value[3];<o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>    unsigned PoleBitu[23] : 1;  &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; TOHLE FAKT NEFUNGUJE<o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>    struct {<o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>               unsigned CanSleep : 1;<o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>               unsigned Set12V : 1;<o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>               unsigned Enable12V : 1;<o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>               unsigned LCDled : 1;<o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>               unsigned PowerLed : 1; // negovaná logika HI nesvítí<o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>               unsigned MUX4051 : 3; // adresa vstupu na multiplexeru, pozor<o:p></o:p></pre>
        <pre>C zaměněno za A, sekvence čtení 0,4,2,6,1,5,3,7<o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>               unsigned X4 : 1; // volný výstup<o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>               unsigned X3 : 1; // volný výstup<o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>               unsigned X2 : 1; // volný výstup<o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>               unsigned X1 : 1; // volný výstup<o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>               unsigned Mag12 : 1;<o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>               unsigned Mag11 : 1;<o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>               unsigned Mag10 : 1;<o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>               unsigned Mag9 : 1;<o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>               unsigned Mag8 : 1;<o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>               unsigned Mag7 : 1;<o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>               unsigned Mag6 : 1;<o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>               unsigned Mag5 : 1;<o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>               unsigned Mag4 : 1;<o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>               unsigned Mag3 : 1;<o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>               unsigned Mag2 : 1;<o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>               unsigned Mag1 : 1;<o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>    } bitOut;<o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>} _SPIout_bity;<o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>__________ Informace od ESET NOD32 Antivirus, verze databaze 7885 (20130111)<o:p></o:p></pre>
        <pre>__________<o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>Tuto zpravu proveril ESET NOD32 Antivirus.<o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre><a moz-do-not-send="true" href="http://www.eset.cz">http://www.eset.cz</a><o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>_______________________________________________<o:p></o:p></pre>
        <pre>HW-list mailing list  -  sponsored by <a moz-do-not-send="true" href="http://www.HW.cz">www.HW.cz</a><o:p></o:p></pre>
        <pre><a moz-do-not-send="true" href="mailto:Hw-list@list.hw.cz">Hw-list@list.hw.cz</a><o:p></o:p></pre>
        <pre><a moz-do-not-send="true" href="http://list.hw.cz/mailman/listinfo/hw-list">http://list.hw.cz/mailman/listinfo/hw-list</a><o:p></o:p></pre>
        <p class="MsoNormal"><br>
          <br>
          <br>
          __________ Informace od ESET NOD32 Antivirus, verze databaze
          7885 (20130111) __________<br>
          <br>
          Tuto zpravu proveril ESET NOD32 Antivirus.<br>
          <br>
          <a moz-do-not-send="true" href="http://www.eset.cz">http://www.eset.cz</a><o:p></o:p></p>
      </div>
      <br>
      <br>
      __________ Informace od ESET NOD32 Antivirus, verze databaze 7885
      (20130111) __________<br>
      <br>
      Tuto zpravu proveril ESET NOD32 Antivirus.<br>
      <br>
      <a moz-do-not-send="true" href="http://www.eset.cz">http://www.eset.cz</a><br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
HW-list mailing list  -  sponsored by <a class="moz-txt-link-abbreviated" href="http://www.HW.cz">www.HW.cz</a>
<a class="moz-txt-link-abbreviated" href="mailto:Hw-list@list.hw.cz">Hw-list@list.hw.cz</a>
<a class="moz-txt-link-freetext" href="http://list.hw.cz/mailman/listinfo/hw-list">http://list.hw.cz/mailman/listinfo/hw-list</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>