summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/roc10937.h
blob: 75e092e90e99c685648d62703134b29a7338c880 (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
26
27
28
29
30
31
32
33
34
/**********************************************************************

    Rockwell 10937/10957 interface and emulation by J.Wallace
    OKI MSC1937 is a clone of this chip

**********************************************************************/

#ifndef ROC10937
#define ROC10937

#define MAX_ROCK_ALPHAS  3	  // max number of displays emulated

#define ROCKWELL10937 0	// Rockwell 10937
#define MSC1937 0		// OKI MSC1937 clone of Rockwell 10937
#define ROCKWELL10957 1	// Rockwell 10957

void	ROC10937_init(  int id, int type,int reversed );		// setup a display

void	ROC10937_reset( int id);				// reset the alpha

void	ROC10937_shift_data(int id, int data);	// clock in a bit of data

int		ROC10937_newdata(   int id, int data);	// clock in 8 bits of data

UINT32	*ROC10937_get_segments(int id);			// get current segments displayed
UINT32  *ROC10937_set_outputs(int id);			// convert segments to standard for display
UINT32  *ROC10937_get_outputs(int id);			// get converted segments

char	*ROC10937_get_string( int id);			// get current string   displayed (not as accurate)

void	ROC10937_draw_16seg(int id);
void	ROC10937_draw_14seg(int id);
#endif