uart_port structure describing the port in question. desired termios settings. old termios (or NULL) minimum acceptable baud rate maximum acceptable baud rate Decode the termios structure into a numeric baud rate, taking account of the magic 38400 baud rate (with spd_* flags), and mapping the If the new baud rate is invalid, try the old termios setting. If it's still invalid, we try 9600 baud. Update the termios structure to reflect the baud rate we're actually going to be using. Name
Arguments
port
Description
B0 rate to 9600 baud.
uart_get_baud_rate
最新推荐文章于 2025-04-27 10:24:21 发布
本文介绍了一个用于获取特定端口波特率的函数uart_get_baud_rate。该函数通过解析termios结构来确定实际使用的波特率,并考虑了特殊波特率设置的情况。
uart_get_baud_rate -- return baud rate for a particular port

1153

被折叠的 条评论
为什么被折叠?



