Crate scpi_contrib

Source
Expand description

This crate aims to implement higher level abstraction for the SCPI protocol. See scpi crate for the basic command parser.

It does not require the std library (i.e. it’s no_std compatible) or a system allocator (useful for embedded).

§Using this crate

Add scpi and scpi-contrib to your dependencies:

[dependencies]
scpi = "1.0"
scpi-contrib = "1.0"

§Features

  • std — Use std (overrides alloc)
  • alloc — Use alloc (See rustdoc/docs.rs for available features)

§References

  1. IEEE488.2
  2. SCPI-99

Modules§

ieee488
Contains IEEE 488.2 parser and mandatory commands
scpi1999
Contains SCPI modules and mandatory commands

Macros§

ieee488_cls
Create a command node for *CLS. See ClsCommand
ieee488_ese
Create a command node for *ESE. See EseCommand
ieee488_esr
Create a command node for *ESR. See EsrCommand
ieee488_idn
Create a command node for *IDN?. See IdnCommand
ieee488_opc
Create a command node for *OPC. See OpcCommand
ieee488_rst
Create a command node for *RST. See RstCommand
ieee488_sre
Create a command node for *SRE. See SreCommand
ieee488_stb
Create a command node for *STB?. See StbCommand
ieee488_trg
Create a command node for *TRG. See TrgCommand
ieee488_tst
Create a command node for *TST?. See TstCommand
ieee488_wai
Create a command node for *WAI. See WaiCommand
scpi_register
Create command nodes for a SCPI registers like OPERation, QUEStionable, or custom event registers.
scpi_status
Create a STATus: tree branch with mandatory commands.
scpi_system
Create a SYSTem: tree branch with mandatory commands.