summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/video/hd44352.h
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-09-13 08:41:44 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2015-09-13 08:41:44 +0200
commitf88cefad27a1737c76e09d99c9fb43e173506081 (patch)
tree2d8167d03579c46e226471747eb4407bd00ed6fa /src/emu/video/hd44352.h
parente92ac9e0fa8e99869894bea00589bbb526be30aa (diff)
Move all devices into separate part of src tree (nw)
Diffstat (limited to 'src/emu/video/hd44352.h')
-rw-r--r--src/emu/video/hd44352.h81
1 files changed, 0 insertions, 81 deletions
diff --git a/src/emu/video/hd44352.h b/src/emu/video/hd44352.h
deleted file mode 100644
index b305e8ccfa9..00000000000
--- a/src/emu/video/hd44352.h
+++ /dev/null
@@ -1,81 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Sandro Ronco
-/***************************************************************************
-
- Hitachi HD44352 LCD controller
-
-***************************************************************************/
-
-#pragma once
-
-#ifndef __hd44352_H__
-#define __hd44352_H__
-
-
-#define MCFG_HD44352_ON_CB(_devcb) \
- devcb = &hd44352_device::set_on_callback(*device, DEVCB_##_devcb);
-
-
-//**************************************************************************
-// TYPE DEFINITIONS
-//**************************************************************************
-
-// ======================> hd44352_device
-
-class hd44352_device :
- public device_t
-{
-public:
- // construction/destruction
- hd44352_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-
- template<class _Object> static devcb_base &set_on_callback(device_t &device, _Object object) { return downcast<hd44352_device &>(device).m_on_cb.set_callback(object); }
-
- // device interface
- UINT8 data_read();
- void data_write(UINT8 data);
- void control_write(UINT8 data);
-
- UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
-protected:
- // device-level overrides
- virtual void device_start();
- virtual void device_reset();
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
- virtual void device_validity_check(validity_checker &valid) const;
-
-private:
- UINT8 compute_newval(UINT8 type, UINT8 oldval, UINT8 newval);
- UINT8 get_char(UINT16 pos);
-
- static const device_timer_id ON_TIMER = 1;
- emu_timer *m_on_timer;
-
- UINT8 m_video_ram[2][0x180];
- UINT8 m_control_lines;
- UINT8 m_data_bus;
- UINT8 m_par[3];
- UINT8 m_state;
- UINT16 m_bank;
- UINT16 m_offset;
- UINT8 m_char_width;
- UINT8 m_lcd_on;
- UINT8 m_scroll;
- UINT32 m_contrast;
-
- UINT8 m_custom_char[4][8]; // 4 chars * 8 bytes
- UINT8 m_byte_count;
- UINT8 m_cursor_status;
- UINT8 m_cursor[8];
- UINT8 m_cursor_x;
- UINT8 m_cursor_y;
- UINT8 m_cursor_lcd;
-
- devcb_write_line m_on_cb; // ON line callback
-};
-
-// device type definition
-extern const device_type HD44352;
-
-#endif