ladybug 0.1.6

A small library for triggering a logic analyzer from program events
Documentation
  • Coverage
  • 18.75%
    3 out of 16 items documented0 out of 7 items with examples
  • Size
  • Source code size: 4.7 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 847.92 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • greatscottgadgets/cynthion
    164 36 31
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • miek antoinevg

ladybug

A small library for triggering a logic analyzer from program events.

Define a LogicAnalyzer implementation:

use ladybug::{Channel, LogicAnalyzer};

pub struct LadybugImpl {
    ...
}

impl LogicAnalyzer for LadybugImpl {
    fn high(&self, channel: Channel, bit_number: u8) {
       ...
    }

    fn low(&self, channel: Channel, bit_number: u8) {
       ...
    }
}

Log events with ladybug::trace():


    static LA: LadybugImpl = LadybugImpl::new(...);
    ladybug::set_analyzer(&la);

    ladybug::trace(Channel::B, 0, || {
        ...
    });