10 releases (5 breaking)

0.7.1 Jan 27, 2025
0.6.3 Nov 21, 2024
0.3.0 Jun 17, 2024
0.2.0 Mar 25, 2024

#476 in Hardware support

Download history 8/week @ 2024-10-20 21/week @ 2024-10-27 58/week @ 2024-11-03 92/week @ 2024-11-10 453/week @ 2024-11-17 208/week @ 2024-11-24 12/week @ 2024-12-01 49/week @ 2024-12-08 20/week @ 2024-12-15 1/week @ 2024-12-22 117/week @ 2025-01-12 17/week @ 2025-01-19 104/week @ 2025-01-26 22/week @ 2025-02-02

260 downloads per month
Used in moteus

Apache-2.0

23KB
504 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.

Example

use fdcanusb::{FdCanUSB, serial2};
let mut fdcanusb = FdCanUSB::open("/dev/fdcanusb");

Dependencies

~0.5–1.2MB
~24K SLoC