Library to connect to CAN buses. Currently supports:
SocketCAN
on linux-onlyPCAN
devices from Peak SystemsUSR-CANET200
TCP protocol from USR IOTThis library has been tested on Linux and Windows. Additionally this library supports enumerating CAN devices connected to a host.
This library is far from feature-complete. The following provides a list of features that are implemented / on the roadmap (roughly in the order of priority):
netlink
socketsPRs are very much welcome for all those features or anything else related.
Support for CAN devices / driver can be switched on and off:
SocketCAN
, use features = ["socket_can"]
PCAN
, use features = ["pcan"]
USR-CANET200
, use features = ["usr_canet"]
By default, the features are set to default = ["pcan", "socket_can", "usr_canet"]
.
If you want to be able to serialize some of the types in this crate, you can enable the optional serde
feature:
async-can = {version = "*", features = ["serde"]}
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.