summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/vtech/memexp/rtty.h
blob: 1b96c611ececfc1306c43d37fed3743e8499d97b (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
45
// license:GPL-2.0+
// copyright-holders:Dirk Best
/***************************************************************************

    Dick Smith VZ-200/300 RTTY Cartridge (K-6318)

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

#pragma once

#ifndef __VTECH_MEMEXP_RTTY_H__
#define __VTECH_MEMEXP_RTTY_H__

#include "emu.h"
#include "memexp.h"


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

// ======================> rtty_interface_device

class rtty_interface_device : public device_t, public device_memexp_interface
{
public:
	// construction/destruction
	rtty_interface_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);

	DECLARE_READ8_MEMBER( receive_data_r );
	DECLARE_WRITE8_MEMBER( transmit_data_w );
	DECLARE_WRITE8_MEMBER( relay_w );

protected:
	virtual const tiny_rom_entry *device_rom_region() const override;
	virtual void device_start() override;
	virtual void device_reset() override;

private:
};

// device type definition
extern const device_type RTTY_INTERFACE;

#endif // __VTECH_MEMEXP_RTTY_H__