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  张朝阳讲go语言  阅读(247)  评论(0)    收藏  举报