Esempio n. 1
0
        public void ConstantCarrierWaveOutputForTestinng()
        {
            Debug.WriteLine(_radio.GetArduinoDetails());
            ConfigurationRegister configurationRegister = _radio.RegisterContainer.ConfigurationRegister;

            configurationRegister.PowerUp            = true;
            configurationRegister.PrimaryReceiveMode = false;
            configurationRegister.Save();
            Task.Delay(150).Wait();

            RfSetupRegister rfSetupRegister = _radio.RegisterContainer.RfSetupRegister;

            rfSetupRegister.EnableContiuousCarrierTransmit = true;
            rfSetupRegister.ForcePllSignalLock             = true;
            rfSetupRegister.PowerLevel = 3;
            rfSetupRegister.Save();

            RfChannelRegister rfChannelRegister = _radio.RegisterContainer.RfChannelRegister;

            rfChannelRegister.RfChannel = 1;
            rfChannelRegister.Save();

            _radio.OperatingMode = OperatingModes.ReceiveMode;
        }