| Crates.io | smcan |
| lib.rs | smcan |
| version | 0.1.2 |
| created_at | 2023-08-02 23:00:14.334482+00 |
| updated_at | 2023-08-29 15:45:25.748203+00 |
| description | A no_std rust crate to generate and parse CAN Frames for the SM-CAN protocol. |
| homepage | https://github.com/saronic-technologies/smcan-rs |
| repository | https://github.com/saronic-technologies/smcan-rs |
| max_upload_size | |
| id | 933206 |
| size | 35,755 |
A no_std rust crate to generate and parse CAN Frames for the Salient Motion
SM-CAN Protocol.
cargo add smcan
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