Exemplo n.º 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;
     }
 }
Exemplo n.º 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;
     }
 }
Exemplo n.º 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;
     }
 }
Exemplo n.º 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;
     }
 }
Exemplo n.º 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;
     }
 }
Exemplo n.º 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;
     }
 }
Exemplo n.º 7
0
 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;
     }
 }
Exemplo n.º 8
0
 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;
     }
 }
Exemplo n.º 9
0
 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;
     }
 }
Exemplo n.º 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;
     }
 }
Exemplo n.º 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;
     }
 }
Exemplo n.º 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;
     }
 }
Exemplo n.º 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;
     }
 }
Exemplo n.º 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;
     }
 }
Exemplo n.º 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;
     }
 }