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

Function cfgetispeed

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

* @brief Gets the input baud rate from a termios structure. * @param tio Pointer to a struct termios containing the terminal attributes. * @return Input baud rate extracted from the terminal attributes. * * @note This function is a wrapper for the cfgetospeed() function. * It returns the input baud rate by calling cfgetospeed() with the termios structure pointer tio. */

Source from the content-addressed store, hash-verified

116 * It returns the input baud rate by calling cfgetospeed() with the termios structure pointer tio.
117 */
118speed_t cfgetispeed(const struct termios *tio)
119{
120 return cfgetospeed(tio);
121}
122
123/**
124 * @brief Sets the output baud rate in a termios structure.

Callers

nothing calls this directly

Calls 1

cfgetospeedFunction · 0.85

Tested by

no test coverage detected