summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/rs232/loopback.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/rs232/loopback.h')
-rw-r--r--src/devices/bus/rs232/loopback.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/devices/bus/rs232/loopback.h b/src/devices/bus/rs232/loopback.h
new file mode 100644
index 00000000000..3027fe167f3
--- /dev/null
+++ b/src/devices/bus/rs232/loopback.h
@@ -0,0 +1,25 @@
+// license:BSD-3-Clause
+// copyright-holders:smf
+
+#ifndef RS232_LOOPBACK_H_
+#define RS232_LOOPBACK_H_
+
+#include "rs232.h"
+
+class rs232_loopback_device : public device_t,
+ public device_rs232_port_interface
+{
+public:
+ rs232_loopback_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+
+ virtual WRITE_LINE_MEMBER( input_txd );
+ virtual WRITE_LINE_MEMBER( input_rts );
+ virtual WRITE_LINE_MEMBER( input_dtr );
+
+protected:
+ virtual void device_start();
+};
+
+extern const device_type RS232_LOOPBACK;
+
+#endif