blob: aabea33bbaf639190d70156aa99a05cdf82ad06c (
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
46
47
48
49
50
|
// license:GPL-2.0+
// copyright-holders:Dirk Best
/***************************************************************************
SV-802 Centronics Printer Interface for SVI-318/328
***************************************************************************/
#ifndef MAME_BUS_SVI3X8_SLOT_SV802_H
#define MAME_BUS_SVI3X8_SLOT_SV802_H
#pragma once
#include "slot.h"
#include "machine/buffer.h"
#include "bus/centronics/ctronics.h"
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// ======================> sv802_device
class sv802_device : public device_t, public device_svi_slot_interface
{
public:
// construction/destruction
sv802_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
virtual uint8_t iorq_r(offs_t offset) override;
virtual void iorq_w(offs_t offset, uint8_t data) override;
protected:
virtual void device_add_mconfig(machine_config &config) override;
virtual void device_start() override;
private:
DECLARE_WRITE_LINE_MEMBER( busy_w );
required_device<centronics_device> m_centronics;
required_device<output_latch_device> m_cent_data_out;
int m_busy;
};
// device type definition
DECLARE_DEVICE_TYPE(SV802, sv802_device)
#endif // MAME_BUS_SVI3X8_SLOT_SV802_H
|