⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lcd__driver_8h.html

📁 SMS傳送Sourcode,compiler with C,AT command
💻 HTML
📖 第 1 页 / 共 3 页
字号:
    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p><p>Definition at line <a class="el" href="LCD__driver_8c-source.html#l00174">174</a> of file <a class="el" href="LCD__driver_8c-source.html">LCD_driver.c</a>.<p>References <a class="el" href="LCD__driver_8c-source.html#l00063">LCD_character_table</a>, <a class="el" href="LCD__driver_8c-source.html#l00038">LCD_Data</a>, and <a class="el" href="AVRGSM__zip_8c-source.html#l00027">mask</a>.<p>Referenced by <a class="el" href="LCD__driver_8c-source.html#l00255">LCD_SOF_interrupt()</a>.<p><pre class="fragment"><div>00175 {00176 00177     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> seg = 0x0000;                  <span class="comment">// Holds the segment pattern</span>00178     <span class="keywordtype">char</span> <a class="code" href="AVRGSM__zip_8c.html#a1">mask</a>, nibble;00179     <span class="keywordtype">char</span> *ptr;00180     <span class="keywordtype">char</span> i;00181 00182 00183     <span class="keywordflow">if</span> (digit &gt; 5)                              <span class="comment">// Skip if digit is illegal</span>00184         <span class="keywordflow">return</span>;00185 00186     <span class="comment">//Lookup character table for segmet data</span>00187     <span class="keywordflow">if</span> ((c &gt;= <span class="charliteral">'*'</span>) &amp;&amp; (c &lt;= <span class="charliteral">'z'</span>))00188     {00189         <span class="comment">// c is a letter</span>00190         <span class="keywordflow">if</span> (c &gt;= <span class="charliteral">'a'</span>)                           <span class="comment">// Convert to upper case</span>00191             c &amp;= ~0x20;                         <span class="comment">// if necessarry</span>00192 00193         c -= <span class="charliteral">'*'</span>;00194 00195         seg = <a class="code" href="LCD__driver_8c.html#a10">LCD_character_table</a>[c];00196     }00197 00198     <span class="comment">// Adjust mask according to LCD segment mapping</span>00199     <span class="keywordflow">if</span> (digit &amp; 0x01)00200         <a class="code" href="AVRGSM__zip_8c.html#a1">mask</a> = 0x0F;                <span class="comment">// Digit 1, 3, 5</span>00201     <span class="keywordflow">else</span>00202         <a class="code" href="AVRGSM__zip_8c.html#a1">mask</a> = 0xF0;                <span class="comment">// Digit 0, 2, 4</span>00203 00204     ptr = <a class="code" href="LCD__driver_8c.html#a3">LCD_Data</a> + (digit &gt;&gt; 1);  <span class="comment">// digit = {0,0,1,1,2,2}</span>00205 00206     <span class="keywordflow">for</span> (i = 0; i &lt; 4; i++)00207     {00208         nibble = seg &amp; 0x000F;00209         seg &gt;&gt;= 4;00210         <span class="keywordflow">if</span> (digit &amp; 0x01)00211             nibble &lt;&lt;= 4;00212         *ptr = (*ptr &amp; <a class="code" href="AVRGSM__zip_8c.html#a1">mask</a>) | nibble;00213         ptr += 5;00214     }00215 }</div></pre>    </td>  </tr></table><hr><h2>Variable Documentation</h2><a class="anchor" name="a16" doxytag="LCD_driver.h::gColon" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> char <a class="el" href="LCD__driver_8h.html#a16">gColon</a>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p><p>Definition at line <a class="el" href="LCD__driver_8h-source.html#l00057">57</a> of file <a class="el" href="LCD__driver_8h-source.html">LCD_driver.h</a>.<p>Referenced by <a class="el" href="LCD__functions_8c-source.html#l00171">LCD_Colon()</a>, and <a class="el" href="LCD__driver_8c-source.html#l00255">LCD_SOF_interrupt()</a>.    </td>  </tr></table><a class="anchor" name="a15" doxytag="LCD_driver.h::gFlashTimer" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> char <a class="el" href="LCD__driver_8h.html#a15">gFlashTimer</a>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p><p>Definition at line <a class="el" href="LCD__driver_8h-source.html#l00056">56</a> of file <a class="el" href="LCD__driver_8h-source.html">LCD_driver.h</a>.<p>Referenced by <a class="el" href="LCD__functions_8c-source.html#l00212">LCD_FlashReset()</a>, and <a class="el" href="LCD__driver_8c-source.html#l00255">LCD_SOF_interrupt()</a>.    </td>  </tr></table><a class="anchor" name="a11" doxytag="LCD_driver.h::gLCD_Update_Required" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> char <a class="el" href="LCD__driver_8h.html#a11">gLCD_Update_Required</a>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p><p>Definition at line <a class="el" href="LCD__driver_8h-source.html#l00052">52</a> of file <a class="el" href="LCD__driver_8h-source.html">LCD_driver.h</a>.<p>Referenced by <a class="el" href="LCD__driver_8c-source.html#l00134">LCD_Init()</a>, <a class="el" href="LCD__functions_8c-source.html#l00092">LCD_puts()</a>, <a class="el" href="LCD__functions_8c-source.html#l00051">LCD_puts_f()</a>, <a class="el" href="LCD__driver_8c-source.html#l00255">LCD_SOF_interrupt()</a>, and <a class="el" href="LCD__functions_8c-source.html#l00189">LCD_UpdateRequired()</a>.    </td>  </tr></table><a class="anchor" name="a17" doxytag="LCD_driver.h::gScroll" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> signed char <a class="el" href="LCD__driver_8h.html#a17">gScroll</a>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p><p>Definition at line <a class="el" href="LCD__driver_8h-source.html#l00058">58</a> of file <a class="el" href="LCD__driver_8h-source.html">LCD_driver.h</a>.<p>Referenced by <a class="el" href="LCD__functions_8c-source.html#l00092">LCD_puts()</a>, <a class="el" href="LCD__functions_8c-source.html#l00051">LCD_puts_f()</a>, <a class="el" href="LCD__driver_8c-source.html#l00255">LCD_SOF_interrupt()</a>, and <a class="el" href="LCD__functions_8c-source.html#l00189">LCD_UpdateRequired()</a>.    </td>  </tr></table><a class="anchor" name="a14" doxytag="LCD_driver.h::gScrollMode" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> char <a class="el" href="LCD__driver_8h.html#a14">gScrollMode</a>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p><p>Definition at line <a class="el" href="LCD__driver_8h-source.html#l00055">55</a> of file <a class="el" href="LCD__driver_8h-source.html">LCD_driver.h</a>.<p>Referenced by <a class="el" href="LCD__functions_8c-source.html#l00092">LCD_puts()</a>, <a class="el" href="LCD__functions_8c-source.html#l00051">LCD_puts_f()</a>, <a class="el" href="LCD__driver_8c-source.html#l00255">LCD_SOF_interrupt()</a>, and <a class="el" href="LCD__functions_8c-source.html#l00189">LCD_UpdateRequired()</a>.    </td>  </tr></table><a class="anchor" name="a13" doxytag="LCD_driver.h::gTextBuffer" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> char <a class="el" href="LCD__driver_8h.html#a13">gTextBuffer</a>[TEXTBUFFER_SIZE]          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p><p>Definition at line <a class="el" href="LCD__driver_8h-source.html#l00054">54</a> of file <a class="el" href="LCD__driver_8h-source.html">LCD_driver.h</a>.<p>Referenced by <a class="el" href="LCD__functions_8c-source.html#l00151">LCD_Clear()</a>, <a class="el" href="LCD__functions_8c-source.html#l00133">LCD_putc()</a>, <a class="el" href="LCD__functions_8c-source.html#l00092">LCD_puts()</a>, <a class="el" href="LCD__functions_8c-source.html#l00051">LCD_puts_f()</a>, and <a class="el" href="LCD__driver_8c-source.html#l00255">LCD_SOF_interrupt()</a>.    </td>  </tr></table><a class="anchor" name="a12" doxytag="LCD_driver.h::LCD_Data" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> char <a class="el" href="LCD__driver_8h.html#a12">LCD_Data</a>[LCD_REGISTER_COUNT]          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p><p>Definition at line <a class="el" href="LCD__driver_8h-source.html#l00053">53</a> of file <a class="el" href="LCD__driver_8h-source.html">LCD_driver.h</a>.<p>Referenced by <a class="el" href="LCD__driver_8c-source.html#l00230">LCD_AllSegments()</a>, <a class="el" href="LCD__driver_8c-source.html#l00255">LCD_SOF_interrupt()</a>, and <a class="el" href="LCD__driver_8c-source.html#l00174">LCD_WriteDigit()</a>.    </td>  </tr></table><hr size="1"><address style="align: right;"><small>Generated on Tue Nov 1 16:21:39 2005 for AVR323 Interfacing GSM modems by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7 </small></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -