private void OnLnaGainChanged(LnaGainEnum value) { if (LnaGainChanged != null) LnaGainChanged(this, new LnaGainEventArg(value)); }
public LnaGainEventArg(LnaGainEnum value) { this.value = value; }
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); } }
private void OnLnaGainChanged(LnaGainEnum value) { if (LnaGainChanged == null) return; LnaGainChanged((object)this, new LnaGainEventArg(value)); }
public void SetLnaGain(LnaGainEnum value) { try { lock (syncThread) SetRegister("RegLna", 0x1F, (int)value << 5); } catch (Exception ex) { OnError(1, ex.Message); } }
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); } }