summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/microtch.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/microtch.h')
-rw-r--r--src/devices/machine/microtch.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/devices/machine/microtch.h b/src/devices/machine/microtch.h
index c90a2bcd4a7..36424507ea0 100644
--- a/src/devices/machine/microtch.h
+++ b/src/devices/machine/microtch.h
@@ -25,6 +25,7 @@ public:
protected:
// device_t implementation
virtual ioport_constructor device_input_ports() const override ATTR_COLD;
+ virtual void device_add_mconfig(machine_config &config) override ATTR_COLD;
virtual void device_start() override ATTR_COLD;
// device_serial_interface implementation
@@ -38,13 +39,6 @@ protected:
TIMER_CALLBACK_MEMBER(update_output);
private:
- int check_command( const char* commandtocheck, int command_len, uint8_t* command_data );
- void send_format_table_packet(uint8_t flag, int x, int y);
- void send_format_decimal_packet(int x, int y);
- void send_format_hex_packet(int x, int y);
- void send_touch_packet();
- char ntoc(int n) { return n < 10 ? n + '0' : n - 10 + 'A'; }
-
enum
{
FORMAT_UNKNOWN,
@@ -60,6 +54,15 @@ private:
MODE_POINT
};
+ int check_command( const char* commandtocheck, int command_len, uint8_t* command_data );
+ void send_format_table_packet(uint8_t flag, int x, int y);
+ void send_format_decimal_packet(int x, int y);
+ void send_format_hex_packet(int x, int y);
+ void send_touch_packet();
+ char ntoc(int n) { return n < 10 ? n + '0' : n - 10 + 'A'; }
+
+ void u4_program(address_map &map) ATTR_COLD;
+
uint8_t m_rx_buffer[16];
int m_rx_buffer_ptr;
uint8_t m_tx_buffer[16];