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
Modules§
- Contains IEEE 488.2 parser and mandatory commands
- Contains SCPI modules and mandatory commands
Macros§
- Create a command node for
*CLS
. See ClsCommand - Create a command node for
*ESE
. See EseCommand - Create a command node for
*ESR
. See EsrCommand - Create a command node for
*IDN?
. See IdnCommand - Create a command node for
*OPC
. See OpcCommand - Create a command node for
*RST
. See RstCommand - Create a command node for
*SRE
. See SreCommand - Create a command node for
*STB?
. See StbCommand - Create a command node for
*TRG
. See TrgCommand - Create a command node for
*TST?
. See TstCommand - Create a command node for
*WAI
. See WaiCommand - Create command nodes for a SCPI registers like
OPERation
,QUEStionable
, or custom event registers. - Create a
STATus:
tree branch with mandatory commands. - Create a
SYSTem:
tree branch with mandatory commands.