moteus 0.4.1

Rust library for interfacing with Moteus controllers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! A trait for writing and reading CAN FD frames over an interface.

#[cfg(feature = "fdcanusb")]
mod fdcanusb;

pub trait Transport {
    type Error;

    type Frame;

    fn transmit(&mut self, frame: Self::Frame) -> Result<(), crate::Error<Self::Error>>;

    fn receive(&mut self) -> Result<Self::Frame, crate::Error<Self::Error>>;
}