2 stable releases

1.0.1 May 15, 2024
1.0.0 Mar 14, 2023

#1067 in Embedded development

Download history 53/week @ 2024-06-19 54/week @ 2024-06-26 25/week @ 2024-07-03 59/week @ 2024-07-10 80/week @ 2024-07-17 66/week @ 2024-07-24 173/week @ 2024-07-31 158/week @ 2024-08-07 142/week @ 2024-08-14 103/week @ 2024-08-21 130/week @ 2024-08-28 35/week @ 2024-09-04 65/week @ 2024-09-11 41/week @ 2024-09-18 110/week @ 2024-09-25 111/week @ 2024-10-02

340 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
~72K SLoC