summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/5110intf.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/sound/5110intf.h')
-rw-r--r--src/emu/sound/5110intf.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/emu/sound/5110intf.h b/src/emu/sound/5110intf.h
new file mode 100644
index 00000000000..704550b4efa
--- /dev/null
+++ b/src/emu/sound/5110intf.h
@@ -0,0 +1,23 @@
+#ifndef intf5110_h
+#define intf5110_h
+
+/* clock rate = 80 * output sample rate, */
+/* usually 640000 for 8000 Hz sample rate or */
+/* usually 800000 for 10000 Hz sample rate. */
+
+struct TMS5110interface
+{
+ void (*irq)(int state); /* IRQ callback function */
+ int (*M0_callback)(void); /* function to be called when chip requests another bit*/
+};
+
+WRITE8_HANDLER( tms5110_CTL_w );
+WRITE8_HANDLER( tms5110_PDC_w );
+
+READ8_HANDLER( tms5110_status_r );
+int tms5110_ready_r(void);
+
+void tms5110_set_frequency(int frequency);
+
+#endif
+