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