1 unstable release

0.0.0 May 24, 2024

#78 in #analyzer

Download history 103/week @ 2024-05-22 5/week @ 2024-05-29 4/week @ 2024-06-05

112 downloads per month
Used in moondancer

BSD-3-Clause

5KB
51 lines

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, || {
        ...
    });

No runtime deps

Features