1
/***************************************************************************
3
National Semiconductor ADC1038
5
10-Bit Serial I/O A/D Converters with Analog Multiplexer and
8
***************************************************************************/
16
/***************************************************************************
18
***************************************************************************/
20
typedef int (*adc1038_input_read_func)(device_t *device, int input);
22
typedef struct _adc1038_interface adc1038_interface;
23
struct _adc1038_interface
26
adc1038_input_read_func input_callback_r;
30
/***************************************************************************
32
***************************************************************************/
34
DECLARE_LEGACY_DEVICE(ADC1038, adc1038);
36
#define MCFG_ADC1038_ADD(_tag, _config) \
37
MCFG_DEVICE_ADD(_tag, ADC1038, 0) \
38
MCFG_DEVICE_CONFIG(_config)
41
/***************************************************************************
43
***************************************************************************/
45
extern READ_LINE_DEVICE_HANDLER( adc1038_do_read );
46
extern READ_LINE_DEVICE_HANDLER( adc1038_sars_read );
47
extern WRITE_LINE_DEVICE_HANDLER( adc1038_di_write );
48
extern WRITE_LINE_DEVICE_HANDLER( adc1038_clk_write );
50
#endif /* __ADC1038_H__ */