Struct redpitaya_scpi::burst::Burst
[−]
[src]
pub struct Burst { /* fields omitted */ }
Methods
impl Burst
[src]
fn new(socket: Socket) -> Self
fn set_mode(&self, source: Source, mode: Mode)
Set burst (pulse) mode.
Red Pitaya will generate R number of N periods of signal and then stop. Time between bursts is P.
fn get_mode(&self, source: Source) -> Result<Mode, String>
Set burst (pulse) mode.
fn set_count(&self, source: Source, count: u32)
Set N number of periods in one burst.
fn get_count(&self, source: Source) -> Result<u32, <u32 as FromStr>::Err>
Get number of periods in one burst.
fn set_repetitions(&self, source: Source, repetitions: u32)
Set R number of repeated bursts.
fn get_repetitions(&self, source: Source) -> Result<u32, <u32 as FromStr>::Err>
Get number of repeated bursts.
fn set_period(&self, source: Source, period: u32)
Set P total time of one burst in in micro seconds.
This includes the signal and delay.
fn get_period(&self, source: Source) -> Result<u32, <u32 as FromStr>::Err>
Get total time of one burst in in micro seconds.
This includes the signal and delay.
Trait Implementations
impl Clone for Burst
[src]
fn clone(&self) -> Burst
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