Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cfsetispeed(3) [osf1 man page]

cfsetispeed(3)						     Library Functions Manual						    cfsetispeed(3)

NAME
cfsetispeed - Sets input baud rate for a terminal LIBRARY
Standard C Library (libc.so, libc.a) SYNOPSIS
#include <termios.h> int cfsetispeed( struct termios *termios_p; speed_t speed); STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: cfsetispeed(): POSIX.1, XPG4, XPG4-UNIX Refer to the standards(5) reference page for more information about industry standards and associated tags. PARAMETERS
Points to a termios structure containing the input baud rate. Specifies the new input baud rate. DESCRIPTION
The cfsetispeed() function sets the input baud rate stored in the structure pointed to by the termios_p parameter to the value specified by the speed parameter. If the input baud rate is set to 0 (zero), the input baud rate will be specified by the value of the output baud rate. There is no effect on the baud rates set in the hardware until a subsequent successful call is made to the tcsetattr() function on the same termios structure. RETURN VALUES
Upon successful completion, the cfsetispeed() function returns a value of 0 (zero). Otherwise, a value of -1 is returned. RELATED INFORMATION
Functions: cfgetispeed(3), cfgetospeed(3), cfsetospeed(3), tcsetattr(3) Files: termios(4) Standards: standards(5) delim off cfsetispeed(3)

Check Out this Related Man Page

cfgetispeed(3)						     Library Functions Manual						    cfgetispeed(3)

NAME
cfgetispeed - Gets the input baud rate for a terminal LIBRARY
Standard C Library (libc.so, libc.a) SYNOPSIS
#include <termios.h> speed_t cfgetispeed( const struct termios *termios_p); STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: cfgetispeed(): XPG4, XPG4-UNIX Refer to the standards(5) reference page for more information about industry standards and associated tags. PARAMETERS
Points to a termios structure containing the input baud rate. DESCRIPTION
The cfgetispeed() function extracts the input baud rate from the termios structure to which the termios_p parameter points. This function returns exactly the value in the termios structure, without interpretation. RETURN VALUES
Upon successful completion, the cfgetispeed() function returns a value of type speed_t representing the input baud rate. RELATED INFORMATION
Functions: cfgetospeed(3), cfsetispeed(3), cfsetospeed(3), tcgetattr(3) Files: termios(4) Standards: standards(5) delim off cfgetispeed(3)
Man Page

4 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

rate of process

How can I determine if the data collection rate is 1 Hz on Solaris? (0 Replies)
Discussion started by: laila63
0 Replies

2. UNIX for Advanced & Expert Users

How to set baude rate of Serial port using setserial or other command

Hello, I am encountering problems when I use termios structure to set my baud rate of serial port. Pls give me a way by which I can set the same using a different command (1 Reply)
Discussion started by: zaheer031
1 Replies

3. Programming

POSIX method for setting arbitrary (nonstandard) baud rate?

I have a USB serial adapter that supports arbitrary baud rates. To set a nonstandard rate in code, I'd been using the TIOCGSERIAL like so: struct serial_struct ser_info; ioctl(ser_dev, TIOCGSERIAL, &ser_info); ser_info.flags = ASYNC_SPD_CUST | ASYNC_LOW_LATENCY; ser_info.custom_divisor... (1 Reply)
Discussion started by: cmb
1 Replies

4. Programming

Serial programming using termios

Hi guys I'm trying to connect to CISCO router using termios. So I decided to have two threads one for reading data and the other one for writing data. And here's my code : int mainfd=0; char ch = {NULL}; void *write(void *) { char temp; while(1) { temp =... (3 Replies)
Discussion started by: turner
3 Replies