summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/cbmiec/diag264_lb_iec.h
blob: 6611fee413d692e89ee39ad75ffaa26a0b1cec69 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// license:BSD-3-Clause
// copyright-holders:Curt Coder
/**********************************************************************

    Diag264 Serial Loop Back Connector emulation

**********************************************************************/

#ifndef MAME_BUS_CBMIEC_DIAG264_LB_IEC_H
#define MAME_BUS_CBMIEC_DIAG264_LB_IEC_H

#pragma once

#include "cbmiec.h"



//**************************************************************************
//  TYPE DEFINITIONS
//**************************************************************************

// ======================> diag264_serial_loopback_device

class diag264_serial_loopback_device :  public device_t,
										public device_cbm_iec_interface
{
public:
	// construction/destruction
	diag264_serial_loopback_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);

protected:
	// device-level overrides
	virtual void device_start() override;

	// device_cbm_iec_interface overrides
	virtual void cbm_iec_atn(int state) override;
};


// device type definition
DECLARE_DEVICE_TYPE(DIAG264_SERIAL_LOOPBACK, diag264_serial_loopback_device)


#endif // MAME_BUS_CBMIEC_DIAG264_LB_IEC_H