pub trait Device {
fn cls(&mut self) -> Result<()>;
fn rst(&mut self) -> Result<()>;
fn tst(&mut self) -> Result<()> { ... }
fn preset(&mut self) -> Result<()> { ... }
fn mav(&self) -> bool { ... }
}
Expand description
A SCPI device
Use this trait and provided mandatory commands to implement the mandatory parts of SCPI for your device.
Required Methods
Provided Methods
Called by *TST? Return Ok(()) if self-test is successful or a positive user-error code or a standard negative error code (as a Error enum variant).