|
|
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.4 root 14: extern bool bConnectedRS232;
1.1 root 15:
16: extern void RS232_Init(void);
17: extern void RS232_UnInit(void);
1.1.1.5 ! root 18: extern void RS232_HandleUCR(Sint16 ucr);
1.1.1.4 root 19: extern bool RS232_SetBaudRate(int nBaud);
1.1.1.2 root 20: extern void RS232_SetBaudRateFromTimerD(void);
1.1.1.5 ! root 21: extern void RS232_SetFlowControl(Sint16 ctrl);
! 22: extern bool RS232_TransferBytesTo(Uint8 *pBytes, int nBytes);
! 23: extern bool RS232_ReadBytes(Uint8 *pBytes, int nBytes);
1.1.1.4 root 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.