16 releases (1 stable)

1.0.0 Mar 14, 2023
0.4.4 Jul 30, 2022
0.4.3 May 19, 2022
0.4.2 Feb 17, 2022
0.2.5 Dec 20, 2019

#259 in Embedded development

Download history 102/week @ 2023-12-13 148/week @ 2023-12-20 12/week @ 2023-12-27 35/week @ 2024-01-03 17/week @ 2024-01-10 83/week @ 2024-01-17 32/week @ 2024-01-24 41/week @ 2024-01-31 61/week @ 2024-02-07 39/week @ 2024-02-14 104/week @ 2024-02-21 129/week @ 2024-02-28 91/week @ 2024-03-06 113/week @ 2024-03-13 54/week @ 2024-03-20 44/week @ 2024-03-27

311 downloads per month
Used in scpi-contrib

MIT/Apache

185KB
3.5K SLoC

scpi-rs

Quickstart Fuzzing codecov

These crates attempts to implement the IEE488.2 / SCPI protocol commonly used by measurement instruments and tools.

Scope

The crate does not support any transport layer, it only reads ascii-strings ([u8]) and writes ascii responses.

It does not implement any higher level functions/error handling other than SCPI parsing and mandated registers/commands(optional).

Project organisation:

  • scpi - SCPI/488.2 parser and command tree library.
  • scpi-contrib - Contribution library, provides default implementations for mandatory commands and abstractions for SCPI subsystems.
  • scpi-derive - Procedural macro support library, creates enums understood by Scpi (See ScpiEnum) and some internal library stuff.

Getting started

Look at the examples in scpi or scpi-contrib.

Contribution

Contributions are welcome in the form of pull request, issues or examples are welcome.

License

This project is licensed under the following licenses:

Dependencies

~3.5MB
~69K SLoC