Struct redpitaya_scpi::data::Data
[−]
[src]
pub struct Data { /* fields omitted */ }
Methods
impl Data
[src]
fn get_write_pointer(&self) -> Result<u32, <u32 as FromStr>::Err>
Returns current position of write pointer.
fn get_trigger_position(&self) -> Result<u32, <u32 as FromStr>::Err>
Returns position where trigger event appeared.
fn set_units(&self, unit: Unit)
Selects units in which acquired data will be returned.
fn get_units(&self) -> Result<Unit, String>
Get units in which acquired data will be returned.
fn set_format(&self, format: Format)
Selects format acquired data will be returned.
fn read_slice(&self, source: Source, start: u16, end: u16) -> Vec<f64>
Read samples from start to stop position.
start = {0,1,...,16384} stop_pos = {0,1,...16384}
fn read(&self, source: Source, start: u16, len: u32) -> Vec<f64>
Read m
samples from start position on.
fn read_all(&self, source: Source) -> Vec<f64>
Read full buf.
Size starting from oldest sample in buffer (this is first sample after trigger delay). Trigger delay by default is set to zero (in samples or in seconds). If trigger delay is set to zero it will read full buf. Size starting from trigger.
fn read_oldest(&self, source: Source, len: u32) -> Vec<f64>
Read m samples after trigger delay, starting from oldest sample in buffer (this is first sample after trigger delay).
Trigger delay by default is set to zero (in samples or in seconds). If trigger delay is set to zero it will read m samples starting from trigger.
fn read_latest(&self, source: Source, len: u32) -> Vec<f64>
Read m
samples before trigger delay.
Trigger delay by default is set to zero (in samples or in seconds). If trigger delay is set to zero it will read m samples before trigger.
fn buffer_size(&self) -> Result<u32, <u32 as FromStr>::Err>
Returns buffer size.
Trait Implementations
impl Clone for Data
[src]
fn clone(&self) -> Data
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