Function redpitaya::acquire::set_gain[][src]

pub fn set_gain(channel: Channel, gain: Gain) -> Result<()>

Sets the acquire gain state.

The gain should be set to the same value as it is set on the Red Pitaya hardware by the LV/HV gain jumpers. LV = 1V; HV = 20V.