<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>sc68fordevelopers: /home/mandrake/rpm/BUILD/sc68-2.2.1/io68/mwemul.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.9 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> <h1>/home/mandrake/rpm/BUILD/sc68-2.2.1/io68/mwemul.h</h1><a href="mwemul_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <a name="l00011"></a>00011 <span class="comment">/* Copyright (C) 1998-2001 Ben(jamin) Gerard */</span> <a name="l00012"></a>00012 <a name="l00013"></a>00013 <span class="preprocessor">#ifndef _MWEMUL_H_</span> <a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define _MWEMUL_H_</span> <a name="l00015"></a>00015 <span class="preprocessor"></span> <a name="l00016"></a>00016 <span class="preprocessor">#ifdef __cplusplus</span> <a name="l00017"></a>00017 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> { <a name="l00018"></a>00018 <span class="preprocessor">#endif</span> <a name="l00019"></a>00019 <span class="preprocessor"></span> <a name="l00020"></a>00020 <span class="preprocessor">#include "<a class="code" href="type68_8h.html" title="Type definitions.">emu68/type68.h</a>"</span> <a name="l00021"></a>00021 <a name="l00026"></a><a class="code" href="mwemul_8h.html#c8047d4dacbb9bb09b9de8a116e89ab4">00026</a> <span class="preprocessor">#define MW_ACTI 0x01 </span> <a name="l00028"></a><a class="code" href="mwemul_8h.html#4a7c6a3c443fc74d2da1295d6b0896b6">00028</a> <span class="preprocessor">#define MW_BASH 0x03 </span> <a name="l00029"></a><a class="code" href="mwemul_8h.html#e300f251570ff322fc21f408ffccd5e5">00029</a> <span class="preprocessor">#define MW_BASM (MW_BASH+2) </span> <a name="l00030"></a><a class="code" href="mwemul_8h.html#758f0646143c54b8261c646fe9927f73">00030</a> <span class="preprocessor">#define MW_BASL (MW_BASH+4) </span> <a name="l00032"></a><a class="code" href="mwemul_8h.html#25a12b49825b7a183f7cb684f0a224b4">00032</a> <span class="preprocessor">#define MW_CTH 0x09 </span> <a name="l00033"></a><a class="code" href="mwemul_8h.html#8781d7a37b9d3fd9df111b3d6e3721b7">00033</a> <span class="preprocessor">#define MW_CTM (MW_CTH+2) </span> <a name="l00034"></a><a class="code" href="mwemul_8h.html#e0d96a6fbeeb9351e6b9d4e8cc4094fe">00034</a> <span class="preprocessor">#define MW_CTL (MW_CTH+4) </span> <a name="l00036"></a><a class="code" href="mwemul_8h.html#a62dddfa627338d57d318e9018addf5e">00036</a> <span class="preprocessor">#define MW_ENDH 0x0f </span> <a name="l00037"></a><a class="code" href="mwemul_8h.html#7f4cb6ca2b7ca25a055f6989600a5102">00037</a> <span class="preprocessor">#define MW_ENDM (MW_ENDH+2) </span> <a name="l00038"></a><a class="code" href="mwemul_8h.html#f9540f6e93b313bca0df72744a77155b">00038</a> <span class="preprocessor">#define MW_ENDL (MW_ENDH+4) </span> <a name="l00040"></a><a class="code" href="mwemul_8h.html#b4d880fb8b393ad2aa484d0cbf98f2eb">00040</a> <span class="preprocessor">#define MW_MODE 0x21 </span> <a name="l00042"></a><a class="code" href="mwemul_8h.html#4f0279c03d31e1be08eb5f13de23dffd">00042</a> <span class="preprocessor">#define MW_DATA 0x22 </span> <a name="l00043"></a><a class="code" href="mwemul_8h.html#4aaad691a6dda3e9e40cfe33327125f6">00043</a> <span class="preprocessor">#define MW_CTRL 0x24 </span> <a name="l00052"></a>00052 <span class="preprocessor">extern u8 mw[0x40]; </span> <a name="l00053"></a>00053 <span class="preprocessor">extern u32 mw_ct; </span> <a name="l00054"></a>00054 <span class="preprocessor">extern u32 mw_end; </span> <a name="l00072"></a>00072 <span class="preprocessor">unsigned int MW_sampling_rate(unsigned int f);</span> <a name="l00073"></a>00073 <span class="preprocessor"></span> <a name="l00089"></a>00089 <span class="keywordtype">int</span> <a class="code" href="mwemul_8h.html#7e0c267de6b431b75e3173a8f2feae73" title="Micro-Wire hardware reset.">MW_reset</a>(<span class="keywordtype">void</span>); <a name="l00090"></a>00090 <a name="l00104"></a>00104 <span class="keywordtype">int</span> <a class="code" href="mwemul_8h.html#f5fb1264e8f589453343ff891cf53843" title="Micro-Wire first one first initialization.">MW_init</a>(<span class="keywordtype">void</span>); <a name="l00105"></a>00105 <a name="l00130"></a>00130 <span class="keywordtype">void</span> <a class="code" href="mwemul_8h.html#407114c64f1030bd4b55196906d13f3f" title="Execute Micro-Wire emulation.">MW_mix</a>(<a class="code" href="type68_8h.html#10e94b422ef0c20dcdec20d31a1f5049" title="Must be an unsigned 32 bit integer.">u32</a> *b, <span class="keyword">const</span> <a class="code" href="type68_8h.html#ed742c436da53c1080638ce6ef7d13de" title="Must be an unsigned 8 bit integer.">u8</a> * mem68, <span class="keywordtype">int</span> n); <a name="l00131"></a>00131 <a name="l00149"></a>00149 <span class="keywordtype">void</span> <a class="code" href="mwemul_8h.html#506ebc024341a70210f0dbf2a9870675" title="Set LMC mixer type.">MW_set_LMC_mixer</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> n); <a name="l00150"></a>00150 <a name="l00158"></a>00158 <span class="keywordtype">void</span> <a class="code" href="mwemul_8h.html#d636dea2d9bb744599056543e6963f9d" title="Set LMC master volume.">MW_set_LMC_master</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> n); <a name="l00159"></a>00159 <a name="l00169"></a>00169 <span class="keywordtype">void</span> <a class="code" href="mwemul_8h.html#ec6b713e651f0af44bc802860f37f060" title="Set LMC left channel volume.">MW_set_LMC_left</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> n); <a name="l00170"></a>00170 <a name="l00178"></a>00178 <span class="keywordtype">void</span> <a class="code" href="mwemul_8h.html#282dd0b1724458038daf811441bef300" title="Set LMC right channel volume.">MW_set_LMC_right</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> n); <a name="l00179"></a>00179 <a name="l00188"></a>00188 <span class="keywordtype">void</span> <a class="code" href="mwemul_8h.html#a6fef2422708e863fce308b82eec4115" title="Set high pass filter.">MW_set_LMC_high</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> n); <a name="l00189"></a>00189 <a name="l00198"></a>00198 <span class="keywordtype">void</span> <a class="code" href="mwemul_8h.html#18c7fc7adf8d95259b01fdaf15824848" title="Set low pass filter.">MW_set_LMC_low</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> n); <a name="l00199"></a>00199 <a name="l00202"></a>00202 <span class="preprocessor">#ifdef __cplusplus</span> <a name="l00203"></a>00203 <span class="preprocessor"></span>} <a name="l00204"></a>00204 <span class="preprocessor">#endif</span> <a name="l00205"></a>00205 <span class="preprocessor"></span> <a name="l00206"></a>00206 <span class="preprocessor">#endif </span><span class="comment">/* #ifndef _MWEMUL_H_*/</span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Tue Sep 15 03:58:05 2009 for sc68fordevelopers by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> </body> </html>