Struct pico_sdk::driver::ps6000::PS6000Driver [−][src]
pub struct PS6000Driver { /* fields omitted */ }
Implementations
impl PS6000Driver
[src]
impl PS6000Driver
[src]Trait Implementations
impl Debug for PS6000Driver
[src]
impl Debug for PS6000Driver
[src]impl PicoDriver for PS6000Driver
[src]
impl PicoDriver for PS6000Driver
[src]pub fn get_driver(&self) -> Driver
[src]
pub fn get_driver(&self) -> Driver
[src]Gets the underlying driver type
pub fn get_version(&self) -> Result<String, PicoError>
[src]
pub fn get_version(&self) -> Result<String, PicoError>
[src]Gets the driver version string
pub fn enumerate_units(
&self
) -> Result<Vec<EnumerationResult, Global>, PicoError>
[src]
pub fn enumerate_units(
&self
) -> Result<Vec<EnumerationResult, Global>, PicoError>
[src]Returns a list of discovered serial numbers
pub fn open_unit(&self, serial: Option<&str>) -> Result<i16, PicoError>
[src]
pub fn open_unit(&self, serial: Option<&str>) -> Result<i16, PicoError>
[src]Opens a device, optionally with a specific serial number
pub fn ping_unit(&self, handle: i16) -> Result<(), PicoError>
[src]
pub fn ping_unit(&self, handle: i16) -> Result<(), PicoError>
[src]Ping a unit to see if it’s still connected
pub fn maximum_value(&self, handle: i16) -> Result<i16, PicoError>
[src]
pub fn maximum_value(&self, handle: i16) -> Result<i16, PicoError>
[src]Get the maximum expected ADC value. This is required to scale to volts
pub fn get_unit_info(
&self,
handle: i16,
info_type: PicoInfo
) -> Result<String, PicoError>
[src]
pub fn get_unit_info(
&self,
handle: i16,
info_type: PicoInfo
) -> Result<String, PicoError>
[src]Get one of the unit info strings
pub fn get_channel_ranges(
&self,
handle: i16,
channel: PicoChannel
) -> Result<Vec<PicoRange, Global>, PicoError>
[src]
pub fn get_channel_ranges(
&self,
handle: i16,
channel: PicoChannel
) -> Result<Vec<PicoRange, Global>, PicoError>
[src]Get valid ranges for the specified channel
pub fn enable_channel(
&self,
handle: i16,
channel: PicoChannel,
config: &ChannelConfig
) -> Result<(), PicoError>
[src]
pub fn enable_channel(
&self,
handle: i16,
channel: PicoChannel,
config: &ChannelConfig
) -> Result<(), PicoError>
[src]Set up a channel with the supplied config
pub fn disable_channel(
&self,
handle: i16,
channel: PicoChannel
) -> Result<(), PicoError>
[src]
pub fn disable_channel(
&self,
handle: i16,
channel: PicoChannel
) -> Result<(), PicoError>
[src]Disable a channel
pub fn set_data_buffer(
&self,
handle: i16,
channel: PicoChannel,
buffer: Arc<RwLock<RawRwLock, Pin<Vec<i16, Global>>>>,
buffer_len: usize
) -> Result<(), PicoError>
[src]
pub fn set_data_buffer(
&self,
handle: i16,
channel: PicoChannel,
buffer: Arc<RwLock<RawRwLock, Pin<Vec<i16, Global>>>>,
buffer_len: usize
) -> Result<(), PicoError>
[src]Give the driver a buffer to write data into
pub fn start_streaming(
&self,
handle: i16,
sample_config: &SampleConfig
) -> Result<SampleConfig, PicoError>
[src]
pub fn start_streaming(
&self,
handle: i16,
sample_config: &SampleConfig
) -> Result<SampleConfig, PicoError>
[src]Starts the device streaming
pub fn get_latest_streaming_values(
&self,
handle: i16,
_channels: &[PicoChannel],
callback: Box<dyn FnMut(usize, usize) + 'a, Global>
) -> Result<(), PicoError>
[src]
pub fn get_latest_streaming_values(
&self,
handle: i16,
_channels: &[PicoChannel],
callback: Box<dyn FnMut(usize, usize) + 'a, Global>
) -> Result<(), PicoError>
[src]Gets the latest streaming values
fn check_version(&self) -> Result<(), DriverLoadError>
[src]
fn check_version(&self) -> Result<(), DriverLoadError>
[src]Check that the driver meets the minimum version tested with these wrappers
Auto Trait Implementations
impl !RefUnwindSafe for PS6000Driver
impl Send for PS6000Driver
impl Sync for PS6000Driver
impl Unpin for PS6000Driver
impl !UnwindSafe for PS6000Driver
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> Pointable for T
impl<T> Pointable for T