ARM串口設置參數解釋
SYNOPSIS 總覽
#include
#include
int tcgetattr(int
int tcsetattr(int fd, int optional_actions, struct termios *termios_p);
int tcsendbreak(int fd, int duration);
int tcdrain(int fd);
int tcflush(int fd, int queue_selector);
int tcflow(int fd, int act
int cfmakeraw(struct termios *termios_p);
speed_t cfgetispeed(struct termios *termios_p);
speed_t cfgetospeed(struct termios *termios_p);
int cfsetispeed(struct termios *termios_p, speed_t speed);
int cfsetospeed(struct termios *termios_p, speed_t speed);
DESCRIPTION 描述
termios 函數族提供了一個(gè)常規的終端接口,用于控制非同步通信端口。
這里描述的大部分屬性有一個(gè) termios_p 類(lèi)型的參數,它是指向一個(gè) termios 結構的指針。這個(gè)結構包含了至少下列成員:
tcflag_t c_iflag; /* 輸入模式 */
tcflag_t c_oflag; /* 輸出模式 */
tcflag_t c_cflag; /* 控制模式 */
tcflag_t c_lflag; /* 本地模式 */
cc_t c_cc[NCCS]; /* 控制字符 */
c_iflag 標志常量:
IGNBRK
忽略輸入中的 BREAK 狀態(tài)。
BRKINT
如果設置了 IGNBRK,將忽略 BREAK。如果沒(méi)有設置,但是設置了 BRKINT,那么 BREAK 將使得輸入和輸出隊列被刷新,如果終端是一個(gè)前臺進(jìn)程組的控制終端,這個(gè)進(jìn)程組中所有進(jìn)程將收到 SIGINT 信號。如果既未設置 IGNBRK 也未設置 BRKINT,BREAK 將視為與 NUL 字符同義,除非設置了 PARMRK,這種情況下它被視為序列 377 国产精品自在自线亚洲|国产精品无圣光一区二区|国产日产欧洲无码视频|久久久一本精品99久久K精品66|欧美人与动牲交片免费播放