1.0.8 Aug 23, 2024
1.0.6 Aug 12, 2024
1.0.2 Jul 8, 2024
0.2.0 Jul 6, 2024
0.1.0 Jul 6, 2024

#5 in #j1939

Download history 307/week @ 2024-07-04 30/week @ 2024-07-11 225/week @ 2024-08-01 287/week @ 2024-08-08 32/week @ 2024-08-15 123/week @ 2024-08-22

667 downloads per month
Used in 2 crates

GPL-3.0 license

81KB
2K SLoC

CAN type define that based from can-types crate

This crate is deprecated. All code is move to isopt-rs

  • CanMessage example
use std::fmt::Display;

pub struct CanMessage {
  // fields of message declare
}

impl Frame for CanMessage {
  type Channel = u8;
  // impl methods that defined in `Frame` trait
}

impl Display for CanMessage {
  fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
      <dyn Frame<Channel=u8> as Display>::fmt(self, f)
  }
}
  • AsyncCanDevice and SyncCanDevice example

Dependencies

~2.5–4MB
~71K SLoC