コード例 #1
0
ファイル: OpenDMX.cs プロジェクト: priyanr/Vixen
 private void InitOpenDmx()
 {
     _status = _openDmxConnection.ResetDevice();
     _status = _openDmxConnection.SetBaudRate(Baudrate);
     _status = _openDmxConnection.SetDataCharacteristics(Bits8, StopBits2, ParityNone);
     _status = _openDmxConnection.SetFlowControl(FlowNone, 0, 0);
     _status = _openDmxConnection.SetRTS(false);
     _status = _openDmxConnection.Purge(PurgeTx);
     _status = _openDmxConnection.Purge(PurgeRx);
 }
コード例 #2
0
 private void InitOpenDmx()
 {
     _status = _openDmxConnection.ResetDevice();
     Logging.Info($"Reset device: {_status}");
     _status = _openDmxConnection.SetBaudRate(Baudrate);
     Logging.Info($"Set device baudrate: {_status}");
     _status = _openDmxConnection.SetDataCharacteristics(Bits8, StopBits2, ParityNone);
     Logging.Info($"Set device data characteristics: {_status}");
     _status = _openDmxConnection.SetFlowControl(FlowNone, 0, 0);
     Logging.Info($"Set device flow control: {_status}");
     _status = _openDmxConnection.SetRTS(false);
     Logging.Info($"Set device RTS: {_status}");
     _status = _openDmxConnection.Purge(PurgeTx);
     Logging.Info($"Purge TX: {_status}");
     _status = _openDmxConnection.Purge(PurgeRx);
     Logging.Info($"Purge RX: {_status}");
 }