pub struct PS6000Driver { /* private fields */ }
Implementations§
Source§impl PS6000Driver
impl PS6000Driver
Trait Implementations§
Source§impl Debug for PS6000Driver
impl Debug for PS6000Driver
Source§impl PicoDriver for PS6000Driver
impl PicoDriver for PS6000Driver
Source§fn get_driver(&self) -> Driver
fn get_driver(&self) -> Driver
Gets the underlying driver type
Source§fn enumerate_units(&self) -> Result<Vec<EnumerationResult>, PicoError>
fn enumerate_units(&self) -> Result<Vec<EnumerationResult>, PicoError>
Returns a list of discovered serial numbers
Source§fn open_unit(&self, serial: Option<&str>) -> Result<i16, PicoError>
fn open_unit(&self, serial: Option<&str>) -> Result<i16, PicoError>
Opens a device, optionally with a specific serial number
Source§fn ping_unit(&self, handle: i16) -> Result<(), PicoError>
fn ping_unit(&self, handle: i16) -> Result<(), PicoError>
Ping a unit to see if it’s still connected
Source§fn maximum_value(&self, handle: i16) -> Result<i16, PicoError>
fn maximum_value(&self, handle: i16) -> Result<i16, PicoError>
Get the maximum expected ADC value. This is required to scale to volts
Source§fn get_unit_info(
&self,
handle: i16,
info_type: PicoInfo,
) -> Result<String, PicoError>
fn get_unit_info( &self, handle: i16, info_type: PicoInfo, ) -> Result<String, PicoError>
Get one of the unit info strings
Source§fn get_channel_ranges(
&self,
handle: i16,
channel: PicoChannel,
) -> Result<Vec<PicoRange>, PicoError>
fn get_channel_ranges( &self, handle: i16, channel: PicoChannel, ) -> Result<Vec<PicoRange>, PicoError>
Get valid ranges for the specified channel
Source§fn enable_channel(
&self,
handle: i16,
channel: PicoChannel,
config: &ChannelConfig,
) -> Result<(), PicoError>
fn enable_channel( &self, handle: i16, channel: PicoChannel, config: &ChannelConfig, ) -> Result<(), PicoError>
Set up a channel with the supplied config
Source§fn disable_channel(
&self,
handle: i16,
channel: PicoChannel,
) -> Result<(), PicoError>
fn disable_channel( &self, handle: i16, channel: PicoChannel, ) -> Result<(), PicoError>
Disable a channel
Source§fn set_data_buffer(
&self,
handle: i16,
channel: PicoChannel,
buffer: Arc<RwLock<RawRwLock, Pin<Vec<i16>>>>,
buffer_len: usize,
) -> Result<(), PicoError>
fn set_data_buffer( &self, handle: i16, channel: PicoChannel, buffer: Arc<RwLock<RawRwLock, Pin<Vec<i16>>>>, buffer_len: usize, ) -> Result<(), PicoError>
Give the driver a buffer to write data into
Source§fn start_streaming(
&self,
handle: i16,
sample_config: &SampleConfig,
) -> Result<SampleConfig, PicoError>
fn start_streaming( &self, handle: i16, sample_config: &SampleConfig, ) -> Result<SampleConfig, PicoError>
Starts the device streaming
Source§fn get_latest_streaming_values<'a>(
&self,
handle: i16,
_channels: &[PicoChannel],
callback: Box<dyn FnMut(usize, usize) + 'a>,
) -> Result<(), PicoError>
fn get_latest_streaming_values<'a>( &self, handle: i16, _channels: &[PicoChannel], callback: Box<dyn FnMut(usize, usize) + 'a>, ) -> Result<(), PicoError>
Gets the latest streaming values
Source§fn check_version(&self) -> Result<(), DriverLoadError>
fn check_version(&self) -> Result<(), DriverLoadError>
Check that the driver meets the minimum version tested with these wrappers
Auto Trait Implementations§
impl Freeze for PS6000Driver
impl !RefUnwindSafe for PS6000Driver
impl Send for PS6000Driver
impl Sync for PS6000Driver
impl Unpin for PS6000Driver
impl !UnwindSafe for PS6000Driver
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more