#api #peak #pcan #can #bacis

pcan-basic

Rust wrapper around the PCAN-basic API by PEAK

4 releases (stable)

1.0.2 Aug 25, 2022
1.0.1 May 28, 2022
0.1.0 Apr 23, 2022

#786 in Hardware support

26 downloads per month

MIT/Apache

150KB
4K SLoC

pcan-basic

crates Documentation Crate License Dependency Status

Safe Rust wrapper around the pcan-basic-sys crate wrapping V4.6.0.600 of the PCAN-Basic API provided by the PEAK-System Technik GmbH.

Disclaimer: Since I am currently working on this crate, API changes may appear at any time. Please consider this if you want to use this crate. However, most features should be stable so not much to worry about.

Installation

Windows

Linux

Features

  • Support for Windows and Linux
  • Sending and receiving of CAN-bus frames
  • Hardware identification features
  • Additional information features
  • Data flow features
  • Log features
  • Trace features
  • IO features
  • Many example files to choose from
  • Proper documentation for each part of the API
  • Implementation of the special API
  • Implementation of CanFd sockets
  • Proper testing of features for which I do not have the hardware available
  • Trace file format implementation (will most likely go into cantools)

License / Terms of Usage

The source code of this project is licensed under the MIT/Apache-2.0 license. This implies that you are free to use, share, and adapt it. However, please give appropriate credit by citing the project.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the MIT/Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Contact

If you have problems using the software, find mistakes, or have general questions please use the issue tracker to contact us.

Contributors

Dependencies

~1MB