RTEMS Logo

RTEMS 4.6.1 On-Line Library


Device- and Class- Specific Functions Manager cfsetospeed - Sets terminal output baud rate

PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

6.4.4: cfsetospeed - Sets terminal output baud rate

CALLING SEQUENCE:

#include <termios.h>

int cfsetospeed(
  struct termios *p,
  speed_t         speed
);

STATUS CODES:

The cfsetospeed() function returns a zero when successful and returns -1 when an error occurs.

DESCRIPTION:

The cfsetospeed() function stores a code for the terminal speed stored in a struct termios. The codes are defiined in <termios.h> by the macros B0, B50, B75, B110, B134, B150, B200, B300, B600, B1200, B1800, B2400, B4800, B9600, B19200, and B38400.

The cfsetospeed() function does not do anything to the hardware. It merely stores a value for use by tcsetattr().

NOTES:

This function merely stores a value in the termios structure. It does not change the terminal speed until a tcsetattr() is done. It does not detect impossible terminal speeds.


PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

Copyright © 1988-2004 OAR Corporation