diff options
Diffstat (limited to 'src/devices/bus/ti99/peb/ti_rs232.h')
-rw-r--r-- | src/devices/bus/ti99/peb/ti_rs232.h | 42 |
1 files changed, 22 insertions, 20 deletions
diff --git a/src/devices/bus/ti99/peb/ti_rs232.h b/src/devices/bus/ti99/peb/ti_rs232.h index 6716722dc9f..c10fd7e81a4 100644 --- a/src/devices/bus/ti99/peb/ti_rs232.h +++ b/src/devices/bus/ti99/peb/ti_rs232.h @@ -46,23 +46,23 @@ protected: ioport_constructor device_input_ports() const override; private: - DECLARE_WRITE_LINE_MEMBER(int0_callback); - DECLARE_WRITE_LINE_MEMBER(int1_callback); - DECLARE_WRITE_LINE_MEMBER(rcv0_callback); - DECLARE_WRITE_LINE_MEMBER(rcv1_callback); + void int0_callback(int state); + void int1_callback(int state); + void rcv0_callback(int state); + void rcv1_callback(int state); void xmit0_callback(uint8_t data); void xmit1_callback(uint8_t data); void ctrl0_callback(offs_t offset, uint8_t data); void ctrl1_callback(offs_t offset, uint8_t data); - DECLARE_WRITE_LINE_MEMBER(selected_w); - DECLARE_WRITE_LINE_MEMBER(pio_direction_in_w); - DECLARE_WRITE_LINE_MEMBER(pio_handshake_out_w); - DECLARE_WRITE_LINE_MEMBER(pio_spareout_w); - DECLARE_WRITE_LINE_MEMBER(flag0_w); - DECLARE_WRITE_LINE_MEMBER(cts0_w); - DECLARE_WRITE_LINE_MEMBER(cts1_w); - DECLARE_WRITE_LINE_MEMBER(led_w); + void selected_w(int state); + void pio_direction_in_w(int state); + void pio_handshake_out_w(int state); + void pio_spareout_w(int state); + void flag0_w(int state); + void cts0_w(int state); + void cts1_w(int state); + void led_w(int state); void incoming_dtr(int uartind, line_state value); void transmit_data(int uartind, uint8_t value); @@ -133,19 +133,20 @@ class ti_rs232_attached_device : public device_t, public device_image_interface public: ti_rs232_attached_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - iodevice_t image_type() const noexcept override { return IO_SERIAL; } bool is_readable() const noexcept override { return true; } bool is_writeable() const noexcept override { return true; } bool is_creatable() const noexcept override { return true; } - bool must_be_loaded() const noexcept override { return false; } bool is_reset_on_load() const noexcept override { return false; } + bool support_command_line_image_creation() const noexcept override { return true; } + const char *image_type_name() const noexcept override { return "serial"; } + const char *image_brief_type_name() const noexcept override { return "serl"; } const char *image_interface() const noexcept override { return ""; } const char *file_extensions() const noexcept override { return ""; } void connect(tms9902_device *dev) { m_uart = dev; } protected: - void device_start() override { }; - image_init_result call_load() override; + void device_start() override { } + std::pair<std::error_condition, std::string> call_load() override; void call_unload() override; private: @@ -161,18 +162,19 @@ class ti_pio_attached_device : public device_t, public device_image_interface public: ti_pio_attached_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - iodevice_t image_type() const noexcept override { return IO_PARALLEL; } bool is_readable() const noexcept override { return true; } bool is_writeable() const noexcept override { return true; } bool is_creatable() const noexcept override { return true; } - bool must_be_loaded() const noexcept override { return false; } bool is_reset_on_load() const noexcept override { return false; } + bool support_command_line_image_creation() const noexcept override { return true; } + const char *image_type_name() const noexcept override { return "parallel"; } + const char *image_brief_type_name() const noexcept override { return "parl"; } const char *image_interface() const noexcept override { return ""; } const char *file_extensions() const noexcept override { return ""; } protected: - void device_start() override { }; - image_init_result call_load() override; + void device_start() override { } + std::pair<std::error_condition, std::string> call_load() override; void call_unload() override; }; |