Struct redpitaya_scpi::acquire::Acquire
[−]
[src]
pub struct Acquire { /* fields omitted */ }
Methods
impl Acquire
[src]
fn new(socket: Socket) -> Self
fn start(&mut self)
Starts acquisition.
fn stop(&mut self)
Stops acquisition.
fn reset(&self)
Stops acquisition and sets all parameters to default values.
fn set_decimation(&self, decimation: Decimation)
Set decimation factor.
fn get_decimation(&self) -> Result<Decimation, String>
Get decimation factor.
fn get_sampling_rate(&self) -> Result<SamplingRate, String>
Get sampling rate.
Panics
Calling this command makes buffer overflow. See https://github.com/RedPitaya/RedPitaya/pull/110
fn enable_average(&self)
Enable averaging.
fn disable_average(&self)
Disable averaging.
fn is_average_enabled(&self) -> bool
Get averaging status.
fn set_gain(&self, source: Source, gain: Gain)
Set gain settings to HIGH or LOW.
This gain is referring to jumper settings on Red Pitaya fast analog inputs.
fn get_gain(&self, source: Source) -> Result<Gain, String>
Get gain settings to HIGH or LOW.
Trait Implementations
impl Clone for Acquire
[src]
fn clone(&self) -> Acquire
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more