#logic #api #re #reverse #client-connection

saleae

a rust library for interacting with saleae devices

2 unstable releases

0.1.0 Aug 17, 2020
0.0.1 Jan 18, 2020

#6 in #re

MIT license

24KB
348 lines

Saleae

Latest Version Rust Documentation Build Status Coverage Status

This library provides a Rust API for the Saleae devices when running the Logic program.

The API is based on the documentation provided here: SaleaeSocketAPI

Note

This library isn't complete, as there are more functions that need implementations.

Changelog

See CHANGELOG.md


lib.rs:

Saleae client for Rust

This crate provides a Rust API for Saleae. The API is based on the documentation provided here: SaleaeSocketAPI

The main entry point for this API is the 'Client' struct.

Usage

[dependencies]
saleae = "*"

Example with no error handling

extern crate saleae;

use saleae::{Client, Connection};
use std::net::TcpStream;

let mut conn = Client::new(Connection::new("127.0.0.1:10429")).unwrap();
let response0 = conn.get_performance();
println!("get_performance: {}", response0.unwrap());

let response1 = conn.get_connected_devices();
println!("get_command_devices: {:?}", response1.unwrap());

Dependencies

~2MB
~46K SLoC