MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / cfgetospeed

Function cfgetospeed

components/libc/posix/io/termios/termios.c:105–108  ·  view source on GitHub ↗

* @brief Gets the output baud rate from a termios structure. * @param tio Pointer to a struct termios containing the terminal attributes. * @return Output baud rate extracted from the terminal attributes. * * @note This function extracts the output baud rate from the termios structure pointed to by tio. * It retrieves the baud rate from the c_cflag member of the termios struc

Source from the content-addressed store, hash-verified

103 * The output baud rate is returned as a speed_t type.
104 */
105speed_t cfgetospeed(const struct termios *tio)
106{
107 return tio->c_cflag & CBAUD;
108}
109
110/**
111 * @brief Gets the input baud rate from a termios structure.

Callers 5

lwp_tty_ioctl_adapterFunction · 0.85
rt_serial_controlFunction · 0.85
rt_serial_controlFunction · 0.85
_serial_tty_set_speedFunction · 0.85
cfgetispeedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected