Exemplo n.º 1
0
        public bool TryAdcNoiseBlanker(NoiseBlanker blanker)
        {
            var res = _api.SetAdcNoiseBlanker(GetHandle(), blanker.Active);

            res &= _api.SetAdcNoiseBlankerThreshold(GetHandle(), (ushort)blanker.Threshold);
            return(res);
        }
Exemplo n.º 2
0
        public bool TryNoiseBlanker(NoiseBlanker blanker)
        {
            var res = _api.SetDdc2NoiseBlanker(_radio.GetHandle(), _channel, blanker.Active);

            res &= _api.SetDdc2NoiseBlankerThreshold(_radio.GetHandle(), _channel, blanker.Threshold);
            return(res);
        }
Exemplo n.º 3
0
 public G31DdcRadio AdcNoiseBlanker(NoiseBlanker blanker)
 {
     Check(_api.SetAdcNoiseBlanker(GetHandle(), blanker.Active));
     Check(_api.SetAdcNoiseBlankerThreshold(GetHandle(), (ushort)blanker.Threshold));
     return(this);
 }
Exemplo n.º 4
0
 public Ddc2 NoiseBlanker(NoiseBlanker blanker)
 {
     _radio.Check(_api.SetDdc2NoiseBlanker(_radio.GetHandle(), _channel, blanker.Active));
     _radio.Check(_api.SetDdc2NoiseBlankerThreshold(_radio.GetHandle(), _channel, blanker.Threshold));
     return(this);
 }
Exemplo n.º 5
0
        /// <summary>
        /// Function for configuring the noise blanker
        /// </summary>
        /// <param name="noiseBlanker"><see cref="Devices.NoiseBlanker"/> Blanker parameters</param>
        /// <returns>Returns <see cref="G313Demodulator"/></returns>
        public G313Demodulator NoiseBlanker(NoiseBlanker noiseBlanker)
        {
            var result = TryNoiseBlanker(noiseBlanker);

            return(CheckFluent(result, "failed to set noise blanker"));
        }
Exemplo n.º 6
0
 /// <summary>
 /// Function for configuring the noise blanker
 /// </summary>
 /// <param name="noiseBlanker"><see cref="Devices.NoiseBlanker"/> Blanker parameters</param>
 /// <returns>Return true if Noise blanker parameters are set.</returns>
 public bool TryNoiseBlanker(NoiseBlanker noiseBlanker)
 {
     return(G313DemodulatorApi.SetNoiseBlanker(GetHandle(), noiseBlanker.Active, (uint)noiseBlanker.Threshold));
 }