2 stable releases

1.0.1 May 15, 2024
1.0.0 Mar 14, 2023

#1349 in Embedded development

Download history 112/week @ 2024-07-27 202/week @ 2024-08-03 153/week @ 2024-08-10 112/week @ 2024-08-17 157/week @ 2024-08-24 18/week @ 2024-08-31 71/week @ 2024-09-07 46/week @ 2024-09-14 46/week @ 2024-09-21 161/week @ 2024-09-28 75/week @ 2024-10-05 184/week @ 2024-10-12 245/week @ 2024-10-19 54/week @ 2024-10-26 138/week @ 2024-11-02 72/week @ 2024-11-09

564 downloads per month

MIT/Apache

255KB
4.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

~4MB
~70K SLoC