Ejemplo n.º 1
0
        public bool TryParamsAmsSideband(AmsSideband state)
        {
            var ptr = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(uint)));

            try
            {
                MarshalHelper.WriteUInt32(ptr, (uint)state);
                return(_api.SetDemodulatorParam(_radio.GetHandle(), _ddc2.Channel(),
                                                (uint)NativeDefinitions.DemodulatorParameter.G3XDDC_DEMODULATOR_PARAM_AMS_SIDE_BAND, ptr,
                                                (uint)Marshal.SizeOf(typeof(uint))));
            }
            finally
            {
                Marshal.FreeHGlobal(ptr);
            }
        }
Ejemplo n.º 2
0
 public Demodulator ParamsAmsSideband(AmsSideband state)
 {
     _radio.Check(TryParamsAmsSideband(state));
     return(this);
 }