uart_get_baud_rate
来源:互联网 发布:剑三成女捏脸数据网盘 编辑:程序博客网 时间:2024/04/28 23:48
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
Synopsis
unsigned int uart_get_baud_rate
(struct uart_port * port, struct termios * termios, struct termios * old, unsigned int min, unsigned int max);Arguments
Description
B0
rate to 9600 baud.