Struct nscope::AnalogOutput
source · pub struct AnalogOutput {
pub channel: usize,
/* private fields */
}
Expand description
Interface to an analog output channel
Fields§
§channel: usize
Implementations§
source§impl AnalogOutput
impl AnalogOutput
pub fn is_on(&self) -> bool
pub fn frequency(&self) -> f64
pub fn amplitude(&self) -> f64
pub fn wave_type(&self) -> AnalogWaveType
pub fn polarity(&self) -> AnalogSignalPolarity
pub fn turn_on(&self)
pub fn turn_off(&self)
pub fn set_frequency(&self, desired_hz: f64)
pub fn set_amplitude(&self, desired_volts: f64)
pub fn set_wave_type(&self, wave_type: AnalogWaveType)
pub fn set_polarity(&self, polarity: AnalogSignalPolarity)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for AnalogOutput
impl Send for AnalogOutput
impl Sync for AnalogOutput
impl Unpin for AnalogOutput
impl UnwindSafe for AnalogOutput
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