Implements Transmit, Receive, TransmitFd, ReceiveFd, and Filterable over SocketCAN sockets. Bitrate is OS-managed (see "Interface setup" below) so the builder intentionally has no timing methods.
Usage
use ;
use SocketCanDriver;
let driver = new;
let mut channel = driver
.channel_by_name
.connect
.unwrap;
let id = new_standard.unwrap;
let frame = new.unwrap;
channel.transmit.unwrap;
let response = channel.receive.unwrap;
println!;
Interface setup
SocketCAN bitrate is configured at the OS level, not through the socket API:
For testing without hardware, use a virtual CAN interface:
License
Licensed under either of Apache License, Version 2.0 or MIT License at your option.