📄 lcd__driver_8h.html
字号:
<tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> #define pLCDREG ((unsigned char *)(0xEC)) </td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><p>Definition at line <a class="el" href="LCD__driver_8h-source.html#l00043">43</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#l00255">LCD_SOF_interrupt()</a>. </td> </tr></table><a class="anchor" name="a6" doxytag="LCD_driver.h::SCROLLMODE_LOOP" ></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"> #define SCROLLMODE_LOOP 0x02 </td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><p>Definition at line <a class="el" href="LCD__driver_8h-source.html#l00033">33</a> of file <a class="el" href="LCD__driver_8h-source.html">LCD_driver.h</a>. </td> </tr></table><a class="anchor" name="a5" doxytag="LCD_driver.h::SCROLLMODE_ONCE" ></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"> #define SCROLLMODE_ONCE 0x01 </td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><p>Definition at line <a class="el" href="LCD__driver_8h-source.html#l00032">32</a> of file <a class="el" href="LCD__driver_8h-source.html">LCD_driver.h</a>. </td> </tr></table><a class="anchor" name="a7" doxytag="LCD_driver.h::SCROLLMODE_WAVE" ></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"> #define SCROLLMODE_WAVE 0x03 </td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><p>Definition at line <a class="el" href="LCD__driver_8h-source.html#l00034">34</a> of file <a class="el" href="LCD__driver_8h-source.html">LCD_driver.h</a>. </td> </tr></table><a class="anchor" name="a4" doxytag="LCD_driver.h::TEXTBUFFER_SIZE" ></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"> #define TEXTBUFFER_SIZE 25 </td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><p>Definition at line <a class="el" href="LCD__driver_8h-source.html#l00030">30</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>, and <a class="el" href="LCD__functions_8c-source.html#l00051">LCD_puts_f()</a>. </td> </tr></table><hr><h2>Function Documentation</h2><a class="anchor" name="a20" doxytag="LCD_driver.h::LCD_AllSegments" ></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"> void LCD_AllSegments </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">char </td> <td class="mdname1" valign="top" nowrap> <em>show</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><p>Definition at line <a class="el" href="LCD__driver_8c-source.html#l00230">230</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#l00038">LCD_Data</a>, and <a class="el" href="LCD__driver_8h-source.html#l00029">LCD_REGISTER_COUNT</a>.<p>Referenced by <a class="el" href="LCD__driver_8c-source.html#l00134">LCD_Init()</a>.<p><pre class="fragment"><div>00231 {00232 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> i;00233 00234 <span class="keywordflow">if</span> (show)00235 show = 0xFF;00236 00237 <span class="comment">// Set/clear all bits in all LCD registers</span>00238 <span class="keywordflow">for</span> (i=0; i < <a class="code" href="LCD__driver_8h.html#a3">LCD_REGISTER_COUNT</a>; i++)00239 *(<a class="code" href="LCD__driver_8c.html#a3">LCD_Data</a> + i) = show;00240 }</div></pre> </td> </tr></table><a class="anchor" name="a18" doxytag="LCD_driver.h::LCD_Init" ></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"> void LCD_Init </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><p>Definition at line <a class="el" href="LCD__driver_8c-source.html#l00134">134</a> of file <a class="el" href="LCD__driver_8c-source.html">LCD_driver.c</a>.<p>References <a class="el" href="LCD__functions_8c-source.html#l00030">FALSE</a>, <a class="el" href="LCD__driver_8c-source.html#l00035">gLCD_Update_Required</a>, <a class="el" href="LCD__driver_8c-source.html#l00230">LCD_AllSegments()</a>, <a class="el" href="LCD__driver_8h-source.html#l00046">LCD_CONTRAST_LEVEL</a>, and <a class="el" href="LCD__driver_8h-source.html#l00026">LCD_INITIAL_CONTRAST</a>.<p>Referenced by <a class="el" href="main_8c-source.html#l00206">Initialization()</a>.<p><pre class="fragment"><div>00135 {00136 <a class="code" href="LCD__driver_8h.html#a20">LCD_AllSegments</a>(FALSE); <span class="comment">// Clear segment buffer.</span>00137 00138 <a class="code" href="LCD__driver_8h.html#a10">LCD_CONTRAST_LEVEL</a>(LCD_INITIAL_CONTRAST); <span class="comment">//Set the LCD contrast level</span>00139 00140 <span class="comment">// Select asynchronous clock source, enable all COM pins and enable all</span>00141 <span class="comment">// segment pins.</span>00142 LCDCRB = (1<<LCDCS) | (3<<LCDMUX0) | (7<<LCDPM0);00143 00144 <span class="comment">// Set LCD prescaler to give a framerate of 32,0 Hz</span>00145 LCDFRR = (0<<LCDPS0) | (7<<LCDCD0);00146 00147 LCDCRA = (1<<LCDEN) | (1<<LCDAB); <span class="comment">// Enable LCD and set low power waveform</span>00148 00149 <span class="comment">//Enable LCD start of frame interrupt</span>00150 LCDCRA |= (1<<LCDIE);00151 00152 <a class="code" href="LCD__driver_8c.html#a2">gLCD_Update_Required</a> = <a class="code" href="LCD__functions_8c.html#a0">FALSE</a>;00153 00154 00155 }</div></pre><p>Here is the call graph for this function:<p><center><img src="LCD__driver_8h_a18_cgraph.png" border="0" usemap="#LCD__driver_8h_a18_cgraph_map" alt=""></center><map name="LCD__driver_8h_a18_cgraph_map"><area href="LCD__driver_8h.html#a20" shape="rect" coords="131,7,261,33" alt=""></map> </td> </tr></table><a class="anchor" name="a19" doxytag="LCD_driver.h::LCD_WriteDigit" ></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"> void LCD_WriteDigit </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">char </td> <td class="mdname" nowrap> <em>input</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap>char </td> <td class="mdname" nowrap> <em>digit</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -