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

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

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

#ifndef MAME_BUS_VTECH_MEMEXP_RTTY_H
#define MAME_BUS_VTECH_MEMEXP_RTTY_H

#pragma once

#include "memexp.h"


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

// ======================> vtech_rtty_interface_device

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

	uint8_t receive_data_r();
	void transmit_data_w(uint8_t data);
	void relay_w(uint8_t data);

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

// device type definition
DECLARE_DEVICE_TYPE(VTECH_RTTY_INTERFACE, vtech_rtty_interface_device)

#endif // MAME_BUS_VTECH_MEMEXP_RTTY_H