autd3-cpu-wire 0.9.0

Shared wire-protocol contract (command opcodes, error codes, frame layout) for the AUTD3 CPU firmware and its clients.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
crate::wire_enum! {
    pub enum Telemetry {
        FifoDrop = 0x00,
        Dedup = 0x01,
        SeqMismatch = 0x02,
        DispatchError = 0x03,
        Processed = 0x04,
        Failsafe = 0x05,
        SyncResync = 0x06,
    }
}

impl Telemetry {
    pub const CPU_COUNTER_COUNT: usize = Self::SyncResync as usize;
}

const _: () = assert!(Telemetry::ALL.len() == Telemetry::CPU_COUNTER_COUNT + 1);