Crate saleae_importer

Source
Expand description

A library for reading and writing Saleae Logic 2 binary capture data

§Example

use saleae_importer::SaleaeExport;

let data = SaleaeExport::open("digital_0.bin").unwrap();

for (is_high, time_len) in data.assume_digital().iter_samples() {
    println!("bit state: {is_high} | time: {time_len}");
}

Structs§

AnalogData
The data for analog capture exports
DigitalData
The data for digital captures exported by saleae logic 2
SaleaeExport
A binary representing data parsed from a Saleae Logic 2 digital.bin export file
SampleIter
An iterator over the sample data returning pairs of (bool, f64) representing whether the sample is high (true) or low (false) as well as the length of the sample

Enums§

Data
The underlying data of the file, either digital or analog
State
The state of whether a sample is high or low