summaryrefslogtreecommitdiffstatshomepage
path: root/trunk/src/emu/sound/msm5232.h
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src/emu/sound/msm5232.h')
-rw-r--r--trunk/src/emu/sound/msm5232.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/trunk/src/emu/sound/msm5232.h b/trunk/src/emu/sound/msm5232.h
new file mode 100644
index 00000000000..f1dfaccc08c
--- /dev/null
+++ b/trunk/src/emu/sound/msm5232.h
@@ -0,0 +1,21 @@
+#pragma once
+
+#ifndef __MSM5232_H__
+#define __MSM5232_H__
+
+#include "devlegcy.h"
+
+typedef struct _msm5232_interface msm5232_interface;
+struct _msm5232_interface
+{
+ double capacity[8]; /* in Farads, capacitors connected to pins: 24,25,26,27 and 37,38,39,40 */
+ void (*gate_handler)(device_t *device, int state); /* callback called when the GATE output pin changes state */
+};
+
+WRITE8_DEVICE_HANDLER( msm5232_w );
+
+void msm5232_set_clock(device_t *device, int clock);
+
+DECLARE_LEGACY_SOUND_DEVICE(MSM5232, msm5232);
+
+#endif /* __MSM5232_H__ */