Struct redpitaya_scpi::generator::Generator
[−]
[src]
pub struct Generator { /* fields omitted */ }
Methods
impl Generator
[src]
fn new(socket: Socket) -> Self
fn start(&self, source: Source)
Enable fast analog outputs.
fn stop(&self, source: Source)
Disable fast analog outputs.
fn is_started(&self, source: Source) -> bool
fn set_frequency(&self, source: Source, frequency: u32)
Set frequency of fast analog outputs.
fn get_frequency(&self, source: Source) -> u32
Get frequency of fast analog outputs.
fn set_form(&self, source: Source, form: Form)
Set waveform of fast analog outputs.
fn get_form(&self, source: Source) -> Form
fn set_amplitude(&self, source: Source, amplitude: f32)
Set amplitude voltage of fast analog outputs.
Amplitude + offset value must be less than maximum output range ± 1V
fn get_amplitude(&self, source: Source) -> f32
Get amplitude voltage of fast analog outputs.
fn set_offset(&self, source: Source, offset: f32)
Set offset voltage of fast analog outputs.
Amplitude + offset value must be less than maximum output range ± 1V
fn get_offset(&self, source: Source) -> f32
Get offset voltage of fast analog outputs.
fn set_phase(&self, source: Source, phase: i32)
Set phase of fast analog outputs.
fn set_duty_cycle(&self, source: Source, dcyc: f32)
Set duty cycle of PWM waveform.
fn get_duty_cycle(&self, source: Source) -> f32
Get duty cycle of PWM waveform.
fn arbitrary_waveform(&self, source: Source, data: Vec<f32>)
Import data for arbitrary waveform generation.
fn set_trigger_source(&self, source: Source, trigger: TriggerSource)
Set trigger source for selected signal.
fn trigger(&self, source: Source)
Triggers selected source immediately.
fn trigger_all(&self)
Triggers both sources immediately.
fn reset(&self)
Reset generator to default settings.
Trait Implementations
impl Clone for Generator
[src]
fn clone(&self) -> Generator
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