| Crates.io | pico-device |
| lib.rs | pico-device |
| version | 0.3.1 |
| created_at | 2020-11-12 13:11:59.912847+00 |
| updated_at | 2021-05-12 11:05:28.594898+00 |
| description | Unofficial Rust bindings and wrappers for Pico Technology oscilloscope drivers |
| homepage | |
| repository | https://github.com/meatysolutions/pico-sdk |
| max_upload_size | |
| id | 311551 |
| size | 7,504 |
PicoDevice implementation for Pico Technology oscilloscope drivers.
This is a sub crate that you probably don't want to use directly. Try the top level
pico-sdk crate which exposes everything from here.
When a PicoDevice is created, it is opened, its channels and capabilities are
automatically detected and then it is closed.
use pico_common::Driver;
use pico_driver::LoadDriverExt;
use pico_device::PicoDevice;
// Load the required driver
let driver = Driver::PS2000.try_load()?;
// Try and open the first available ps2000 device
let device1 = PicoDevice::try_open(&driver, None)?;
// Try and open devices by serial
let device2 = PicoDevice::try_open(&driver, Some("ABC/123"))?;
let device3 = PicoDevice::try_open(&driver, Some("ABC/987"))?;
License: MIT