I want to use a serial interface using flow control (RTS/CTS). Similar to what I know from Linux after opening the port I configure it for hardware flow control:
tcgetattr(Fd, &options); #ifdef ENV_LINUX options.c_cflag|=CRTSCTS; #else options.c_cflag|=IHFLOW|OHFLOW; #endif cfsetispeed(&options, B9600); cfsetospeed(&options, B9600);
Here I’m using IHFLOW and OHFLOW instead of CRTSCTS. But I’m not sure if it is really correct or if my communication only accidentially works: When I do not use these flags IHFLOW and OHFLOW but explicitely unset them it doesn’t changes anything. So is that really the correct way to enable hardware flow control?