blob: 24796e6b5ea990ceefbda2c9542186543b206e5b (
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: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 vtech_memexp_device
{
public:
// construction/destruction
vtech_rtty_interface_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock);
protected:
virtual const tiny_rom_entry *device_rom_region() const override;
virtual void device_start() override;
virtual void mem_map(address_map &map) override;
private:
uint8_t receive_data_r();
void transmit_data_w(uint8_t data);
void relay_w(uint8_t data);
};
// device type definition
DECLARE_DEVICE_TYPE(VTECH_RTTY_INTERFACE, vtech_rtty_interface_device)
#endif // MAME_BUS_VTECH_MEMEXP_RTTY_H
|