.flowcontrol Property
Function: |
Sets/returns the flow control mode for the currently selected serial port (selection is made through ser.num) |
Type: |
dis_en (enum, byte) |
Value Range: |
|
See Also: |
Details
Only relevant when ser.mode = 0 — PL_SER_MODE_UART and ser.interface = 0 — PL_SER_SI_FULLDUPLEX (full-duplex). Flow control uses two serial port lines — RTS and CTS — to regulate the flow of data between the serial port of your device and another ("attached") serial device.
Depending on your platform, you may be allowed to remap RTS and CTS lines to other I/O pins of the device through the ser.rtsmap and ser.ctsmap properties. Also, you may be required to configure RTS and CTS lines as an input and output through the io.enabled property of the io. object. For more information, refer to your device's platform documentation (for example, the EM1000's is here).
When flow control is disabled, both the RTS and CTS lines are not used by the serial port and become regular I/O lines that can be controlled through the io. object.