2 unstable releases

0.2.0 Mar 25, 2024
0.1.0 Mar 19, 2024

#335 in Hardware support

Download history 107/week @ 2024-03-13 180/week @ 2024-03-20 34/week @ 2024-03-27 31/week @ 2024-04-03

352 downloads per month

Apache-2.0

18KB
354 lines

fdcanusb-rs

For interfacing with the fdcanusb from MJBots

This crate is a work in progress but most features are implemented.
I am eager to receive feedback! This is the first crate I have published.

Features

  • default = ["serial2"]
  • serial2
    Enables re-exporting of the serial2 crate and the FdCanUsb::open fn.

TODO:

  • Implement basic functionality
  • Restructure internals to use less allocations
  • Implement support for the filter_id flag
  • Move serial2 re-export to a feature
  • Move log to a feature
  • Add support for classic_id and extended_id. Currently arbitration_id's are u16s
  • Add more documentation

lib.rs:

FdCanUSB

An implementation of the FdCanUSB (by MJBots) protocol.

This initial release is open for feedback and may change implementation details.

Example

use fdcanusb::{FdCanUSB, serial2};
let transport = serial2::SerialPort::open("/dev/fdcanusb", serial2::KeepSettings)?;
let mut fdcanusb = FdCanUSB::new(transport);

Features

Dependencies

~165–420KB