summaryrefslogblamecommitdiffstatshomepage
path: root/src/mame/machine/namco_settings.h
blob: 7f8c8b4826b3e618d4e2d5bdccbd70d45cbf5dfa (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                
                                                                                                               





                                            

                                             

        
                          
                    
                           




                                        
// license:BSD-3-Clause
// copyright-holders:Olivier Galibert

// Namco system 12/23 settings device

#ifndef __NAMCO_SETTINGS_H__
#define __NAMCO_SETTINGS_H__

#define MCFG_NAMCO_SETTINGS_ADD(_tag) \
	MCFG_DEVICE_ADD(_tag, NAMCO_SETTINGS, 0)

class namco_settings_device : public device_t {
public:
	namco_settings_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);

	DECLARE_WRITE_LINE_MEMBER( ce_w );
	DECLARE_WRITE_LINE_MEMBER( clk_w );
	DECLARE_WRITE_LINE_MEMBER( data_w );

protected:
	virtual void device_start() override;
	virtual void device_reset() override;

private:
	int ce, clk, data;
	int cur_bit;
	uint8_t adr, value;
};

extern const device_type NAMCO_SETTINGS;

#endif