diff options
Diffstat (limited to 'src/mame/machine/wpc_out.h')
-rw-r--r-- | src/mame/machine/wpc_out.h | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/src/mame/machine/wpc_out.h b/src/mame/machine/wpc_out.h deleted file mode 100644 index cbbb3b7ce72..00000000000 --- a/src/mame/machine/wpc_out.h +++ /dev/null @@ -1,55 +0,0 @@ -// license:BSD-3-Clause -// copyright-holders:Olivier Galibert - -// Williams Pinball Controller outputs control (solenoids, flashers, generic logic, global illumination, coin counter, cpu led) - -#ifndef MAME_MACHINE_WPC_OUT_H -#define MAME_MACHINE_WPC_OUT_H - -#pragma once - -class wpc_out_device : public device_t -{ -public: - typedef delegate<bool (int, bool)> handler_t; - - wpc_out_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, int gi_count) - : wpc_out_device(mconfig, tag, owner, clock) - { - set_gi_count(gi_count); - } - - wpc_out_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - virtual ~wpc_out_device(); - - void out_w(offs_t offset, uint8_t data); - void out4_w(uint8_t data); // fixed offset 4 - void gi_w(uint8_t data); - void led_w(uint8_t data); - - void set_names(const char *const *names); - void set_handler(handler_t cb); - void set_gi_count(int _count); - -protected: - uint8_t state[6], gi; - bool first_after_led; - attotime previous_gi_update; - int gi_count; - uint32_t gi_time[5]; - emu_timer *timer; - const char *const *names; - handler_t handler_cb; - - void send_output(int sid, int state); - - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override; - - void gi_update(); -}; - -DECLARE_DEVICE_TYPE(WPC_OUT, wpc_out_device) - -#endif // MAME_MACHINE_WPC_OUT_H |