Exemplo n.º 1
0
 public ConnectionSettings(uint baudRate, WORD_LENGTH wordLength, STOP_BITS stopBits, PARITY parity,
                           FLOW_CONTROL flowControl, byte xOn = 0x00, byte xOff = 0x00)
 {
     BaudRate    = baudRate;
     WordLength  = wordLength;
     StopBits    = stopBits;
     Parity      = parity;
     FlowControl = flowControl;
     XOn         = xOn;
     XOff        = xOff;
 }
Exemplo n.º 2
0
        private async void cbFlowControl_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
#if DAVE
            if (FtDevice == null)
            {
                return;
            }

            ComboBoxItem fc          = (ComboBoxItem)cbFlowControl.SelectedItem;
            FLOW_CONTROL flowControl = (FLOW_CONTROL)Enum.Parse(typeof(FLOW_CONTROL), (String)fc.Tag);
            await FtDevice.SetFlowControl(flowControl, 0x00, 0x00);
#endif
        }
Exemplo n.º 3
0
 public ConnectionSettings(uint baudRate, WORD_LENGTH wordLength, STOP_BITS stopBits, PARITY parity,
                           FLOW_CONTROL flowControl, byte xOn = 0x00, byte xOff = 0x00)
 {
     BaudRate = baudRate;
     WordLength = wordLength;
     StopBits = stopBits;
     Parity = parity;
     FlowControl = flowControl;
     XOn = xOn;
     XOff = xOff;
 }