peak-can-sys

Crates.iopeak-can-sys
lib.rspeak-can-sys
version0.1.2
created_at2025-03-24 08:19:12.498859+00
updated_at2025-03-25 02:59:30.026253+00
descriptionFFI bindings for the API by PEAK-System Technik GmbH
homepage
repositoryhttps://github.com/TuEmb/peak-can-sys
max_upload_size
id1603552
size66,225
Tu Nguyen (TuEmb)

documentation

README

Peak CAN Sys

peak-can-sys provides Rust FFI bindings to the PEAK-System PCAN-Basic API, enabling interaction with PEAK CAN interfaces in Rust applications.

Features

  • Low-level FFI bindings to the PCAN-Basic API
  • Compatible with Windows and Linux systems
  • Supports various PEAK CAN hardware

Installation

To use peak-can-sys, ensure that you have the PCAN-Basic library installed on your system.

Windows

  1. Download and install the PEAK PCAN-Basic package from PEAK-System Drivers.
  2. Ensure that PCANBasic.dll is available in your system path.

Linux

  1. Install libpcanbasic.so from PEAK-System's official drivers.
  2. Verify that the shared library is accessible in your system.

Usage

Add peak-can-sys to your Cargo.toml:

[dependencies]
peak-can-sys = "0.1"

Include it in your Rust code:

use peak_can_sys::*;

License & Legal Notice

This project is not affiliated with PEAK-System. The PCAN-Basic API is owned and maintained by PEAK-System.

For support related to this Rust binding, please contact the maintainer of this repository, not PEAK-System.

Commit count: 5

cargo fmt