Method: SerialPort#flow_control=

Defined in:
ext/native/serialport.c

#flow_control=(val) ⇒ Integer

Note:

SerialPort::HARD mode is not supported on all platforms.

Note:

SerialPort::HARD uses RTS/CTS handshaking. DSR/DTR is not supported.

Set the flow control

Parameters:

  • val (Integer)

    the flow control flag, NONE, HARD, SOFT, or (HARD | SOFT)

Returns:

  • (Integer)

    the original val parameter



175
176
177
178
# File 'ext/native/serialport.c', line 175

static VALUE sp_set_flow_control(VALUE self, VALUE val)
{
   return sp_set_flow_control_impl(self, val);
}