pub struct Nscope {
pub a1: AnalogOutput,
pub a2: AnalogOutput,
pub p1: PulseOutput,
pub p2: PulseOutput,
pub ch1: AnalogInput,
pub ch2: AnalogInput,
pub ch3: AnalogInput,
pub ch4: AnalogInput,
/* private fields */
}
Expand description
Primary interface to the nScope, used to set outputs, trigger sweeps of input data on scope channels, and monitor power state
Fields§
§a1: AnalogOutput
§a2: AnalogOutput
§p1: PulseOutput
§p2: PulseOutput
§ch1: AnalogInput
§ch2: AnalogInput
§ch3: AnalogInput
§ch4: AnalogInput
Implementations§
source§impl Nscope
impl Nscope
pub fn power_status(&self) -> Result<PowerStatus, Error>
source§impl Nscope
impl Nscope
pub fn is_connected(&self) -> bool
pub fn close(&mut self)
pub fn fw_version(&self) -> Result<u8, Box<dyn Error>>
pub fn analog_output(&self, channel: usize) -> Option<&AnalogOutput>
pub fn pulse_output(&self, channel: usize) -> Option<&PulseOutput>
pub fn channel(&self, channel: usize) -> Option<&AnalogInput>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Nscope
impl Send for Nscope
impl Sync for Nscope
impl Unpin for Nscope
impl !UnwindSafe for Nscope
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