|
|
1.1 root 1: /*
1.1.1.2 root 2: Hatari - rs232.h
3:
4: This file is distributed under the GNU Public License, version 2 or at
5: your option any later version. Read the file gpl.txt for details.
1.1 root 6: */
7:
1.1.1.2 root 8: #ifndef HATARI_RS232_H
9: #define HATARI_RS232_H
1.1 root 10:
11:
1.1.1.2 root 12: #define MAX_RS232INPUT_BUFFER 2048 /* Must be ^2 */
1.1 root 13:
1.1.1.2 root 14: extern BOOL bConnectedRS232;
1.1 root 15:
16: extern void RS232_Init(void);
17: extern void RS232_UnInit(void);
1.1.1.2 root 18: extern void RS232_HandleUCR(short int ucr);
19: extern BOOL RS232_SetBaudRate(int nBaud);
20: extern void RS232_SetBaudRateFromTimerD(void);
21: extern void RS232_SetFlowControl(int ctrl);
1.1 root 22: extern BOOL RS232_TransferBytesTo(unsigned char *pBytes, int nBytes);
23: extern BOOL RS232_ReadBytes(unsigned char *pBytes, int nBytes);
24: extern BOOL RS232_GetStatus(void);
1.1.1.2 root 25: extern void RS232_SCR_ReadByte(void);
26: extern void RS232_SCR_WriteByte(void);
27: extern void RS232_UCR_ReadByte(void);
28: extern void RS232_UCR_WriteByte(void);
29: extern void RS232_RSR_ReadByte(void);
30: extern void RS232_RSR_WriteByte(void);
31: extern void RS232_TSR_ReadByte(void);
32: extern void RS232_TSR_WriteByte(void);
33: extern void RS232_UDR_ReadByte(void);
34: extern void RS232_UDR_WriteByte(void);
35:
36:
37: #endif /* ifndef HATARI_RS232_H */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.