summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/gen_latch.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/gen_latch.h')
-rw-r--r--src/devices/machine/gen_latch.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/devices/machine/gen_latch.h b/src/devices/machine/gen_latch.h
index 4080cbebe8d..946ac5c380c 100644
--- a/src/devices/machine/gen_latch.h
+++ b/src/devices/machine/gen_latch.h
@@ -34,7 +34,7 @@ public:
auto data_pending_callback() { return m_data_pending_cb.bind(); }
void set_separate_acknowledge(bool ack) { m_separate_acknowledge = ack; }
- DECLARE_READ_LINE_MEMBER(pending_r);
+ int pending_r();
u8 acknowledge_r(address_space &space);
void acknowledge_w(u8 data = 0);
@@ -51,7 +51,7 @@ protected:
void set_latch_written(bool latch_written);
private:
- void init_callback(void *ptr, s32 param);
+ void init_callback(s32 param);
bool m_separate_acknowledge;
bool m_latch_written;
@@ -72,13 +72,13 @@ public:
void preset_w(u8 data = 0xff);
void clear_w(u8 data = 0);
- DECLARE_WRITE_LINE_MEMBER( preset );
- DECLARE_WRITE_LINE_MEMBER( clear );
+ void preset(int state);
+ void clear(int state);
protected:
virtual void device_start() override;
- void sync_callback(void *ptr, s32 param);
+ void sync_callback(s32 param);
private:
u8 m_latched_value;
@@ -98,13 +98,13 @@ public:
void preset_w(u16 data = 0xffff);
void clear_w(u16 data = 0);
- DECLARE_WRITE_LINE_MEMBER( preset );
- DECLARE_WRITE_LINE_MEMBER( clear );
+ void preset(int state);
+ void clear(int state);
protected:
virtual void device_start() override;
- void sync_callback(void *ptr, s32 param);
+ void sync_callback(s32 param);
private:
u16 m_latched_value;