smcan 0.1.0

A no_std rust crate to generate and parse CAN Frames for the SM-CAN protocol.
Documentation

smcan-rs

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

Examples

socketcan_send_cmd.rs and socketcan_read_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

In one shell run socketcan_send_cmd.rs:

cargo run --example socketcan_send_cmd

In another shell run socketcan_read_cmd.rs:

cargo run --example socketcan_read_cmd