📄 com.h
字号:
#ifndef _COM_H#define _COM_H#include <stdio.h>#include <unistd.h>#include <fcntl.h>#include <termios.h>/* you can chose the baudrate: B0 B50 B75 B110 B134 B150 B200 B300 B600 B1200 B1800 B2400 B4800 B9600 B19200 B38400 B57600 B115200 B230400*/typedef struct{ char serverip[30]; char serverport[30];}net_struct;typedef struct{ char baudrate[30]; char databits[30]; char stopbits[30]; char parity[30]; char handshaking[30];}com_struct;int opencommport(const char *commport,com_struct com);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -