diff options
Diffstat (limited to 'src/emu/machine/74123.h')
-rw-r--r-- | src/emu/machine/74123.h | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/src/emu/machine/74123.h b/src/emu/machine/74123.h index c7cafe200d9..019ed29b8b2 100644 --- a/src/emu/machine/74123.h +++ b/src/emu/machine/74123.h @@ -62,9 +62,9 @@ /* constants for the different ways the cap/res can be connected. This determines the formula for calculating the pulse width */ -#define TTL74123_NOT_GROUNDED_NO_DIODE (1) -#define TTL74123_NOT_GROUNDED_DIODE (2) -#define TTL74123_GROUNDED (3) +#define TTL74123_NOT_GROUNDED_NO_DIODE (1) +#define TTL74123_NOT_GROUNDED_DIODE (2) +#define TTL74123_GROUNDED (3) /*************************************************************************** @@ -76,13 +76,13 @@ struct ttl74123_interface { - int m_connection_type; /* the hook up type - one of the constants above */ - double m_res; /* resistor connected to RCext */ - double m_cap; /* capacitor connected to Cext and RCext */ - int m_a; /* initial/constant value of the A pin */ - int m_b; /* initial/constant value of the B pin */ - int m_clear; /* initial/constant value of the Clear pin */ - devcb_write8 m_output_changed_cb; + int m_connection_type; /* the hook up type - one of the constants above */ + double m_res; /* resistor connected to RCext */ + double m_cap; /* capacitor connected to Cext and RCext */ + int m_a; /* initial/constant value of the A pin */ + int m_b; /* initial/constant value of the B pin */ + int m_clear; /* initial/constant value of the Clear pin */ + devcb_write8 m_output_changed_cb; }; @@ -90,39 +90,39 @@ struct ttl74123_interface // ======================> ttl74123_device class ttl74123_device : public device_t, - public ttl74123_interface + public ttl74123_interface { public: - // construction/destruction - ttl74123_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + // construction/destruction + ttl74123_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - void a_w(UINT8 data); - void b_w(UINT8 data); - void clear_w(UINT8 data); - void reset_w(); + void a_w(UINT8 data); + void b_w(UINT8 data); + void clear_w(UINT8 data); + void reset_w(); protected: - // device-level overrides - virtual void device_config_complete(); - virtual void device_start(); - virtual void device_reset(); - virtual void device_post_load() { } - virtual void device_clock_changed() { } + // device-level overrides + virtual void device_config_complete(); + virtual void device_start(); + virtual void device_reset(); + virtual void device_post_load() { } + virtual void device_clock_changed() { } - static TIMER_CALLBACK( output_callback ); - static TIMER_CALLBACK( clear_callback ); + static TIMER_CALLBACK( output_callback ); + static TIMER_CALLBACK( clear_callback ); private: - int timer_running(); - void start_pulse(); - void output(INT32 param); - void set_output(); - attotime compute_duration(); - void clear(); + int timer_running(); + void start_pulse(); + void output(INT32 param); + void set_output(); + attotime compute_duration(); + void clear(); - emu_timer *m_timer; - devcb_resolved_write8 m_output_changed; + emu_timer *m_timer; + devcb_resolved_write8 m_output_changed; }; |