Linux串口编程

 

代码

#include<termios.h>

struct termio

{
unsigned short c_iflag; //
输入模式

unsigned short c_oflag; //输出模式

unsigned short c_cflag; //控制模式

unsigned short c_lflag; //本地模式

unsigned char c_line; //line discipline

unsigned char c_cc[NCC]; //control characters

}

 

posted @ 2011-01-23 11:03  高性能golang  阅读(242)  评论(0编辑  收藏  举报