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
serial2crate and theFdCanUSB::openfn.
- Enables re-exporting of the
Re-exports§
pub use serial2;
Structs§
CanFdFramerepresents a single frame of data on the CAN bus.- FdCanUSB communications struct
- The FdCanUSB communicates over Serial using ascii encoded frames.
FdCanUSBFrameis a wrapper around the ascii encoded frames.