9 releases (5 breaking)
new 0.7.0 | Jan 15, 2025 |
---|---|
0.6.3 | Nov 21, 2024 |
0.6.2 | Sep 6, 2024 |
0.3.0 | Jun 17, 2024 |
0.2.0 | Mar 25, 2024 |
#481 in Hardware support
47 downloads per month
Used in moteus
23KB
503 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 theFdCanUsb::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
andextended_id
. Currentlyarbitration_id
's areu16
s - 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.3MB
~25K SLoC