Expand description
§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
default = ["serial2"]
serial2
- Enables re-exporting of the
serial2
crate and theFdCanUSB::open
fn.
- Enables re-exporting of the
Re-exports§
pub use serial2;
Structs§
CanFdFrame
represents a single frame of data on the CAN bus.- FdCanUSB communications struct
- The FdCanUSB communicates over Serial using ascii encoded frames.
FdCanUSBFrame
is a wrapper around the ascii encoded frames.