Struct pico_sdk::driver::ps2000a::PS2000ADriver[][src]

pub struct PS2000ADriver { /* fields omitted */ }

Implementations

impl PS2000ADriver[src]

pub fn new<P>(path: P) -> Result<PS2000ADriver, Error> where
    P: AsRef<OsStr>, 
[src]

pub fn get_latest_streaming_values_wrap<F>(
    &self,
    handle: i16,
    callback: F
) -> u32 where
    F: FnMut(i16, i32, u32, i16, u32, i16, i16, *mut c_void), 
[src]

Wraps the c callback with libffi so we can use closures

libffi isn’t the only way to do this because we have c_void context. However, we already need libffi for the ps2000 driver and this is easy.

Trait Implementations

impl Debug for PS2000ADriver[src]

impl PicoDriver for PS2000ADriver[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.