[−][src]Enum pico_sdk::common::Driver
Supported Pico drivers
Variants
Only used to get the full dependency name on each platform
Only used to get the full dependency name on each platform
Implementations
impl 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]
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]
Gets the required driver dependencies for this platform
pub fn get_symbol_name(self, sym: &[u8]) -> Vec<u8>[src]
Gets the symbol name for this driver
use pico_common::Driver; let driver = Driver::PS5000A; let sym_name = driver.get_symbol_name(b"OpenUnit"); assert_eq!(sym_name, b"ps5000aOpenUnit"); let driver = Driver::PS2000; let sym_name = driver.get_symbol_name(b"_open_unit"); assert_eq!(sym_name, b"ps2000_open_unit");
Trait Implementations
impl Clone for Driver[src]
impl Copy for Driver[src]
impl Debug for Driver[src]
impl Display for Driver[src]
impl Eq for Driver[src]
impl FromStr for Driver[src]
type Err = ParseError
The associated error which can be returned from parsing.
pub fn from_str(input: &str) -> Result<Driver, <Driver as FromStr>::Err>[src]
impl Hash for Driver[src]
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher, [src]
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl IntoEnumIterator for Driver[src]
type Iterator = DriverEnumIterator
Type of the iterator over the variants.
pub const VARIANT_COUNT: usize[src]
pub fn into_enum_iter() -> <Driver as IntoEnumIterator>::Iterator[src]
impl LoadDriverExt for Driver[src]
pub fn try_load(
&self
) -> Result<Arc<Box<dyn PicoDriver + 'static, Global>>, DriverLoadError>[src]
&self
) -> Result<Arc<Box<dyn PicoDriver + 'static, Global>>, DriverLoadError>
pub fn try_load_with_resolution(
&self,
resolution: &Resolution
) -> Result<Arc<Box<dyn PicoDriver + 'static, Global>>, DriverLoadError>[src]
&self,
resolution: &Resolution
) -> Result<Arc<Box<dyn PicoDriver + 'static, Global>>, DriverLoadError>
impl Ord for Driver[src]
pub fn cmp(&self, other: &Driver) -> Ordering[src]
#[must_use]fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self[src]
impl PartialEq<Driver> for Driver[src]
impl PartialOrd<Driver> for Driver[src]
pub fn partial_cmp(&self, other: &Driver) -> Option<Ordering>[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool1.0.0[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> 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> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
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>,