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

#3 in #j1939

33 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–8.5MB
~71K SLoC