View topic - Serial Port - Hardware Flow control

Serial Port - Hardware Flow control

anything that doesn't fit to other groups.

Serial Port - Hardware Flow control

Postby Keano » Fri Jan 16, 2004 3:52 pm

Hi all,

I am writing routines for the serial port and I was wondering if setting the QNX (POSIX) flags "IHFLOW" and "OHFLOW" would have the same effect as setting the Linux "CRTSCTS" (Non-Posix) bit to enable hardware flow control?

eg: tio.c_cflag |= IHFLOW; // Enable INPUT hardware control
tio.c_cflag |= OHFLOW; // Enable OUTPUT hardware control
//QNX
(Where "tio" is a termios struct)

Is the same as :
tio.c_cflag |= CRTSCTS; ???
//Linux
As always, any help is very much appreciated.

RK
Keano
Active Member
 
Posts: 31
Joined: Fri May 30, 2003 11:19 am

Postby martin » Sat Jan 17, 2004 10:31 am

Hey keano,

IHFLOW and OHFLOW control the rts and cts (hardware handshake) lines.

Greetz,

Martin.
martin
Active Member
 
Posts: 25
Joined: Fri Nov 21, 2003 7:38 am

Postby Keano » Mon Jan 19, 2004 10:22 am

Thanks for the reply Martin,
Will the code have the same effect as the Linux version however?
Keano
Active Member
 
Posts: 31
Joined: Fri May 30, 2003 11:19 am

Postby martin » Mon Jan 19, 2004 2:18 pm

They have the same effect.

Martin.
martin
Active Member
 
Posts: 25
Joined: Fri Nov 21, 2003 7:38 am


Return to General Programming

Who is online

Users browsing this forum: No registered users and 1 guest