Exemple #1
0
 private void transmitterViewControl1_Pa20dBmChanged(object sender, BooleanEventArg e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         this.OnError((byte)0, "-");
         this.device.SetPa20dBm(e.Value);
     }
     catch (Exception ex)
     {
         this.OnError((byte)1, ex.Message);
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
Exemple #2
0
 private void commonViewControl1_TcxoInputChanged(object sender, BooleanEventArg e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         this.OnError((byte)0, "-");
         this.device.SetTcxoInputOn(e.Value);
     }
     catch (Exception ex)
     {
         this.OnError((byte)1, ex.Message);
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
Exemple #3
0
 private void receiverViewControl1_RestartRxOnCollisionOnChanged(object sender, BooleanEventArg e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         this.OnError((byte)0, "-");
         this.device.SetRestartRxOnCollisionOn(e.Value);
     }
     catch (Exception ex)
     {
         this.OnError((byte)1, ex.Message);
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
Exemple #4
0
 private void temperatureViewControl1_TempMeasOnChanged(object sender, BooleanEventArg e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         this.OnError((byte)0, "-");
         this.device.SetTempMonitorOff(e.Value);
     }
     catch (Exception ex)
     {
         this.OnError((byte)1, ex.Message);
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
Exemple #5
0
 private void irqMapViewControl1_DioPreambleIrqOnChanged(object sender, BooleanEventArg e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         this.OnError((byte)0, "-");
         this.device.SetDioPreambleIrqOn(e.Value);
     }
     catch (Exception ex)
     {
         this.OnError((byte)1, ex.Message);
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
Exemple #6
0
 private void packetHandlerView1_TxStartConditionChanged(object sender, BooleanEventArg e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         this.OnError((byte)0, "-");
         this.device.SetTxStartCondition(e.Value);
     }
     catch (Exception ex)
     {
         this.OnError((byte)1, ex.Message);
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
 private void transmitterViewControl1_OcpOnChanged(object sender, BooleanEventArg e)
 {
     try
     {
         Cursor = Cursors.WaitCursor;
         OnError(0, "-");
         sx1231.SetOcpOn(e.Value);
     }
     catch (Exception exception)
     {
         OnError(1, exception.Message);
     }
     finally
     {
         Cursor = Cursors.Default;
     }
 }
 private void commonViewControl1_SequencerChanged(object sender, BooleanEventArg e)
 {
     try
     {
         Cursor = Cursors.WaitCursor;
         OnError(0, "-");
         sx1231.SetSequencer(e.Value);
     }
     catch (Exception exception)
     {
         OnError(1, exception.Message);
     }
     finally
     {
         Cursor = Cursors.Default;
     }
 }
 private void receiverViewControl1_SensitivityBoostOnChanged(object sender, BooleanEventArg e)
 {
     try
     {
         Cursor = Cursors.WaitCursor;
         OnError(0, "-");
         sx1231.SetSensitivityBoostOn(e.Value);
     }
     catch (Exception exception)
     {
         OnError(1, exception.Message);
     }
     finally
     {
         Cursor = Cursors.Default;
     }
 }
Exemple #10
0
 private void temperatureViewControl1_AdcLowPowerOnChanged(object sender, BooleanEventArg e)
 {
     try
     {
         Cursor = Cursors.WaitCursor;
         OnError(0, "-");
         sx1231.SetAdcLowPowerOn(e.Value);
     }
     catch (Exception exception)
     {
         OnError(1, exception.Message);
     }
     finally
     {
         Cursor = Cursors.Default;
     }
 }
Exemple #11
0
 private void receiverViewControl1_RssiAutoThreshChanged(object sender, BooleanEventArg e)
 {
     try
     {
         Cursor = Cursors.WaitCursor;
         OnError(0, "-");
         sx1231.RssiAutoThresh = e.Value;
     }
     catch (Exception exception)
     {
         OnError(1, exception.Message);
     }
     finally
     {
         Cursor = Cursors.Default;
     }
 }
Exemple #12
0
 private void packetHandlerView1_TxStartConditionChanged(object sender, BooleanEventArg e)
 {
     try
     {
         Cursor = Cursors.WaitCursor;
         OnError(0, "-");
         sx1231.SetTxStartCondition(e.Value);
     }
     catch (Exception exception)
     {
         OnError(1, exception.Message);
     }
     finally
     {
         Cursor = Cursors.Default;
     }
 }
Exemple #13
0
 private void loRaViewControl1_ValidHeaderMaskChanged(object sender, BooleanEventArg e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         this.OnError((byte)0, "-");
         this.device.SetValidHeaderMask(e.Value);
     }
     catch (Exception ex)
     {
         this.OnError((byte)1, ex.Message);
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
Exemple #14
0
 private void loRaViewControl1_StartStopChanged(object sender, BooleanEventArg e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         this.OnError((byte)0, "-");
         this.device.SetPacketHandlerStartStop(e.Value);
     }
     catch (Exception ex)
     {
         this.OnError((byte)1, ex.Message);
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
Exemple #15
0
 private void loRaViewControl1_PacketModeTxChanged(object sender, BooleanEventArg e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         this.OnError((byte)0, "-");
         this.device.PacketModeTx = e.Value;
     }
     catch (Exception ex)
     {
         this.OnError((byte)1, ex.Message);
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }