3 unstable releases

0.1.6 Sep 19, 2024
0.1.1 Jul 8, 2024
0.0.0 May 24, 2024

#314 in Debugging

Download history 14/week @ 2024-09-29 4/week @ 2024-10-06 6/week @ 2024-10-13 1/week @ 2024-10-20 1/week @ 2024-11-03 22/week @ 2024-12-08

185 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