[−][src]Struct saleae::client::Client
Main interface for communication to Saleae Logic
Implementations
impl Client
[src]
Constructor
pub fn new(connection: Connection) -> Result<Self>
[src]
constructor
impl Client
[src]
Interface for setting and getting Logic information
pub fn set_num_samples(&mut self, num: u32) -> Result<bool>
[src]
Set a trigger of channels TODO create trigger methods/structs/tests
pub fn get_num_samples(&mut self) -> Result<u32>
[src]
pub fn set_capture_seconds(&mut self, seconds: f32) -> Result<bool>
[src]
Set the capture duration to a length of time
pub fn set_sample_rate(&mut self, rate: &SampleRate) -> Result<bool>
[src]
Set sample rate of saleae
Note: Make sure to run get_all_sample_rates
and set it from a available
sample rate
pub fn get_sample_rate(&mut self) -> Result<SampleRate>
[src]
pub fn get_all_sample_rates(&mut self) -> Result<Vec<SampleRate>>
[src]
pub fn get_performance(&mut self) -> Result<u8>
[src]
Return current performance level of Logic
pub fn set_performance(&mut self, perf: PerformanceOption) -> Result<bool>
[src]
Set the performance value, controlling the USB traffic and quality
pub fn get_connected_devices(&mut self) -> Result<Vec<ConnectedDevice>>
[src]
Return current connected devices of Logic
pub fn select_active_device(&mut self, device: ConnectedDevice) -> Result<bool>
[src]
Find index of device from the list of devices connected to Saleae
Get current index of connected devices and find equal device to parameter. Send that device as active device to logic.
Note: Indices start at 1, not 0 TODO: test with multiple saleae
pub fn get_active_device(&mut self) -> Result<ConnectedDevice>
[src]
Return current active device of Logic
pub fn get_active_channels(&mut self) -> Result<Vec<Vec<u8>>>
[src]
Parse the get active channels command into tuples of digital and analog channels that are current
pub fn set_active_channels(
&mut self,
digital_channels: &[u8],
analog_channels: &[u8]
) -> Result<bool>
[src]
&mut self,
digital_channels: &[u8],
analog_channels: &[u8]
) -> Result<bool>
pub fn reset_active_channels(&mut self) -> Result<bool>
[src]
Reset Active Channel
pub fn start_capture(&mut self) -> Result<bool>
[src]
Start Capture, without wating for ack/nack
pub fn start_capture_block_until_finished(&mut self) -> Result<bool>
[src]
Start Capture, then wait until ack
pub fn is_processing_complete(&mut self) -> Result<bool>
[src]
Check if processing is complete
pub fn stop_capture(&mut self) -> Result<bool>
[src]
Stop the saleae capture
pub fn close_all_tabs(&mut self) -> Result<bool>
[src]
Close all tabs
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnwindSafe for Client
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,