pub struct PicoStreamingDevice {
pub new_data: StreamingEvents,
/* private fields */
}
Expand description
Encapsulates a PicoDevice
and adds streaming functionality
Automatically reconfigures and restarts streaming if the device connection is lost.
Fields§
§new_data: StreamingEvents
Implementations§
Source§impl PicoStreamingDevice
impl PicoStreamingDevice
pub fn get_serial(&self) -> String
pub fn get_variant(&self) -> String
pub fn enable_channel( &self, channel: PicoChannel, range: PicoRange, coupling: PicoCoupling, )
pub fn disable_channel(&self, channel: PicoChannel)
pub fn get_channels(&self) -> Vec<PicoChannel>
pub fn get_valid_ranges(&self, channel: PicoChannel) -> Option<Vec<PicoRange>>
pub fn get_channel_config(&self, channel: PicoChannel) -> Option<ChannelConfig>
Sourcepub fn start(&self, requested_sample_rate: u32) -> PicoResult<u32>
pub fn start(&self, requested_sample_rate: u32) -> PicoResult<u32>
Start streaming
Trait Implementations§
Source§impl Clone for PicoStreamingDevice
impl Clone for PicoStreamingDevice
Source§fn clone(&self) -> PicoStreamingDevice
fn clone(&self) -> PicoStreamingDevice
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PicoStreamingDevice
impl Debug for PicoStreamingDevice
Source§impl From<PicoDevice> for PicoStreamingDevice
impl From<PicoDevice> for PicoStreamingDevice
Source§fn from(d: PicoDevice) -> Self
fn from(d: PicoDevice) -> Self
Converts to this type from the input type.
Source§impl Hash for PicoStreamingDevice
impl Hash for PicoStreamingDevice
Source§impl PartialEq for PicoStreamingDevice
impl PartialEq for PicoStreamingDevice
impl Eq for PicoStreamingDevice
Auto Trait Implementations§
impl Freeze for PicoStreamingDevice
impl !RefUnwindSafe for PicoStreamingDevice
impl Send for PicoStreamingDevice
impl Sync for PicoStreamingDevice
impl Unpin for PicoStreamingDevice
impl !UnwindSafe for PicoStreamingDevice
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