Struct pico_driver::ps3000a::PS3000ADriver [−][src]
pub struct PS3000ADriver { /* fields omitted */ }
Implementations
Trait Implementations
impl Debug for PS3000ADriver
[src]
impl Debug for PS3000ADriver
[src]impl PicoDriver for PS3000ADriver
[src]
impl PicoDriver for PS3000ADriver
[src]fn get_driver(&self) -> Driver
[src]
fn get_driver(&self) -> Driver
[src]Gets the underlying driver type
fn get_version(&self) -> PicoResult<String>
[src]
fn get_version(&self) -> PicoResult<String>
[src]Gets the driver version string
fn get_path(&self) -> PicoResult<Option<String>>
[src]
fn get_path(&self) -> PicoResult<Option<String>>
[src]Gets the path to the loaded driver
fn enumerate_units(&self) -> PicoResult<Vec<EnumerationResult>>
[src]
fn enumerate_units(&self) -> PicoResult<Vec<EnumerationResult>>
[src]Returns a list of discovered serial numbers
fn open_unit(&self, serial: Option<&str>) -> PicoResult<i16>
[src]
fn open_unit(&self, serial: Option<&str>) -> PicoResult<i16>
[src]Opens a device, optionally with a specific serial number
fn ping_unit(&self, handle: i16) -> PicoResult<()>
[src]
fn ping_unit(&self, handle: i16) -> PicoResult<()>
[src]Ping a unit to see if it’s still connected
fn maximum_value(&self, handle: i16) -> PicoResult<i16>
[src]
fn maximum_value(&self, handle: i16) -> PicoResult<i16>
[src]Get the maximum expected ADC value. This is required to scale to volts
fn close(&self, handle: i16) -> PicoResult<()>
[src]
fn close(&self, handle: i16) -> PicoResult<()>
[src]Close the specified unit
fn get_unit_info(&self, handle: i16, info_type: PicoInfo) -> PicoResult<String>
[src]
fn get_unit_info(&self, handle: i16, info_type: PicoInfo) -> PicoResult<String>
[src]Get one of the unit info strings
fn get_channel_ranges(
&self,
handle: i16,
channel: PicoChannel
) -> PicoResult<Vec<PicoRange>>
[src]
fn get_channel_ranges(
&self,
handle: i16,
channel: PicoChannel
) -> PicoResult<Vec<PicoRange>>
[src]Get valid ranges for the specified channel
fn enable_channel(
&self,
handle: i16,
channel: PicoChannel,
config: &ChannelConfig
) -> PicoResult<()>
[src]
fn enable_channel(
&self,
handle: i16,
channel: PicoChannel,
config: &ChannelConfig
) -> PicoResult<()>
[src]Set up a channel with the supplied config
fn disable_channel(&self, handle: i16, channel: PicoChannel) -> PicoResult<()>
[src]
fn disable_channel(&self, handle: i16, channel: PicoChannel) -> PicoResult<()>
[src]Disable a channel
fn set_data_buffer(
&self,
handle: i16,
channel: PicoChannel,
buffer: Arc<RwLock<Pin<Vec<i16>>>>,
buffer_len: usize
) -> PicoResult<()>
[src]
fn set_data_buffer(
&self,
handle: i16,
channel: PicoChannel,
buffer: Arc<RwLock<Pin<Vec<i16>>>>,
buffer_len: usize
) -> PicoResult<()>
[src]Give the driver a buffer to write data into
fn start_streaming(
&self,
handle: i16,
sample_config: &SampleConfig
) -> PicoResult<SampleConfig>
[src]
fn start_streaming(
&self,
handle: i16,
sample_config: &SampleConfig
) -> PicoResult<SampleConfig>
[src]Starts the device streaming
fn get_latest_streaming_values<'a>(
&self,
handle: i16,
_channels: &[PicoChannel],
callback: Box<dyn FnMut(usize, usize) + 'a>
) -> PicoResult<()>
[src]
fn get_latest_streaming_values<'a>(
&self,
handle: i16,
_channels: &[PicoChannel],
callback: Box<dyn FnMut(usize, usize) + 'a>
) -> PicoResult<()>
[src]Gets the latest streaming values
fn stop(&self, handle: i16) -> PicoResult<()>
[src]
fn stop(&self, handle: i16) -> PicoResult<()>
[src]Stops the device streaming
fn check_version(&self) -> Result<(), DriverLoadError>
[src]
fn check_version(&self) -> Result<(), DriverLoadError>
[src]Check that the driver meets the minimum version tested with these wrappers
Auto Trait Implementations
impl !RefUnwindSafe for PS3000ADriver
impl Send for PS3000ADriver
impl Sync for PS3000ADriver
impl Unpin for PS3000ADriver
impl !UnwindSafe for PS3000ADriver
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]