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

Function cfsetspeed

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

* @brief Sets the input and output baud rates in a termios structure. * @param tio Pointer to a struct termios where the input and output baud rates will be set. * @param speed Baud rate to be set for both input and output. * @return Upon successful completion, returns 0; otherwise, returns -1 and sets errno to indicate the error. * * @note This function is a wrapper for the cfsetos

Source from the content-addressed store, hash-verified

268 * The function returns the result of cfsetospeed(), which sets the baud rate for both input and output.
269 */
270int cfsetspeed(struct termios *tio, speed_t speed)
271{
272 return cfsetospeed(tio, speed);
273}

Callers

nothing calls this directly

Calls 1

cfsetospeedFunction · 0.85

Tested by

no test coverage detected