summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/pce220_ser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/pce220_ser.h')
-rw-r--r--src/mame/machine/pce220_ser.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/mame/machine/pce220_ser.h b/src/mame/machine/pce220_ser.h
index 27cc66cbcd8..f375c45ee18 100644
--- a/src/mame/machine/pce220_ser.h
+++ b/src/mame/machine/pce220_ser.h
@@ -23,7 +23,7 @@ class pce220_serial_device : public device_t,
{
public:
// construction/destruction
- pce220_serial_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ pce220_serial_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
virtual ~pce220_serial_device();
// image-level overrides
@@ -41,17 +41,17 @@ public:
virtual const char *file_extensions() const override { return "txt,ihx"; }
// specific implementation
- UINT8 in_xin(void) { return m_xin & 0x01; }
- UINT8 in_din(void) { return m_din & 0x01; }
- UINT8 in_ack(void) { return m_ack & 0x01; }
- void out_busy(UINT8 state) { m_busy = state & 0x01; }
- void out_dout(UINT8 state) { m_dout = state & 0x01; }
- void out_xout(UINT8 state) { m_xout = state & 0x01; }
- void enable_interface(UINT8 state) { m_enabled = state & 0x01; }
+ uint8_t in_xin(void) { return m_xin & 0x01; }
+ uint8_t in_din(void) { return m_din & 0x01; }
+ uint8_t in_ack(void) { return m_ack & 0x01; }
+ void out_busy(uint8_t state) { m_busy = state & 0x01; }
+ void out_dout(uint8_t state) { m_dout = state & 0x01; }
+ void out_xout(uint8_t state) { m_xout = state & 0x01; }
+ void enable_interface(uint8_t state) { m_enabled = state & 0x01; }
protected:
// internal helpers
- int calc_parity(UINT8 data);
+ int calc_parity(uint8_t data);
int get_next_state();
// device-level overrides
@@ -67,17 +67,17 @@ private:
emu_timer* m_send_timer; // timer for send data
emu_timer* m_receive_timer; // timer for receive data
- UINT8 m_state; // transfer status
- UINT32 m_bytes_count; // number of bytes transferred
- UINT8 m_current_byte; // byte in transfer
- UINT8 m_enabled; // enable/disable
-
- UINT8 m_busy; // CTS
- UINT8 m_dout; // DTR
- UINT8 m_xout; // TXD
- UINT8 m_xin; // RXD
- UINT8 m_din; // DSR
- UINT8 m_ack; // RTS
+ uint8_t m_state; // transfer status
+ uint32_t m_bytes_count; // number of bytes transferred
+ uint8_t m_current_byte; // byte in transfer
+ uint8_t m_enabled; // enable/disable
+
+ uint8_t m_busy; // CTS
+ uint8_t m_dout; // DTR
+ uint8_t m_xout; // TXD
+ uint8_t m_xin; // RXD
+ uint8_t m_din; // DSR
+ uint8_t m_ack; // RTS
};
// device type definition