📄 vs10xx_8h-source.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>vs10xx.h</h1><a href="vs10xx_8h.html">Go to the documentation of this file.</a><pre class="fragment"><div>00001 00007 <span class="preprocessor">#ifndef VS10XX_H</span>00008 <span class="preprocessor"></span><span class="preprocessor">#define VS10XX_H</span>00009 <span class="preprocessor"></span>00010 <span class="preprocessor">#include "<a class="code" href="board_8h.html">board.h</a>"</span>00011 <a name="l00013"></a><a class="code" href="vs10xx_8h.html#a0">00013</a> <span class="preprocessor">#define VS_WRITE_COMMAND 0x02</span>00014 <span class="preprocessor"></span><a name="l00016"></a><a class="code" href="vs10xx_8h.html#a1">00016</a> <span class="preprocessor">#define VS_READ_COMMAND 0x03</span>00017 <span class="preprocessor"></span>00018 <a name="l00019"></a><a class="code" href="vs10xx_8h.html#a2">00019</a> <span class="preprocessor">#define SPI_MODE 0x0 </span><a name="l00020"></a><a class="code" href="vs10xx_8h.html#a3">00020</a> <span class="preprocessor">#define SPI_STATUS 0x1 </span><a name="l00021"></a><a class="code" href="vs10xx_8h.html#a4">00021</a> <span class="preprocessor">#define SPI_BASS 0x2 </span><a name="l00022"></a><a class="code" href="vs10xx_8h.html#a5">00022</a> <span class="preprocessor">#define SPI_CLOCKF 0x3 </span><a name="l00023"></a><a class="code" href="vs10xx_8h.html#a6">00023</a> <span class="preprocessor">#define SPI_DECODE_TIME 0x4 </span><a name="l00024"></a><a class="code" href="vs10xx_8h.html#a7">00024</a> <span class="preprocessor">#define SPI_AUDATA 0x5 </span><a name="l00025"></a><a class="code" href="vs10xx_8h.html#a8">00025</a> <span class="preprocessor">#define SPI_WRAM 0x6 </span><a name="l00026"></a><a class="code" href="vs10xx_8h.html#a9">00026</a> <span class="preprocessor">#define SPI_WRAMADDR 0x7 </span><a name="l00027"></a><a class="code" href="vs10xx_8h.html#a10">00027</a> <span class="preprocessor">#define SPI_HDAT0 0x8 </span><a name="l00028"></a><a class="code" href="vs10xx_8h.html#a11">00028</a> <span class="preprocessor">#define SPI_HDAT1 0x9 </span><a name="l00029"></a><a class="code" href="vs10xx_8h.html#a12">00029</a> <span class="preprocessor">#define SPI_AIADDR 0xa </span><a name="l00030"></a><a class="code" href="vs10xx_8h.html#a13">00030</a> <span class="preprocessor">#define SPI_VOL 0xb </span><a name="l00031"></a><a class="code" href="vs10xx_8h.html#a14">00031</a> <span class="preprocessor">#define SPI_AICTRL0 0xc </span><a name="l00032"></a><a class="code" href="vs10xx_8h.html#a15">00032</a> <span class="preprocessor">#define SPI_AICTRL1 0xd </span><a name="l00033"></a><a class="code" href="vs10xx_8h.html#a16">00033</a> <span class="preprocessor">#define SPI_AICTRL2 0xe </span><a name="l00034"></a><a class="code" href="vs10xx_8h.html#a17">00034</a> <span class="preprocessor">#define SPI_AICTRL3 0xf </span><a name="l00036"></a><a class="code" href="vs10xx_8h.html#a18">00036</a> <span class="preprocessor">#define SM_DIFF 0x01 </span><a name="l00037"></a><a class="code" href="vs10xx_8h.html#a19">00037</a> <span class="preprocessor">#define SM_JUMP 0x02 </span><a name="l00038"></a><a class="code" href="vs10xx_8h.html#a20">00038</a> <span class="preprocessor">#define SM_RESET 0x04 </span><a name="l00039"></a><a class="code" href="vs10xx_8h.html#a21">00039</a> <span class="preprocessor">#define SM_OUTOFWAV 0x08 </span><a name="l00040"></a><a class="code" href="vs10xx_8h.html#a22">00040</a> <span class="preprocessor">#define SM_PDOWN 0x10 </span><a name="l00041"></a><a class="code" href="vs10xx_8h.html#a23">00041</a> <span class="preprocessor">#define SM_TESTS 0x20 </span><a name="l00042"></a><a class="code" href="vs10xx_8h.html#a24">00042</a> <span class="preprocessor">#define SM_STREAM 0x40 </span><a name="l00043"></a><a class="code" href="vs10xx_8h.html#a25">00043</a> <span class="preprocessor">#define SM_PLUSV 0x80 </span><a name="l00044"></a><a class="code" href="vs10xx_8h.html#a26">00044</a> <span class="preprocessor">#define SM_DACT 0x100 </span><a name="l00045"></a><a class="code" href="vs10xx_8h.html#a27">00045</a> <span class="preprocessor">#define SM_SDIORD 0x200 </span><a name="l00046"></a><a class="code" href="vs10xx_8h.html#a28">00046</a> <span class="preprocessor">#define SM_SDISHARE 0x400 </span><a name="l00047"></a><a class="code" href="vs10xx_8h.html#a29">00047</a> <span class="preprocessor">#define SM_SDINEW 0x800 </span><a name="l00048"></a><a class="code" href="vs10xx_8h.html#a30">00048</a> <span class="preprocessor">#define SM_ADPCM 0x1000 </span><a name="l00049"></a><a class="code" href="vs10xx_8h.html#a31">00049</a> <span class="preprocessor">#define SM_ADPCM_HP 0x2000 </span><a name="l00053"></a><a class="code" href="vs10xx_8h.html#a34">00053</a> <span class="preprocessor">extern xdata unsigned char playingState;</span>00054 <span class="preprocessor"></span>00055 00056 00058 <span class="keywordtype">void</span> <a class="code" href="vs10xx_8c.html#a4">VsSineTest</a>();00059 00060 <span class="keywordtype">void</span> <a class="code" href="vs10xx_8c.html#a3">Mp3Reset</a>();00061 00063 <span class="keywordtype">void</span> <a class="code" href="vs10xx_8c.html#a2">Mp3SoftReset</a>();00064 00065 00066 <a name="l00068"></a><a class="code" href="vs10xx_8h.html#a32">00068</a> <span class="preprocessor">#define Mp3WriteRegister(addressbyte,highbyte,lowbyte){ \</span>00069 <span class="preprocessor"> Mp3SelectControl(); \</span>00070 <span class="preprocessor"> SPIPutCharWithoutWaiting(VS_WRITE_COMMAND); \</span>00071 <span class="preprocessor"> SPIPutChar((addressbyte)); \</span>00072 <span class="preprocessor"> SPIPutChar((highbyte)); \</span>00073 <span class="preprocessor"> SPIPutChar((lowbyte)); \</span>00074 <span class="preprocessor"> SPIWait(); \</span>00075 <span class="preprocessor"> Mp3DeselectControl();}</span>00076 <span class="preprocessor"></span><a name="l00078"></a><a class="code" href="vs10xx_8h.html#a33">00078</a> <span class="preprocessor">#define Mp3SetVolume(leftchannel,rightchannel){\</span>00079 <span class="preprocessor"> Mp3WriteRegister(11,(leftchannel),(rightchannel));}</span>00080 <span class="preprocessor"></span>00082 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="vs10xx_8h.html#a38">Mp3ReadRegister</a> (<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> addressbyte);00083 00085 <span class="keywordtype">void</span> <a class="code" href="vs10xx_8c.html#a5">SendZerosToVS10xx</a>();00086 00088 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="vs10xx_8h.html#a40">PlayDiskSectors</a> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nSectorsToPlay);00089 00090 00092 <span class="keywordtype">void</span> <a class="code" href="player_8c.html#a12">AvailableProcessorTime</a>();00093 00094 00095 00096 <span class="preprocessor">#endif</span></div></pre><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 + -