2 stable releases

1.0.1 May 15, 2024
1.0.0 Mar 14, 2023

#1656 in Embedded development

Download history 94/week @ 2024-11-14 229/week @ 2024-11-21 117/week @ 2024-11-28 124/week @ 2024-12-05 175/week @ 2024-12-12 42/week @ 2024-12-19 1/week @ 2024-12-26 61/week @ 2025-01-02 69/week @ 2025-01-09 116/week @ 2025-01-16 77/week @ 2025-01-23 27/week @ 2025-01-30 22/week @ 2025-02-06 51/week @ 2025-02-13 20/week @ 2025-02-20 30/week @ 2025-02-27

127 downloads per month
Used in mso50xx

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
~77K SLoC