summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/netlist/devices/nld_legacy.h
blob: 5ace1a82b90cf4c83376ce58ec6860357b6e3f89 (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
51
52
53
// license:GPL-2.0+
// copyright-holders:Couriersud
/*
 * nld_legacy.h
 *
 * All of the devices below needs to disappear at some time .....
 *
 *
 */

#pragma once

#ifndef NLD_LEGACY_H_
#define NLD_LEGACY_H_

#include "../nl_base.h"

// ----------------------------------------------------------------------------------------
// Macros
// ----------------------------------------------------------------------------------------

#define NETDEV_RSFF(_name)                                                          \
		NET_REGISTER_DEV(nicRSFF, _name)

#define NETDEV_DELAY(_name)                                                         \
		NET_REGISTER_DEV(nicDelay, _name)

// ----------------------------------------------------------------------------------------
// Devices ...
// ----------------------------------------------------------------------------------------

NETLIB_DEVICE(nicRSFF,
	netlist_ttl_input_t m_S;
	netlist_ttl_input_t m_R;

	netlist_ttl_output_t m_Q;
	netlist_ttl_output_t m_QQ;
);


NETLIB_DEVICE_WITH_PARAMS(nicDelay,
	netlist_ttl_input_t m_I;

	netlist_ttl_output_t m_Q;

	netlist_param_int_t m_L_to_H;
	netlist_param_int_t m_H_to_L;

	UINT8 m_last;
);


#endif /* NLD_LEGACY_H_ */