📄 display_8c.html
字号:
00103 <a class="code" href="lcd_8h.html#a10">LcdPutConstantString</a>(<span class="stringliteral">" <- ->"</span>);00104 }00105 00106 <span class="keywordflow">if</span> (<a class="code" href="display_8c.html#a4">displayStyle</a> == <a class="code" href="display_8h.html#a3">DS_PERCENTAGE</a>){00107 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> majorp, minorp;00108 <span class="keywordflow">if</span> (<a class="code" href="display_8c.html#a5">displayValue</a>>100){00109 <a class="code" href="display_8c.html#a5">displayValue</a>=100;00110 }00111 00112 majorp = (<a class="code" href="display_8c.html#a5">displayValue</a>-4) / 12;00113 minorp = ((<a class="code" href="display_8c.html#a5">displayValue</a>-4) % 12) >> 1;00114 <span class="keywordflow">for</span> (<a class="code" href="board_8c.html#a0">temp</a>=0; <a class="code" href="board_8c.html#a0">temp</a><8; <a class="code" href="board_8c.html#a0">temp</a>++){00115 <span class="keywordflow">if</span> (majorp><a class="code" href="board_8c.html#a0">temp</a>){00116 <a class="code" href="lcd_8h.html#a6">LcdPutChar</a>(4);00117 }<span class="keywordflow">else</span>{00118 <span class="keywordflow">if</span> (majorp<<a class="code" href="board_8c.html#a0">temp</a>){00119 <a class="code" href="lcd_8h.html#a6">LcdPutChar</a>(<span class="charliteral">' '</span>);00120 }<span class="keywordflow">else</span>{00121 <span class="keywordflow">switch</span>(minorp){00122 <span class="keywordflow">case</span> 0:00123 <a class="code" href="lcd_8h.html#a6">LcdPutChar</a>(<span class="charliteral">' '</span>);00124 <span class="keywordflow">break</span>;00125 <span class="keywordflow">case</span> 1:00126 <a class="code" href="lcd_8h.html#a6">LcdPutChar</a>(0);00127 <span class="keywordflow">break</span>;00128 <span class="keywordflow">case</span> 2:00129 <a class="code" href="lcd_8h.html#a6">LcdPutChar</a>(1);00130 <span class="keywordflow">break</span>;00131 <span class="keywordflow">case</span> 3:00132 <a class="code" href="lcd_8h.html#a6">LcdPutChar</a>(2);00133 <span class="keywordflow">break</span>;00134 <span class="keywordflow">case</span> 4:00135 <a class="code" href="lcd_8h.html#a6">LcdPutChar</a>(3);00136 <span class="keywordflow">break</span>;00137 <span class="keywordflow">case</span> 5:00138 <a class="code" href="lcd_8h.html#a6">LcdPutChar</a>(4);00139 <span class="keywordflow">break</span>;00140 }<span class="comment">//switch</span>00141 }00142 }00143 } 00144 <span class="comment">//LcdPutUInt(displayValue);</span>00145 <span class="comment">//LcdPutConstantString("% ");</span>00146 }00147 00148 <span class="keywordflow">if</span> (<a class="code" href="display_8c.html#a4">displayStyle</a>==<a class="code" href="display_8h.html#a6">DS_RAWTEXT</a>){00149 <a class="code" href="lcd_8h.html#a6">LcdPutChar</a>(displayTitle[8]);00150 <a class="code" href="lcd_8h.html#a6">LcdPutChar</a>(displayTitle[9]);00151 <a class="code" href="lcd_8h.html#a6">LcdPutChar</a>(displayTitle[10]);00152 <a class="code" href="lcd_8h.html#a6">LcdPutChar</a>(displayTitle[11]);00153 <a class="code" href="lcd_8h.html#a6">LcdPutChar</a>(displayTitle[12]);00154 <a class="code" href="lcd_8h.html#a6">LcdPutChar</a>(displayTitle[13]);00155 <a class="code" href="lcd_8h.html#a6">LcdPutChar</a>(displayTitle[14]);00156 <a class="code" href="lcd_8h.html#a6">LcdPutChar</a>(displayTitle[15]);00157 }00158 00159 00160 }</div></pre><p>Here is the call graph for this function:<p><center><img src="display_8c_a7_cgraph.png" border="0" usemap="#display_8c_a7_cgraph_map" alt=""></center><map name="display_8c_a7_cgraph_map"><area href="lcd_8h.html#a6" shape="rect" coords="342,57,420,81" alt=""><area href="lcd_8h.html#a10" shape="rect" coords="160,57,293,81" alt=""><area href="lcd_8h.html#a15" shape="rect" coords="191,105,262,129" alt=""></map> </td> </tr></table><hr><h2>Variable Documentation</h2><a class="anchor" name="a3" doxytag="display.c::displayLength" ></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"> xdata char <a class="el" href="display_8h.html#a11">displayLength</a> </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="display_8c-source.html#l00013">13</a> of file <a class="el" href="display_8c-source.html">display.c</a>.<p>Referenced by <a class="el" href="display_8c-source.html#l00023">InitDisplay()</a>, and <a class="el" href="player_8c-source.html#l00246">timer0_interrupt()</a>. </td> </tr></table><a class="anchor" name="a0" doxytag="display.c::displayPosition" ></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"> volatile xdata char <a class="el" href="display_8h.html#a8">displayPosition</a> </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="display_8c-source.html#l00010">10</a> of file <a class="el" href="display_8c-source.html">display.c</a>.<p>Referenced by <a class="el" href="display_8c-source.html#l00023">InitDisplay()</a>, <a class="el" href="player_8c-source.html#l00246">timer0_interrupt()</a>, and <a class="el" href="display_8c-source.html#l00058">UpdateDisplay()</a>. </td> </tr></table><a class="anchor" name="a4" doxytag="display.c::displayStyle" ></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"> xdata char <a class="el" href="display_8h.html#a12">displayStyle</a> </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="display_8c-source.html#l00014">14</a> of file <a class="el" href="display_8c-source.html">display.c</a>.<p>Referenced by <a class="el" href="player_8c-source.html#l00332">AvailableProcessorTime()</a>, <a class="el" href="display_8c-source.html#l00023">InitDisplay()</a>, and <a class="el" href="display_8c-source.html#l00058">UpdateDisplay()</a>. </td> </tr></table><a class="anchor" name="a2" doxytag="display.c::displayText" ></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"> xdata char <a class="el" href="display_8h.html#a10">displayText</a>[DS_TEXTLENGTH+1] </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="display_8c-source.html#l00012">12</a> of file <a class="el" href="display_8c-source.html">display.c</a>.<p>Referenced by <a class="el" href="display_8c-source.html#l00023">InitDisplay()</a>, <a class="el" href="filesys_8c-source.html#l00610">OpenFile()</a>, and <a class="el" href="display_8c-source.html#l00058">UpdateDisplay()</a>. </td> </tr></table><a class="anchor" name="a1" doxytag="display.c::displayTitle" ></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"> xdata char <a class="el" href="display_8h.html#a9">displayTitle</a>[16] </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="display_8c-source.html#l00011">11</a> of file <a class="el" href="display_8c-source.html">display.c</a>.<p>Referenced by <a class="el" href="player_8c-source.html#l00332">AvailableProcessorTime()</a>, <a class="el" href="display_8c-source.html#l00023">InitDisplay()</a>, <a class="el" href="player_8c-source.html#l00290">ScreenSetPlayTime()</a>, and <a class="el" href="display_8c-source.html#l00058">UpdateDisplay()</a>. </td> </tr></table><a class="anchor" name="a5" doxytag="display.c::displayValue" ></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"> xdata char <a class="el" href="display_8h.html#a13">displayValue</a> </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="display_8c-source.html#l00015">15</a> of file <a class="el" href="display_8c-source.html">display.c</a>.<p>Referenced by <a class="el" href="player_8c-source.html#l00332">AvailableProcessorTime()</a>, <a class="el" href="display_8c-source.html#l00023">InitDisplay()</a>, <a class="el" href="record_8c-source.html#l00101">Record()</a>, and <a class="el" href="display_8c-source.html#l00058">UpdateDisplay()</a>. </td> </tr></table><hr><FONT SIZE="-1">All software copyright 2000-2004 <a href="http://www.vlsi.fi/"> VLSI Solution OY.</a>Redistribution of these software modules are limited to promotional use onlyand only with the VS1011 / VS1002 / VS1003 MP3-Evakit evaluation boards. Free orcommercial use of these software modules in MP3 players is ok if theproduct includes MP3 decoder chip(s) from VLSI. You can request the complete(compilable) package from mp3@vlsi.fi</FONT>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -