[][src]Trait scpi::Device

pub trait Device {
    fn cls(&mut self) -> Result<(), Error>;
fn rst(&mut self) -> Result<(), Error>; fn tst(&mut self) -> Result<i16, Error> { ... } }

A SCPI device

Use this trait and provided mandatory commands to implement the mandatory parts of SCPI for your device.

Required methods

fn cls(&mut self) -> Result<(), Error>

Called by *CLS

fn rst(&mut self) -> Result<(), Error>

Called by *RST

Loading content...

Provided methods

fn tst(&mut self) -> Result<i16, Error>

Called by *TST? Return zero if self-test is successful or a positive user-error code or a standard negative error code (as a Error enum variant).

Loading content...

Implementors

Loading content...