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

Function cfsetispeed

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

* @brief Sets the input baud rate in a termios structure. * @param tio Pointer to a struct termios where the input baud rate will be set. * @param speed Input baud rate to be set. * @return Upon successful completion, returns 0; otherwise, returns -1 and sets errno to indicate the error. * * @note This function sets the input baud rate in the termios structure pointed to by tio. *

Source from the content-addressed store, hash-verified

160 * without making any changes to the termios structure.
161 */
162int cfsetispeed(struct termios *tio, speed_t speed)
163{
164 return speed ? cfsetospeed(tio, speed) : 0;
165}
166
167/**
168 * @brief Sends a break signal on a terminal.

Callers 4

serial_tty_paramFunction · 0.85
configureSerialFunction · 0.85
configureSerialFunction · 0.85
config_commFunction · 0.85

Calls 1

cfsetospeedFunction · 0.85

Tested by 1

config_commFunction · 0.68