[−][src]Struct pico_sdk::driver::DriverPS2000
Wraps the ps2000 driver so that it implements the PicoDriver trait
Fields
driver: DriverImplementations
impl DriverPS2000[src]
pub fn new(resolution: &Resolution) -> Result<DriverPS2000, DriverLoadError>[src]
Constructs a driver wrapper with the specified Resolution
pub fn with_loader(loader: LoaderPS2000) -> DriverPS2000[src]
Constructs a driver wrapper with the specified loader
Trait Implementations
impl Clone for DriverPS2000[src]
pub 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]
pub fn get_driver(&self) -> Driver[src]
pub fn get_version(&self) -> Result<String, PicoError>[src]
pub fn get_path(&self) -> Result<Option<String>, PicoError>[src]
pub fn enumerate_units(&self) -> Result<Vec<String>, PicoError>[src]
pub fn open_unit(&self, serial: Option<&str>) -> Result<i16, PicoError>[src]
pub fn ping_unit(&self, handle: i16) -> Result<(), PicoError>[src]
pub fn maximum_value(&self, i16) -> Result<i16, PicoError>[src]
pub fn close_unit(&self, handle: i16) -> Result<(), PicoError>[src]
pub fn get_unit_info(
&self,
handle: i16,
info_type: PicoInfo
) -> Result<String, PicoError>[src]
&self,
handle: i16,
info_type: PicoInfo
) -> Result<String, PicoError>
pub fn get_channel_ranges(
&self,
handle: i16,
channel: PicoChannel
) -> Result<Vec<PicoRange>, PicoError>[src]
&self,
handle: i16,
channel: PicoChannel
) -> Result<Vec<PicoRange>, PicoError>
pub fn set_channel(
&self,
handle: i16,
channel: PicoChannel,
config: &ChannelConfig
) -> Result<(), PicoError>[src]
&self,
handle: i16,
channel: PicoChannel,
config: &ChannelConfig
) -> Result<(), PicoError>
pub fn set_data_buffer(
&self,
handle: i16,
channel: PicoChannel,
buffer: Arc<RwLock<RawRwLock, Pin<Vec<i16>>>>,
_buffer_len: usize
) -> Result<(), PicoError>[src]
&self,
handle: i16,
channel: PicoChannel,
buffer: Arc<RwLock<RawRwLock, Pin<Vec<i16>>>>,
_buffer_len: usize
) -> Result<(), PicoError>
pub fn start_streaming(
&self,
handle: i16,
sample_config: &SampleConfig
) -> Result<SampleConfig, PicoError>[src]
&self,
handle: i16,
sample_config: &SampleConfig
) -> Result<SampleConfig, PicoError>
pub fn get_latest_streaming_values(
&self,
handle: i16,
callback: Box<dyn FnMut(usize, usize) + 'a, Global>
) -> Result<(), PicoError>[src]
&self,
handle: i16,
callback: Box<dyn FnMut(usize, usize) + 'a, Global>
) -> Result<(), PicoError>
pub fn stop_streaming(&self, handle: i16) -> Result<(), PicoError>[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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
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>,