Function soapysdr_sys::SoapySDRDevice_setGain
source · pub unsafe extern "C" fn SoapySDRDevice_setGain(
device: *mut SoapySDRDevice,
direction: c_int,
channel: usize,
value: f64
) -> c_int
Expand description
Set the overall amplification in a chain. The gain will be distributed automatically across available element. \param device a pointer to a device instance \param direction the channel direction RX or TX \param channel an available channel on the device \param value the new amplification value in dB \return an error code or 0 for success