Annotation of hatari/src/includes/rs232.h, revision 1.1.1.2

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: extern unsigned char InputBuffer_RS232[MAX_RS232INPUT_BUFFER];
                     16: extern int InputBuffer_Head,InputBuffer_Tail;
                     17: 
                     18: extern void RS232_Init(void);
                     19: extern void RS232_UnInit(void);
                     20: extern BOOL RS232_OpenCOMPort(void);
                     21: extern void RS232_CloseCOMPort(void);
1.1.1.2 ! root       22: extern void RS232_HandleUCR(short int ucr);
        !            23: extern BOOL RS232_SetBaudRate(int nBaud);
        !            24: extern void RS232_SetBaudRateFromTimerD(void);
        !            25: extern void RS232_SetFlowControl(int ctrl);
1.1       root       26: extern BOOL RS232_TransferBytesTo(unsigned char *pBytes, int nBytes);
                     27: extern BOOL RS232_ReadBytes(unsigned char *pBytes, int nBytes);
                     28: extern BOOL RS232_GetStatus(void);
1.1.1.2 ! root       29: extern int RS232_ThreadFunc(void *pData);
        !            30: extern void RS232_SCR_ReadByte(void);
        !            31: extern void RS232_SCR_WriteByte(void);
        !            32: extern void RS232_UCR_ReadByte(void);
        !            33: extern void RS232_UCR_WriteByte(void);
        !            34: extern void RS232_RSR_ReadByte(void);
        !            35: extern void RS232_RSR_WriteByte(void);
        !            36: extern void RS232_TSR_ReadByte(void);
        !            37: extern void RS232_TSR_WriteByte(void);
        !            38: extern void RS232_UDR_ReadByte(void);
        !            39: extern void RS232_UDR_WriteByte(void);
        !            40: 
        !            41: 
        !            42: #endif  /* ifndef HATARI_RS232_H */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.