summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/hc55516.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/sound/hc55516.h')
-rw-r--r--src/emu/sound/hc55516.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/emu/sound/hc55516.h b/src/emu/sound/hc55516.h
new file mode 100644
index 00000000000..e9a719e6b20
--- /dev/null
+++ b/src/emu/sound/hc55516.h
@@ -0,0 +1,31 @@
+#ifndef HC55516_H
+#define HC55516_H
+
+
+/* sets the databit (0 or 1) */
+void hc55516_digit_w(int num, int data);
+
+/* sets the clock state (0 or 1, clocked on the rising edge) */
+void hc55516_clock_w(int num, int state);
+
+/* clears or sets the clock state */
+void hc55516_clock_clear_w(int num, int data);
+void hc55516_clock_set_w(int num, int data);
+
+/* clears the clock state and sets the databit */
+void hc55516_digit_clock_clear_w(int num, int data);
+
+WRITE8_HANDLER( hc55516_0_digit_w );
+WRITE8_HANDLER( hc55516_0_clock_w );
+WRITE8_HANDLER( hc55516_0_clock_clear_w );
+WRITE8_HANDLER( hc55516_0_clock_set_w );
+WRITE8_HANDLER( hc55516_0_digit_clock_clear_w );
+
+WRITE8_HANDLER( hc55516_1_digit_w );
+WRITE8_HANDLER( hc55516_1_clock_w );
+WRITE8_HANDLER( hc55516_1_clock_clear_w );
+WRITE8_HANDLER( hc55516_1_clock_set_w );
+WRITE8_HANDLER( hc55516_1_digit_clock_clear_w );
+
+
+#endif