1 stable release

1.0.0 Mar 14, 2023

#939 in Embedded development

Download history 195/week @ 2023-12-17 38/week @ 2023-12-31 14/week @ 2024-01-07 21/week @ 2024-01-14 76/week @ 2024-01-21 24/week @ 2024-01-28 45/week @ 2024-02-04 50/week @ 2024-02-11 82/week @ 2024-02-18 138/week @ 2024-02-25 48/week @ 2024-03-03 106/week @ 2024-03-10 76/week @ 2024-03-17 38/week @ 2024-03-24 98/week @ 2024-03-31

322 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

~4.5MB
~87K SLoC