?? lcd_8h.html
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>VLSI Solution Oy Evaluation MP3 Player Source Code Documentation</title><link href="doxygen.css" rel="stylesheet" type="text/css"><img src="vlsi_small.gif" hspace="20" bordercolor="#ffffff" alt="VLSI Solution Oy"><b>VLSI Solution Oy Evaluation MP3 Player Source Code Documentation</b><p></p></head><body><!-- Generated by Doxygen 1.3.7 --><div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div><h1>lcd.h File Reference</h1>LCD functions. <a href="#_details">More...</a><p><code>#include "console.h"</code><br><code>#include "<a class="el" href="lcdfonts_8h-source.html">lcdfonts.h</a>"</code><br><p>Include dependency graph for lcd.h:<p><center><img src="lcd_8h__incl.png" border="0" usemap="#lcd.h_map" alt="Include dependency graph"></center><map name="lcd.h_map"><area href="lcdfonts_8h.html" shape="rect" coords="94,18,158,42" alt=""></map><p>This graph shows which files directly or indirectly include this file:<p><center><img src="lcd_8h__dep__incl.png" border="0" usemap="#lcd.hdep_map" alt="Included by dependency graph"></center><map name="lcd.hdep_map"><area href="board_8c.html" shape="rect" coords="6,18,57,42" alt=""><area href="display_8c.html" shape="rect" coords="81,18,140,42" alt=""><area href="lcd_8c.html" shape="rect" coords="164,18,201,42" alt=""><area href="player_8c.html" shape="rect" coords="225,18,278,42" alt=""><area href="vs10xx_8c.html" shape="rect" coords="302,18,361,42" alt=""></map><p><a href="lcd_8h-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>Defines</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="lcd_8h.html#a0">ROM_CHAR_PTR</a> code char*</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="lcd_8h.html#a1">LcdLocateHome</a>() {LcdPutCommand (128);InitiateDelay(39);}</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Low level: Move LCD Cursor to start of the first line. <a href="#a1"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="lcd_8h.html#a2">LcdLocateLine2</a>() {LcdPutCommand (168);InitiateDelay(39);}</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Low level: Move LCD Cursor to start of the second line. <a href="#a2"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="lcd_8h.html#a3">LcdLocateCG</a>() {LcdPutCommand (64);InitiateDelay(39);}</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Low level: Point to start of LCD Character Generator RAM. <a href="#a3"></a><br><br></td></tr><tr><td colspan=2><br><h2>Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="lcd_8h.html#a5">LcdSelectFont</a> (ROM_CHAR_PTR font)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="lcd_8h.html#a6">LcdPutChar</a> (char c)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Low level: Send one data character to LCD. <a href="#a6"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="lcd_8h.html#a7">LcdPutCommand</a> (char cmd)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Low level: Send one command octet to LCD. <a href="#a7"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="lcd_8h.html#a8">LcdReset</a> ()</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Low level: Reset LCD. <a href="#a8"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="lcd_8h.html#a9">LcdPutString</a> (char *str)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Low level: Send a zero-terminated string of bytes to lcd from buffer in any memory. <a href="#a9"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="lcd_8h.html#a10">LcdPutConstantString</a> (char code *str)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Low level: Send a zero-terminated string of bytes to lcd from buffer in ROM. <a href="#a10"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="lcd_8h.html#a11">LcdSplashScreen</a> ()</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Splash screen. <a href="#a11"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="lcd_8h.html#a12">LcdPutHex8</a> (unsigned char value)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Print an 8-bit hex value on LCD. <a href="#a12"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="lcd_8h.html#a13">LcdPutHex16</a> (unsigned int value)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Print a 16-bit hex value on LCD. <a href="#a13"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>unsigned char </td><td class="memItemRight" valign=bottom><a class="el" href="lcd_8h.html#a14">LcdPrintGenericResult</a> (unsigned char errorlevel)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Print OK or Error (hex8) on LCD. <a href="#a14"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="lcd_8h.html#a15">LcdPutUInt</a> (unsigned long value)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Print a 16-bit unsigned integer value on LCD. <a href="#a15"></a><br><br></td></tr><tr><td colspan=2><br><h2>Variables</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>code const unsigned char </td><td class="memItemRight" valign=bottom><a class="el" href="lcd_8h.html#a4">lcd_hexchars</a> [17]</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">hexadecimal character set <a href="#a4"></a><br><br></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>LCD functions. <p><p>Definition in file <a class="el" href="lcd_8h-source.html">lcd.h</a>.<hr><h2>Define Documentation</h2><a class="anchor" name="a3" doxytag="lcd.h::LcdLocateCG" ></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 LcdLocateCG </td> <td class="md" valign="top">( </td> </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> {LcdPutCommand (64);InitiateDelay(39);}</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Low level: Point to start of LCD Character Generator RAM. <p><p>Definition at line <a class="el" href="lcd_8h-source.html#l00023">23</a> of file <a class="el" href="lcd_8h-source.html">lcd.h</a>.<p>Referenced by <a class="el" href="lcd_8c-source.html#l00043">LcdSelectFont()</a>. </td> </tr></table><a class="anchor" name="a1" doxytag="lcd.h::LcdLocateHome" ></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 LcdLocateHome </td> <td class="md" valign="top">( </td> </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> {LcdPutCommand (128);InitiateDelay(39);}</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Low level: Move LCD Cursor to start of the first line. <p><p>Definition at line <a class="el" href="lcd_8h-source.html#l00017">17</a> of file <a class="el" href="lcd_8h-source.html">lcd.h</a>.<p>Referenced by <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#l00724">PlayCurrentFile()</a>, and <a class="el" href="display_8c-source.html#l00058">UpdateDisplay()</a>. </td> </tr></table><a class="anchor" name="a2" doxytag="lcd.h::LcdLocateLine2" ></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 LcdLocateLine2 </td> <td class="md" valign="top">( </td> </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> {LcdPutCommand (168);InitiateDelay(39);}</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Low level: Move LCD Cursor to start of the second line. <p><p>Definition at line <a class="el" href="lcd_8h-source.html#l00020">20</a> of file <a class="el" href="lcd_8h-source.html">lcd.h</a>.<p>Referenced by <a class="el" href="display_8c-source.html#l00023">InitDisplay()</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>. </td> </tr></table><a class="anchor" name="a0" doxytag="lcd.h::ROM_CHAR_PTR" ></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 ROM_CHAR_PTR code char* </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_8h-source.html#l00011">11</a> of file <a class="el" href="lcd_8h-source.html">lcd.h</a>.<p>Referenced by <a class="el" href="lcd_8c-source.html#l00043">LcdSelectFont()</a>. </td> </tr></table><hr><h2>Function Documentation</h2><a class="anchor" name="a14" doxytag="lcd.h::LcdPrintGenericResult" ></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"> unsigned char LcdPrintGenericResult </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">unsigned char </td> <td class="mdname1" valign="top" nowrap> <em>errorlevel</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 OK or Error (hex8) on LCD. <p><p>Definition at line <a class="el" href="lcd_8c-source.html#l00185">185</a> of file <a class="el" href="lcd_8c-source.html">lcd.c</a>.<p>References <a class="el" href="board_8c-source.html#l00036">Delay()</a>, <a class="el" href="lcd_8c-source.html#l00011">lcd_hexchars</a>, <a class="el" href="lcd_8c-source.html#l00017">LcdPutChar()</a>, and <a class="el" href="lcd_8c-source.html#l00102">LcdPutConstantString()</a>.<p>Referenced by <a class="el" href="player_8c-source.html#l00765">main()</a>.<p><pre class="fragment"><div>00185 {00186 <span class="keywordflow">if</span> (!errorlevel){ 00187 <a class="code" href="lcd_8h.html#a10">LcdPutConstantString</a> (<span class="stringliteral">"OK "</span>);00188 }<span class="keywordflow">else</span>{00189 <a class="code" href="lcd_8h.html#a10">LcdPutConstantString</a> (<span class="stringliteral">"Error "</span>);00190 <a class="code" href="lcd_8h.html#a6">LcdPutChar</a>(lcd_hexchars[(errorlevel>>4)&0xf]);00191 <a class="code" href="lcd_8h.html#a6">LcdPutChar</a>(lcd_hexchars[(errorlevel)&0xf]);00192 ConsoleWrite (<span class="stringliteral">"\rSystem error "</span>);00193 ConsolePutHex8 (errorlevel);00194 ConsoleWrite (<span class="stringliteral">": \""</span>);00195 00196 <span class="keywordflow">switch</span> (errorlevel){00197 <span class="keywordflow">case</span> 0x01: ConsoleWrite (<span class="stringliteral">"No storage"</span>); <span class="keywordflow">break</span>;00198 <span class="keywordflow">case</span> 0x02: ConsoleWrite (<span class="stringliteral">"Storage powerup"</span>); <span class="keywordflow">break</span>;00199 <span class="keywordflow">case</span> 0x03: ConsoleWrite (<span class="stringliteral">"Storage init"</span>); <span class="keywordflow">break</span>;00200 <span class="keywordflow">case</span> 0x04: ConsoleWrite (<span class="stringliteral">"No storage ID"</span>); <span class="keywordflow">break</span>;00201 <span class="keywordflow">case</span> 0x05: ConsoleWrite (<span class="stringliteral">"Datablock header"</span>); <span class="keywordflow">break</span>;00202 <span class="keywordflow">case</span> 0x06: ConsoleWrite (<span class="stringliteral">"Storage Data reply failed"</span>); <span class="keywordflow">break</span>;00203 <span class="keywordflow">case</span> 0x07: ConsoleWrite (<span class="stringliteral">"Generic Storage Command"</span>); <span class="keywordflow">break</span>;00204 <span class="keywordflow">case</span> 0x08: ConsoleWrite (<span class="stringliteral">"Sector 0 not in recognized format"</span>); <span class="keywordflow">break</span>;00205 <span class="keywordflow">case</span> 0x09: ConsoleWrite (<span class="stringliteral">"No active partition"</span>); <span class="keywordflow">break</span>;00206 <span class="keywordflow">case</span> 0x0a: ConsoleWrite (<span class="stringliteral">"Filesystem load"</span>); <span class="keywordflow">break</span>;00207 <span class="keywordflow">case</span> 0x0b: ConsoleWrite (<span class="stringliteral">"No root directory"</span>); <span class="keywordflow">break</span>;00208 <span class="keywordflow">case</span> 0x0c: ConsoleWrite (<span class="stringliteral">"File not found"</span>); <span class="keywordflow">break</span>;00209 00210 };00211 ConsoleWrite(<span class="stringliteral">"\" failure.\r"</span>);00212 00213 00214 <a class="code" href="board_8h.html#a51">Delay</a>(500);00215 }00216 <span class="keywordflow">return</span> errorlevel;00217 }</div></pre><p>Here is the call graph for this function:<p><center><img src="lcd_8h_a14_cgraph.png" border="0" usemap="#lcd_8h_a14_cgraph_map" alt=""></center><map name="lcd_8h_a14_cgraph_map"><area href="board_8h.html#a51" shape="rect" coords="252,6,292,30" alt=""><area href="lcd_8h.html#a6" shape="rect" coords="388,81,465,105" alt=""><area href="lcd_8h.html#a10" shape="rect" coords="205,105,338,129" alt=""></map>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -