📄 lcd_8h.html
字号:
</td> </tr></table><a class="anchor" name="a6" doxytag="lcd.h::LcdPutChar" ></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 LcdPutChar </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">char </td> <td class="mdname1" valign="top" nowrap> <em>c</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>Low level: Send one data character to LCD. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign=top><em>c</em> </td><td>Octet to be sent to LCD </td></tr> </table></dl><p>Definition at line <a class="el" href="lcd_8c-source.html#l00017">17</a> of file <a class="el" href="lcd_8c-source.html">lcd.c</a>.<p>References <a class="el" href="board_8h-source.html#l00210">InitiateDelay</a>, <a class="el" href="board_8h-source.html#l00138">LCD_DATA_MODE</a>, <a class="el" href="board_8h-source.html#l00123">LCD_DATABUS</a>, <a class="el" href="board_8h-source.html#l00129">LCD_ENABLE</a>, <a class="el" href="board_8h-source.html#l00126">LCD_RS</a>, and <a class="el" href="board_8h-source.html#l00221">WaitOutDelay</a>.<p>Referenced by <a class="el" href="lcd_8c-source.html#l00185">LcdPrintGenericResult()</a>, <a class="el" href="lcd_8c-source.html#l00102">LcdPutConstantString()</a>, <a class="el" href="lcd_8c-source.html#l00168">LcdPutHex16()</a>, <a class="el" href="lcd_8c-source.html#l00177">LcdPutHex8()</a>, <a class="el" href="lcd_8c-source.html#l00089">LcdPutString()</a>, <a class="el" href="lcd_8c-source.html#l00221">LcdPutUInt()</a>, <a class="el" href="lcd_8c-source.html#l00147">LcdSplashScreen()</a>, <a class="el" href="player_8c-source.html#l00765">main()</a>, and <a class="el" href="display_8c-source.html#l00058">UpdateDisplay()</a>.<p><pre class="fragment"><div>00017 {00018 <a class="code" href="board_8h.html#a41">WaitOutDelay</a>();00019 <a class="code" href="board_8h.html#a20">LCD_RS</a> = <a class="code" href="board_8h.html#a24">LCD_DATA_MODE</a>;00020 <a class="code" href="board_8h.html#a21">LCD_ENABLE</a> = 1; <span class="comment">/* Rising edge */</span>00021 <a class="code" href="board_8h.html#a19">LCD_DATABUS</a> = c;00022 <a class="code" href="board_8h.html#a21">LCD_ENABLE</a> = 1; <span class="comment">/* Keep high...*/</span>00023 <a class="code" href="board_8h.html#a21">LCD_ENABLE</a> = 0; <span class="comment">/* Falling edge */</span>00024 <a class="code" href="board_8h.html#a40">InitiateDelay</a>(44);00025 }</div></pre> </td> </tr></table><a class="anchor" name="a7" doxytag="lcd.h::LcdPutCommand" ></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 LcdPutCommand </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">char </td> <td class="mdname1" valign="top" nowrap> <em>cmd</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>Low level: Send one command octet to LCD. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign=top><em>cmd</em> </td><td>Command octet to be sent to LCD </td></tr> </table></dl><p>Definition at line <a class="el" href="lcd_8c-source.html#l00033">33</a> of file <a class="el" href="lcd_8c-source.html">lcd.c</a>.<p>References <a class="el" href="board_8h-source.html#l00135">LCD_COMMAND_MODE</a>, <a class="el" href="board_8h-source.html#l00123">LCD_DATABUS</a>, <a class="el" href="board_8h-source.html#l00129">LCD_ENABLE</a>, <a class="el" href="board_8h-source.html#l00126">LCD_RS</a>, and <a class="el" href="board_8h-source.html#l00221">WaitOutDelay</a>.<p>Referenced by <a class="el" href="lcd_8c-source.html#l00111">LcdFadeIn()</a>, <a class="el" href="lcd_8c-source.html#l00128">LcdFadeOut()</a>, and <a class="el" href="lcd_8c-source.html#l00056">LcdReset()</a>.<p><pre class="fragment"><div>00033 {00034 <a class="code" href="board_8h.html#a41">WaitOutDelay</a>();00035 <a class="code" href="board_8h.html#a20">LCD_RS</a> = <a class="code" href="board_8h.html#a23">LCD_COMMAND_MODE</a>;00036 <a class="code" href="board_8h.html#a21">LCD_ENABLE</a> = 1; <span class="comment">/* Rising edge */</span>00037 <a class="code" href="board_8h.html#a19">LCD_DATABUS</a> = cmd;00038 <a class="code" href="board_8h.html#a21">LCD_ENABLE</a> = 0; <span class="comment">/* Falling edge */</span>00039 }</div></pre> </td> </tr></table><a class="anchor" name="a10" doxytag="lcd.h::LcdPutConstantString" ></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 LcdPutConstantString </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">char code * </td> <td class="mdname1" valign="top" nowrap> <em>str</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>Low level: Send a zero-terminated string of bytes to lcd from buffer in ROM. <p><b>Example:</b> LcdPutConstantString ("Hello!"); <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign=top><em>*str</em> </td><td>pointer to a zero-terminated string in code ROM. </td></tr> </table></dl><p>Definition at line <a class="el" href="lcd_8c-source.html#l00102">102</a> of file <a class="el" href="lcd_8c-source.html">lcd.c</a>.<p>References <a class="el" href="lcd_8c-source.html#l00017">LcdPutChar()</a>.<p>Referenced by <a class="el" href="lcd_8c-source.html#l00185">LcdPrintGenericResult()</a>, <a class="el" href="lcd_8c-source.html#l00043">LcdSelectFont()</a>, <a class="el" href="lcd_8c-source.html#l00147">LcdSplashScreen()</a>, <a class="el" href="player_8c-source.html#l00765">main()</a>, <a class="el" href="player_8c-source.html#l00724">PlayCurrentFile()</a>, and <a class="el" href="display_8c-source.html#l00058">UpdateDisplay()</a>.<p><pre class="fragment"><div>00102 {00103 <span class="keywordflow">while</span> (*str)00104 {00105 <a class="code" href="lcd_8h.html#a6">LcdPutChar</a> (*str++);00106 }00107 }</div></pre><p>Here is the call graph for this function:<p><center><img src="lcd_8h_a10_cgraph.png" border="0" usemap="#lcd_8h_a10_cgraph_map" alt=""></center><map name="lcd_8h_a10_cgraph_map"><area href="lcd_8h.html#a6" shape="rect" coords="201,7,278,30" alt=""></map> </td> </tr></table><a class="anchor" name="a13" doxytag="lcd.h::LcdPutHex16" ></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 LcdPutHex16 </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">unsigned int </td> <td class="mdname1" valign="top" nowrap> <em>value</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>Print a 16-bit hex value on LCD. <p><p>Definition at line <a class="el" href="lcd_8c-source.html#l00168">168</a> of file <a class="el" href="lcd_8c-source.html">lcd.c</a>.<p>References <a class="el" href="lcd_8c-source.html#l00011">lcd_hexchars</a>, and <a class="el" href="lcd_8c-source.html#l00017">LcdPutChar()</a>.<p><pre class="fragment"><div>00168 {00169 <a class="code" href="lcd_8h.html#a6">LcdPutChar</a>(lcd_hexchars[value>>12]);00170 <a class="code" href="lcd_8h.html#a6">LcdPutChar</a>(lcd_hexchars[(value>>8)&0xf]);00171 <a class="code" href="lcd_8h.html#a6">LcdPutChar</a>(lcd_hexchars[(value>>4)&0xf]);00172 <a class="code" href="lcd_8h.html#a6">LcdPutChar</a>(lcd_hexchars[(value)&0xf]);00173 }</div></pre><p>Here is the call graph for this function:<p><center><img src="lcd_8h_a13_cgraph.png" border="0" usemap="#lcd_8h_a13_cgraph_map" alt=""></center><map name="lcd_8h_a13_cgraph_map"><area href="lcd_8h.html#a6" shape="rect" coords="153,7,230,30" alt=""></map> </td> </tr></table><a class="anchor" name="a12" doxytag="lcd.h::LcdPutHex8" ></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 LcdPutHex8 </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">unsigned char </td> <td class="mdname1" valign="top" nowrap> <em>value</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>Print an 8-bit hex value on LCD. <p><p>Definition at line <a class="el" href="lcd_8c-source.html#l00177">177</a> of file <a class="el" href="lcd_8c-source.html">lcd.c</a>.<p>References <a class="el" href="lcd_8c-source.html#l00011">lcd_hexchars</a>, and <a class="el" href="lcd_8c-source.html#l00017">LcdPutChar()</a>.<p><pre class="fragment"><div>00177 {00178 00179 <a class="code" href="lcd_8h.html#a6">LcdPutChar</a>(lcd_hexchars[(value>>4)&0xf]);00180 <a class="code" href="lcd_8h.html#a6">LcdPutChar</a>(lcd_hexchars[(value)&0xf]);00181 }</div></pre><p>Here is the call graph for this function:<p><center><img src="lcd_8h_a12_cgraph.png" border="0" usemap="#lcd_8h_a12_cgraph_map" alt=""></center><map name="lcd_8h_a12_cgraph_map"><area href="lcd_8h.html#a6" shape="rect" coords="145,7,222,30" alt=""></map> </td> </tr></table><a class="anchor" name="a9" doxytag="lcd.h::LcdPutString" ></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 LcdPutString </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">char * </td> <td class="mdname1" valign="top" nowrap> <em>str</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>Low level: Send a zero-terminated string of bytes to lcd from buffer in any memory. <p><b>Example:</b> LcdPutString (s); <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign=top><em>*str</em> </td><td>pointer to a zero-terminated string in idata segment </td></tr> </table></dl><dl compact><dt><b>Warning:</b></dt><dd>Do not call for const type strings in the ROM! </dd></dl><p>Definition at line <a class="el" href="lcd_8c-source.html#l00089">89</a> of file <a class="el" href="lcd_8c-source.html">lcd.c</a>.<p>References <a class="el" href="lcd_8c-source.html#l00017">LcdPutChar()</a>.<p>Referenced by <a class="el" href="display_8c-source.html#l00023">InitDisplay()</a>.<p><pre class="fragment"><div>00089 {00090 <span class="keywordflow">while</span> (*str) {00091 <a class="code" href="lcd_8h.html#a6">LcdPutChar</a> (*str++);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -