pub fn open_socketcan<S: AsRef<str>>(
device: S,
) -> Result<(SocketCanSender, SocketCanReceiver), IoError>Available on crate feature
socketcan only.Expand description
Open a socketcan device and split it into a sender and receiver object for use with zencan library
§Arguments
device- The name of the socketcan device to open, e.g. “vcan0”, or “can0”
A key benefit of this is that by creating both sender and receiver objects from a shared socket, the receiver will not receive messages sent by the sender.