📄 winuart.h
字号:
/* winuart.h
Copyright 1997 by InterNiche Technologies.
Copyright 1996 by NetPort Software
7/20/96 - Created for NAT DOS demo. John Bartas @ NetPort Software
8/28/97 - Modefied to support raw uart (no modem) as a comline driver -JB-
*/
#ifndef UART_BUFSIZ
#define UART_BUFSIZ 1024 /* must be power of two */
#endif
#ifndef MAXUNITS /* max. logical SLIP/PPP connections */
#define MAXUNITS 4
#endif
#ifndef MAXCOMMS /* max. PC Com ports, 2 or 4 */
#define MAXCOMMS 2
#endif
#include "comline.h"
struct com_win
{
void * dev; /* file handle for Windows COM IO */
long uart_gets; /* get_uart received char count */
long uart_tmo; /* put_uart timeouts */
long uart_out; /* put_uart chars out */
int uart_open; /* TRUE if uart_init() has been called (and close has not) */
int uart_unit; /* PPP (or SLIP) unit for this comport */
long baudrate; /* baud rate set to uart */
struct com_line * p_line; /* protocol's com_line struct */
};
extern int comport_map[MAXUNITS]; /* map logical units to PC com ports */
extern struct com_win com_ports[MAXCOMMS];
/* system stuff */
extern void exit_hook(void (*)(void));
extern void uart_closehook(void);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -