[−][src]Struct pico_driver::DriverPS2000
Wraps the ps2000 driver so that it implements the PicoDriver
trait
Fields
driver: Driver
Implementations
impl DriverPS2000
[src]
pub fn new(resolution: &Resolution) -> Result<Self, DriverLoadError>
[src]
Constructs a driver wrapper with the specified Resolution
pub fn with_loader(loader: LoaderPS2000) -> Self
[src]
Constructs a driver wrapper with the specified loader
Trait Implementations
impl Clone for DriverPS2000
[src]
fn clone(&self) -> DriverPS2000
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for DriverPS2000
[src]
impl PicoDriver for DriverPS2000
[src]
fn get_driver(&self) -> Driver
[src]
fn get_version(&self) -> PicoResult<String>
[src]
fn get_path(&self) -> PicoResult<Option<String>>
[src]
fn enumerate_units(&self) -> PicoResult<Vec<String>>
[src]
fn open_unit(&self, serial: Option<&str>) -> PicoResult<i16>
[src]
fn ping_unit(&self, handle: i16) -> PicoResult<()>
[src]
fn maximum_value(&self, _: i16) -> PicoResult<i16>
[src]
fn close_unit(&self, handle: i16) -> PicoResult<()>
[src]
fn get_unit_info(&self, handle: i16, info_type: PicoInfo) -> PicoResult<String>
[src]
fn get_channel_ranges(
&self,
handle: i16,
channel: PicoChannel
) -> PicoResult<Vec<PicoRange>>
[src]
&self,
handle: i16,
channel: PicoChannel
) -> PicoResult<Vec<PicoRange>>
fn set_channel(
&self,
handle: i16,
channel: PicoChannel,
config: &ChannelConfig
) -> PicoResult<()>
[src]
&self,
handle: i16,
channel: PicoChannel,
config: &ChannelConfig
) -> PicoResult<()>
fn set_data_buffer(
&self,
handle: i16,
channel: PicoChannel,
buffer: Arc<RwLock<Pin<Vec<i16>>>>,
_buffer_len: usize
) -> PicoResult<()>
[src]
&self,
handle: i16,
channel: PicoChannel,
buffer: Arc<RwLock<Pin<Vec<i16>>>>,
_buffer_len: usize
) -> PicoResult<()>
fn start_streaming(
&self,
handle: i16,
sample_config: &SampleConfig
) -> PicoResult<SampleConfig>
[src]
&self,
handle: i16,
sample_config: &SampleConfig
) -> PicoResult<SampleConfig>
fn get_latest_streaming_values<'a>(
&self,
handle: i16,
callback: Box<dyn FnMut(usize, usize) + 'a>
) -> PicoResult<()>
[src]
&self,
handle: i16,
callback: Box<dyn FnMut(usize, usize) + 'a>
) -> PicoResult<()>
fn stop_streaming(&self, handle: i16) -> PicoResult<()>
[src]
fn check_version(&self) -> Result<(), DriverLoadError>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for DriverPS2000
impl Send for DriverPS2000
impl Sync for DriverPS2000
impl Unpin for DriverPS2000
impl !UnwindSafe for DriverPS2000
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,