Added comments for flow control options

pull/26/head
Felipe Herranz 2016-02-13 10:55:52 +01:00
rodzic a050e14683
commit c826e45bdf
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -237,6 +237,12 @@ public class UsbService extends Service {
serialPort.setDataBits(UsbSerialInterface.DATA_BITS_8);
serialPort.setStopBits(UsbSerialInterface.STOP_BITS_1);
serialPort.setParity(UsbSerialInterface.PARITY_NONE);
/**
* Flow control Options:
* UsbSerialInterface.FLOW_CONTROL_OFF
* UsbSerialInterface.FLOW_CONTROL_RTS_CTS for CP2102 and FT232
* UsbSerialInterface.FLOW_CONTROL_DSR_DTR for CP2102 and FT232
*/
serialPort.setFlowControl(UsbSerialInterface.FLOW_CONTROL_OFF);
serialPort.read(mCallback);
serialPort.getCTS(ctsCallback);