Go to the documentation of this file.
17 #define WT_BAR(x) (((x)&0xffe0)<<0x8)
18 #define WT_BANK(x) (x>>5)
20 #define WT_CTRL(bank) (((((bank)&1)<<0xd) + 0x00)<<2)
21 #define WT_SRAMP(bank) (((((bank)&1)<<0xd) + 0x01)<<2)
22 #define WT_DSREG(bank) (((((bank)&1)<<0xd) + 0x02)<<2)
23 #define WT_MRAMP(bank) (((((bank)&1)<<0xd) + 0x03)<<2)
24 #define WT_GMODE(bank) (((((bank)&1)<<0xd) + 0x04)<<2)
25 #define WT_ARAMP(bank) (((((bank)&1)<<0xd) + 0x05)<<2)
27 #define WT_STEREO(voice) ((WT_BAR(voice)+ 0x20 +(((voice)&0x1f)>>1))<<2)
28 #define WT_MUTE(voice) ((WT_BAR(voice)+ 0x40 +((voice)&0x1f))<<2)
29 #define WT_RUN(voice) ((WT_BAR(voice)+ 0x60 +((voice)&0x1f))<<2)
33 #define WT_PARM(x,y) (((WT_BAR(x))+ 0x80 +(((x)&0x1f)<<2)+(y))<<2)
34 #define WT_DELAY(x,y) (((WT_BAR(x))+ 0x100 +(((x)&0x1f)<<2)+(y))<<2)