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 函數族提供了一個常規的終端接口,用于控制非同步通信端口。
這里描述的大部分屬性有一個 termios_p 類型的參數,它是指向一個 termios 結構的指針。這個結構包含了至少下列成員:
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 狀態。
BRKINT
如果設置了 IGNBRK,將忽略 BREAK。如果沒有設置,但是設置了 BRKINT,那么 BREAK 將使得輸入和輸出隊列被刷新,如果終端是一個前臺進程組的控制終端,這個進程組中所有進程將收到 SIGINT 信號。如果既未設置 IGNBRK 也未設置 BRKINT,BREAK 將視為與 NUL 字符同義,除非設置了 PARMRK,這種情況下它被視為序列 377
主站蜘蛛池模板:
东港市|
顺昌县|
新密市|
洛浦县|
宿松县|
莎车县|
永仁县|
多伦县|
蒲江县|
秦皇岛市|
化州市|
深圳市|
抚宁县|
盖州市|
密云县|
南华县|
崇州市|
崇义县|
开化县|
呼伦贝尔市|
信阳市|
景德镇市|
祁阳县|
云和县|
青龙|
慈利县|
平果县|
抚远县|
留坝县|
柘荣县|
霍城县|
密山市|
台前县|
灵寿县|
乳山市|
陇西县|
西藏|
阜新市|
和林格尔县|
万州区|
仙桃市|