summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/bus/rs232/loopback.h
blob: 07ef20df8e7774fc13c52caaeb0f85340cf6ef13 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// license:???
// 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