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

1.1       root        1: /*
                      2:   Hatari
                      3: */
                      4: 
                      5: /* Ctrl/Ucr defines for ST */
                      6: #define CTRL_XON_XOFF   0x0001
                      7: #define CTRL_RTS_CTS    0x0002
                      8: 
                      9: #define UCR_ODDPARITY   0x0000
                     10: #define UCR_EVENPARITY  0x0002
                     11: #define UCR_PARITY      0x0004
                     12: #define UCR_STARTSTOP   0x0018
                     13: #define UCR_0STOPBIT    0x0000
                     14: #define UCR_1STOPBIT    0x0008
                     15: #define UCR_15STOPBIT   0x0010
                     16: #define UCR_2STOPBIT    0x0018
                     17: 
                     18: #define  MAX_TEMP_RS232INPUT_BUFFER  1024
                     19: 
                     20: #define  MAX_RS232INPUT_BUFFER    2048  // Must be ^2
                     21: #define  MAX_RS232INPUT_BUFFER_MASK  (MAX_RS232INPUT_BUFFER-1)
                     22: 
                     23: //extern HANDLE hCom;
                     24: extern unsigned char TempRS232InputBuffer[MAX_TEMP_RS232INPUT_BUFFER];
                     25: extern unsigned char InputBuffer_RS232[MAX_RS232INPUT_BUFFER];
                     26: extern int InputBuffer_Head,InputBuffer_Tail;
                     27: 
                     28: extern void RS232_Init(void);
                     29: extern void RS232_UnInit(void);
                     30: extern BOOL RS232_OpenCOMPort(void);
                     31: extern void RS232_CloseCOMPort(void);
                     32: extern void RS232_SetConfig(int Baud,short int Ctrl,short int Ucr);
                     33: extern BOOL RS232_TransferBytesTo(unsigned char *pBytes, int nBytes);
                     34: extern BOOL RS232_ReadBytes(unsigned char *pBytes, int nBytes);
                     35: extern BOOL RS232_GetStatus(void);
                     36: //extern DWORD FAR PASCAL RS232_ThreadFunc(LPSTR lpData);

unix.superglobalmegacorp.com

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