-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhwinterface.h
More file actions
43 lines (34 loc) · 1.38 KB
/
hwinterface.h
File metadata and controls
43 lines (34 loc) · 1.38 KB
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
35
36
37
38
39
40
41
42
43
//*******************************************************************************************************
//*******************************************************************************************************
//
// Name: HWInterface.H
// Purpose: Header for CPU<->Hardware Interface
// Author: Paul Robson
// Date: 3rd January 2014
//
//*******************************************************************************************************
//*******************************************************************************************************
#ifndef _HWINTERFACE_H
#define _HWINTERFACE_H
#ifdef DEBUGGABLE
typedef struct _HWI_Status {
int dataBus, latchPulse, notDataClock, addressedLatchCounter,polarity;
unsigned char *addressedLatches;
int polaritySwitchFrequency;
} HWI_STATUS;
HWI_STATUS *HWIGetStatus(HWI_STATUS *s);
#endif
void HWISynchronise(int framesPerSecond);
void HWISetDataLines(int nibble);
int HWIReadKeypadColumn(int column);
void HWISetLatchPulse(int level);
void HWISetNotDataClock(int level);
void HWISetSpeakerLine(int level,long microseconds);
int HWIReadLCDRow(int row);
void HWISetRotaryControlLine(int level,long microseconds);
BOOL HWIRotaryControlTimeOut(long microseconds);
BOOL XHWIReadKeypad(int col,int row);
void XHWISetPitch(int frequency);
void XHWISynchronise(int milliseconds);
int XHWIGetRotaryControl(void);
#endif