|
Micro-Wire registers |
|
#define | MW_ACTI 0x01 |
| | Microwire enabled.
|
|
#define | MW_BASH 0x03 |
| | Microwire sample start address, bit 16-23.
|
|
#define | MW_BASM (MW_BASH+2) |
| | Microwire sample start address, bit 8-15.
|
|
#define | MW_BASL (MW_BASH+4) |
| | Microwire sample start address, bit 0-7.
|
|
#define | MW_CTH 0x09 |
| | Microwire sample counter, bit 16-23.
|
|
#define | MW_CTM (MW_CTH+2) |
| | Microwire sample counter, bit 8-15.
|
|
#define | MW_CTL (MW_CTH+4) |
| | Microwire sample counter, bit 0-7.
|
|
#define | MW_ENDH 0x0f |
| | Microwire sample end address, bit 16-23.
|
|
#define | MW_ENDM (MW_ENDH+2) |
| | Microwire sample end address, bit 8-15.
|
|
#define | MW_ENDL (MW_ENDH+4) |
| | Microwire sample end address, bit 0-7.
|
|
#define | MW_MODE 0x21 |
| | Microwire playing mode.
|
|
#define | MW_DATA 0x22 |
| | Microwire data register.
|
|
#define | MW_CTRL 0x24 |
| | Microwire control register.
|
Initialization functions |
| unsigned int | MW_sampling_rate (unsigned int f) |
| | Set/Get sampling rate.
|
| int | MW_reset (void) |
| | Micro-Wire hardware reset.
|
| int | MW_init (void) |
| | Micro-Wire first one first initialization.
|
Emulation functions |
| void | MW_mix (u32 *b, const u8 *mem68, int n) |
| | Execute Micro-Wire emulation.
|
Micro-Wire LMC control functions |
| void | MW_set_LMC_mixer (unsigned int n) |
| | Set LMC mixer type.
|
| void | MW_set_LMC_master (unsigned int n) |
| | Set LMC master volume.
|
| void | MW_set_LMC_left (unsigned int n) |
| | Set LMC left channel volume.
|
| void | MW_set_LMC_right (unsigned int n) |
| | Set LMC right channel volume.
|
| void | MW_set_LMC_high (unsigned int n) |
| | Set high pass filter.
|
| void | MW_set_LMC_low (unsigned int n) |
| | Set low pass filter.
|
Micro-Wire internal data |
|
u8 | mw [0x40] |
| | Micro-Wire register array.
|
|
u32 | mw_ct |
| | DMA current location (8 bit fixed point).
|
|
u32 | mw_end |
| | DMA end point location (8 bit fixed point).
|