Enum pico_common::Driver [−][src]
pub enum Driver { PS2000, PS2000A, PS3000A, PS4000, PS4000A, PS5000A, PS6000, PS6000A, PicoIPP, IOMP5, }
Expand description
Supported Pico drivers
Variants
Expand description
Only used to get the full dependency name on each platform
Expand description
Only used to get the full dependency name on each platform
Implementations
impl Driver
[src]
impl Driver
[src]pub fn from_pid(pid: u16) -> Option<Driver>
[src]
pub fn from_pid(pid: u16) -> Option<Driver>
[src]Returns the relevant Driver
for the supplied USB PID
pub fn get_binary_name(self) -> String
[src]
pub fn get_binary_name(self) -> String
[src]Returns the platform dependent name of the driver binary with file extension
let driver = pico_common::Driver::PS2000A; let binary_name = driver.get_binary_name(); if cfg!(target_os = "windows") { assert_eq!(binary_name, "ps2000a.dll"); } else if cfg!(target_os = "macos") { assert_eq!(binary_name, "libps2000a.dylib"); } else { assert_eq!(binary_name, "libps2000a.so"); }
pub fn get_dependencies_for_platform() -> Vec<Driver>
[src]
pub fn get_dependencies_for_platform() -> Vec<Driver>
[src]Gets the required driver dependencies for this platform
Trait Implementations
impl IntoEnumIterator for Driver
[src]
impl IntoEnumIterator for Driver
[src]type Iterator = DriverEnumIterator
type Iterator = DriverEnumIterator
Type of the iterator over the variants.
const VARIANT_COUNT: usize
[src]
const VARIANT_COUNT: usize
[src]Number of variants.
fn into_enum_iter() -> Self::Iterator
[src]
fn into_enum_iter() -> Self::Iterator
[src]Returns an iterator over the variants. Read more
impl Ord for Driver
[src]
impl Ord for Driver
[src]impl PartialOrd<Driver> for Driver
[src]
impl PartialOrd<Driver> for Driver
[src]fn partial_cmp(&self, other: &Driver) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Driver) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for Driver
[src]
impl Eq for Driver
[src]
impl StructuralEq for Driver
[src]
impl StructuralPartialEq for Driver
[src]
Auto Trait Implementations
impl RefUnwindSafe for Driver
impl Send for Driver
impl Sync for Driver
impl Unpin for Driver
impl UnwindSafe for Driver
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]impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more