8 releases (4 breaking)

new 0.6.3 Nov 21, 2024
0.6.2 Sep 6, 2024
0.6.1 Aug 21, 2024
0.5.0 Aug 9, 2024
0.1.0 Mar 19, 2024

#558 in Hardware support

Download history 182/week @ 2024-08-07 122/week @ 2024-08-14 192/week @ 2024-08-21 10/week @ 2024-08-28 172/week @ 2024-09-04 39/week @ 2024-09-11 30/week @ 2024-09-18 43/week @ 2024-09-25 55/week @ 2024-10-02 39/week @ 2024-10-09 16/week @ 2024-10-16 12/week @ 2024-10-23 27/week @ 2024-10-30 48/week @ 2024-11-06 206/week @ 2024-11-13

294 downloads per month
Used in moteus

Apache-2.0

24KB
508 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

~0.4–1.2MB
~23K SLoC