blob: a92ff347c5a6ad177441b91927024ddafd97a306 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#pragma once
#ifndef __5110INTF_H__
#define __5110INTF_H__
/* clock rate = 80 * output sample rate, */
/* usually 640000 for 8000 Hz sample rate or */
/* usually 800000 for 10000 Hz sample rate. */
typedef struct _tms5110_interface tms5110_interface;
struct _tms5110_interface
{
int (*M0_callback)(void); /* function to be called when chip requests another bit */
void (*load_address)(int addr); /* speech ROM load address callback */
};
WRITE8_HANDLER( tms5110_ctl_w );
WRITE8_HANDLER( tms5110_pdc_w );
READ8_HANDLER( tms5110_status_r );
int tms5110_ready_r(void);
void tms5110_set_frequency(int frequency);
#endif /* __5110INTF_H__ */
|