Example #1
0
		private void OnLnaGainChanged(LnaGainEnum value)
		{
			if (LnaGainChanged != null)
				LnaGainChanged(this, new LnaGainEventArg(value));
		}
Example #2
0
 public LnaGainEventArg(LnaGainEnum value)
 {
     this.value = value;
 }
Example #3
0
 public void SetLnaGain(LnaGainEnum value)
 {
     try
     {
         lock (syncThread)
         {
             registers["RegLna"].Value = (uint)(byte)((uint)(byte)((uint)(byte)registers["RegLna"].Value & 31U) | (uint)(byte)((uint)(byte)value << 5));
             ReadRegister(registers["RegLna"]);
         }
     }
     catch (Exception ex)
     {
         OnError((byte)1, ex.Message);
     }
 }
Example #4
0
 public LnaGainEventArg(LnaGainEnum value)
 {
     this.value = value;
 }
Example #5
0
 private void OnLnaGainChanged(LnaGainEnum value)
 {
     if (LnaGainChanged == null)
         return;
     LnaGainChanged((object)this, new LnaGainEventArg(value));
 }
Example #6
0
 public void SetLnaGain(LnaGainEnum value)
 {
     try
     {
         lock (syncThread)
             SetRegister("RegLna", 0x1F, (int)value << 5);
     }
     catch (Exception ex)
     {
         OnError(1, ex.Message);
     }
 }
Example #7
0
		public void SetLnaGainSelect(LnaGainEnum value)
		{
			try
			{
				lock (syncThread)
				{
					m_registers["RegLna"].Value = (m_registers["RegLna"].Value & 0xF8) | (uint)value;
					if (LnaGainSelect != LnaGainEnum.AGC)
						ReadRegister(m_registers["RegLna"]);
				}
			}
			catch (Exception exception)
			{
				OnError(1, exception.Message);
			}
		}