diff options
Diffstat (limited to 'src/devices/bus/midi/midioutport.h')
-rw-r--r-- | src/devices/bus/midi/midioutport.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/devices/bus/midi/midioutport.h b/src/devices/bus/midi/midioutport.h new file mode 100644 index 00000000000..3c0de35cb08 --- /dev/null +++ b/src/devices/bus/midi/midioutport.h @@ -0,0 +1,36 @@ +// license:BSD-3-Clause +// copyright-holders:R. Belmont +/********************************************************************* + + midioutport.h + + MIDI Out port - glues the image device to the pluggable midi port + +*********************************************************************/ + +#ifndef _MIDIOUTPORT_H_ +#define _MIDIOUTPORT_H_ + +#include "midi.h" +#include "imagedev/midiout.h" + +class midiout_port_device : public device_t, + public device_midi_port_interface +{ +public: + midiout_port_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + virtual machine_config_constructor device_mconfig_additions() const; + + virtual DECLARE_WRITE_LINE_MEMBER( input_txd ) { if (started()) m_midiout->tx(state); } + +protected: + virtual void device_start() { } + virtual void device_reset() { } + +private: + required_device<midiout_device> m_midiout; +}; + +extern const device_type MIDIOUT_PORT; + +#endif |