sc68fordevelopers  2.2.1
mwemul.h
Go to the documentation of this file.
1 
11 /* Copyright (C) 1998-2001 Ben(jamin) Gerard */
12 
13 #ifndef _MWEMUL_H_
14 #define _MWEMUL_H_
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
20 #include "emu68/type68.h"
21 
26 #define MW_ACTI 0x01
28 #define MW_BASH 0x03
29 #define MW_BASM (MW_BASH+2)
30 #define MW_BASL (MW_BASH+4)
32 #define MW_CTH 0x09
33 #define MW_CTM (MW_CTH+2)
34 #define MW_CTL (MW_CTH+4)
36 #define MW_ENDH 0x0f
37 #define MW_ENDM (MW_ENDH+2)
38 #define MW_ENDL (MW_ENDH+4)
40 #define MW_MODE 0x21
42 #define MW_DATA 0x22
43 #define MW_CTRL 0x24
52 extern u8 mw[0x40];
53 extern u32 mw_ct;
54 extern u32 mw_end;
72 unsigned int MW_sampling_rate(unsigned int f);
73 
89 int MW_reset(void);
90 
104 int MW_init(void);
105 
130 void MW_mix(u32 *b, const u8 * mem68, int n);
131 
149 void MW_set_LMC_mixer(unsigned int n);
150 
158 void MW_set_LMC_master(unsigned int n);
159 
169 void MW_set_LMC_left(unsigned int n);
170 
178 void MW_set_LMC_right(unsigned int n);
179 
188 void MW_set_LMC_high(unsigned int n);
189 
198 void MW_set_LMC_low(unsigned int n);
199 
202 #ifdef __cplusplus
203 }
204 #endif
205 
206 #endif /* #ifndef _MWEMUL_H_*/
unsigned int u32
Must be an unsigned 32 bit integer.
Definition: type68.h:37
void MW_set_LMC_right(unsigned int n)
Set LMC right channel volume.
void MW_set_LMC_left(unsigned int n)
Set LMC left channel volume.
int MW_reset(void)
Micro-Wire hardware reset.
unsigned char u8
Must be an unsigned 8 bit integer.
Definition: type68.h:31
void MW_set_LMC_low(unsigned int n)
Set low pass filter.
void MW_set_LMC_mixer(unsigned int n)
Set LMC mixer type.
void MW_mix(u32 *b, const u8 *mem68, int n)
Execute Micro-Wire emulation.
void MW_set_LMC_high(unsigned int n)
Set high pass filter.
Type definitions.
void MW_set_LMC_master(unsigned int n)
Set LMC master volume.
int MW_init(void)
Micro-Wire first one first initialization.