Skip to main content

SoapySDRDevice_setFrequencyComponent

Function SoapySDRDevice_setFrequencyComponent 

Source
pub unsafe extern "C" fn SoapySDRDevice_setFrequencyComponent(
    device: *mut SoapySDRDevice,
    direction: c_int,
    channel: usize,
    name: *const c_char,
    frequency: f64,
    args: *const SoapySDRKwargs,
) -> c_int
Expand description

Tune the center frequency of the specified element.

  • For RX, this specifies the down-conversion frequency.
  • For TX, this specifies the up-conversion frequency. Recommended names used to represent tunable components:
  • “CORR” - freq error correction in PPM
  • “RF” - frequency of the RF frontend
  • “BB” - frequency of the baseband DSP \param device a pointer to a device instance \param direction the channel direction RX or TX \param channel an available channel the device \param name the name of a tunable element \param frequency the center frequency in Hz \param args optional tuner arguments \return an error code or 0 for success