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

Called by *CLS

Called by *RST

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).

Called by STATus:PRESet Preset any device-specific status.

Return true if a message is available in output queue

Implementors