⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tio.h

📁 unix/linux下串口调试工具
💻 H
字号:
/******************************************************************************  SCT, Serial Communication Tracer  **  CopyRight (C)  Bruce (ZhaoFei), zhaofei@zflogic.com*                          http://www.zflogic.com**  All sources in the package are copyrighted under the the terms of GNU GPL******************************************************************************                                                                         *  This program is free software; you can redistribute it and/or modify*  it under the terms of the GNU General Public License as published by*  the Free Software Foundation; either version 2 of the License, or*  (at your option) any later version.**  This program is distributed in the hope that it will be useful,*  but WITHOUT ANY WARRANTY; without even the implied warranty of*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the*  GNU General Public License for more details.**  You should have received a copy of the GNU General Public License*  along with this program; if not, write to the Free Software*  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA**  If you intend to use this pragram commercially on a regular basis you*  must contact the author for an appropriate donation.*                                                                       ***************************************************************************/#ifndef TIO_H#define TIO_H#ifndef TIO_L#define TIO_L extern#endif#define EVENPARITY	2#define ODDPARITY	1	#define HS_RTSCTS	1	#define HS_XONXOFF	2	typedef struct {	char devname[128];	char frameset[20];	struct termios oldtio;		int fd;	int baudrate;	int parity;	int databits;	int stopbits;	uchar hsflag;	uchar opened;	} devstat_t;TIO_L bool parse_frameset(devstat_t *dt,char *frameset);  TIO_L int tio_block(int fd, bool block);TIO_L int tio_echo(int fd, bool echo);TIO_L int tio_raw(int fd);TIO_L int tio_cr2nl(int fd,int queue);	//replace CR with NL TIO_L int tio_saveset(int fd,struct termios *save_termios);TIO_L int tio_reset(int fd, struct termios *old_tios);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -