diff options
Diffstat (limited to 'src/devices/machine/tc9223.h')
-rw-r--r-- | src/devices/machine/tc9223.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/devices/machine/tc9223.h b/src/devices/machine/tc9223.h new file mode 100644 index 00000000000..ffdbaaab88c --- /dev/null +++ b/src/devices/machine/tc9223.h @@ -0,0 +1,30 @@ +// license:BSD-3-Clause +// copyright-holders:Olivier Galibert + +// TC9223P/TC9223F PLL-based frequency synthesizer +#ifndef MAME_MACHINE_TC9223_H +#define MAME_MACHINE_TC9223_H + +#pragma once + +class tc9223_device : public device_t +{ +public: + tc9223_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); + + void stb_w(int state); + void dat_w(int state); + void clk_w(int state); + +protected: + virtual void device_start() override ATTR_COLD; + virtual void device_reset() override ATTR_COLD; + +private: + u16 m_shift; + u8 m_stb, m_clk, m_dat; +}; + +DECLARE_DEVICE_TYPE(TC9223, tc9223_device) + +#endif // MAME_MACHINE_TC9223_H |