RTEMS: cpukit/libcsupport/src/termios_baud2num.c File Reference

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
Functions
termios_baud2num.c File Reference
Internal » Standard C Library Support » RTEMS Termios Device Support

Convert Baud Part of Termios control flags to an integral Baud Value. More...

`#include <rtems/termiostypes.h>`

## Functions
rtems_termios_baud_t | rtems_termios_baud_to_number (speed_t spd)
| Converts the baud flags to an integral baud value.

## Detailed Description

Convert Baud Part of Termios control flags to an integral Baud Value.

## Function Documentation

## ◆ rtems_termios_baud_to_number()

rtems_termios_baud_t rtems_termios_baud_to_number | ( | speed_t | baud | ) |

Converts the baud flags to an integral baud value.

Return values

  0 | Invalid baud value or a baud value of `B0`.
  other | Integral baud value.