summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/adb/adbhle.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/adb/adbhle.h')
-rw-r--r--src/devices/bus/adb/adbhle.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/devices/bus/adb/adbhle.h b/src/devices/bus/adb/adbhle.h
new file mode 100644
index 00000000000..24dff3ad2fe
--- /dev/null
+++ b/src/devices/bus/adb/adbhle.h
@@ -0,0 +1,33 @@
+// license:BSD-3-Clause
+// copyright-holders: Olivier Galibert
+
+// ADB - Apple Desktop Bus
+//
+// Generic HLE
+
+#ifndef MAME_BUS_ADB_ADBHLE_H
+#define MAME_BUS_ADB_ADBHLE_H
+
+#pragma once
+
+#include "adb.h"
+
+class adb_hle_device : public adb_device, public adb_slot_card_interface
+{
+public:
+ adb_hle_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+
+protected:
+ virtual void device_start() override;
+ virtual void device_reset() override;
+
+ virtual void adb_w(int state) override;
+
+private:
+ bool m_last_state;
+ attotime m_last_state_time;
+};
+
+DECLARE_DEVICE_TYPE(ADB_HLE, adb_hle_device)
+
+#endif