smcan

Crates.iosmcan
lib.rssmcan
version0.1.2
sourcesrc
created_at2023-08-02 23:00:14.334482
updated_at2023-08-29 15:45:25.748203
descriptionA no_std rust crate to generate and parse CAN Frames for the SM-CAN protocol.
homepagehttps://github.com/saronic-technologies/smcan-rs
repositoryhttps://github.com/saronic-technologies/smcan-rs
max_upload_size
id933206
size35,755
Adam Rizkalla (ARizzo35)

documentation

README

smcan-rs

A no_std rust crate to generate and parse CAN Frames for the Salient Motion SM-CAN Protocol.

Install the crate

cargo add smcan

Examples

socketcan_recrev_cmd.rs will send and receive CAN-FD Frames via the linux socketcan interface using socketcan-rs

To run the example first bring up a vcan0 interface:

sudo modprobe vcan
sudo ip link add vcan0 type vcan
sudo ip link set vcan0 up

Then run socketcan_recrev_cmd.rs:

cargo run --example socketcan_recrev_cmd
Commit count: 14

cargo fmt