* @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
| 103 | * The output baud rate is returned as a speed_t type. |
| 104 | */ |
| 105 | speed_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. |
no outgoing calls
no test coverage detected